From b3d52ddf377b54ad6ee9c66ec2fa03486c91278d Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 2 Apr 2008 09:42:20 +0000 Subject: Fix a warning: don't set the ui sensitive if it's not yet created svn path=/trunk/; revision=854 --- libempathy-gtk/empathy-chat.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index e67554ee8..0dbc25a41 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -1616,9 +1616,11 @@ empathy_chat_set_tp_chat (EmpathyChat *chat, G_CALLBACK (chat_destroy_cb), chat); - gtk_widget_set_sensitive (chat->input_text_view, TRUE); - if (priv->block_events_timeout_id == 0) { - empathy_chat_view_append_event (chat->view, _("Connected")); + if (chat->input_text_view) { + gtk_widget_set_sensitive (chat->input_text_view, TRUE); + if (priv->block_events_timeout_id == 0) { + empathy_chat_view_append_event (chat->view, _("Connected")); + } } g_object_notify (G_OBJECT (chat), "tp-chat"); -- cgit v1.2.3