diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-04-02 17:42:20 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-04-02 17:42:20 +0800 |
commit | b3d52ddf377b54ad6ee9c66ec2fa03486c91278d (patch) | |
tree | 6e71f555234ebe112969407a8f093dd13fa79d81 /libempathy-gtk | |
parent | 1e834ff664d6b73e81f770ad3867753dd634a08c (diff) | |
download | gsoc2013-empathy-b3d52ddf377b54ad6ee9c66ec2fa03486c91278d.tar gsoc2013-empathy-b3d52ddf377b54ad6ee9c66ec2fa03486c91278d.tar.gz gsoc2013-empathy-b3d52ddf377b54ad6ee9c66ec2fa03486c91278d.tar.bz2 gsoc2013-empathy-b3d52ddf377b54ad6ee9c66ec2fa03486c91278d.tar.lz gsoc2013-empathy-b3d52ddf377b54ad6ee9c66ec2fa03486c91278d.tar.xz gsoc2013-empathy-b3d52ddf377b54ad6ee9c66ec2fa03486c91278d.tar.zst gsoc2013-empathy-b3d52ddf377b54ad6ee9c66ec2fa03486c91278d.zip |
Fix a warning: don't set the ui sensitive if it's not yet created
svn path=/trunk/; revision=854
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 8 |
1 files 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"); |