aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat.c
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-04-02 17:42:20 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-04-02 17:42:20 +0800
commitf135f42526b85136c4eb9e08302b7c902fe77ae6 (patch)
tree6e71f555234ebe112969407a8f093dd13fa79d81 /libempathy-gtk/empathy-chat.c
parent0f2c6001086070fafb0fc531bd4d92248995cce3 (diff)
downloadgsoc2013-empathy-f135f42526b85136c4eb9e08302b7c902fe77ae6.tar
gsoc2013-empathy-f135f42526b85136c4eb9e08302b7c902fe77ae6.tar.gz
gsoc2013-empathy-f135f42526b85136c4eb9e08302b7c902fe77ae6.tar.bz2
gsoc2013-empathy-f135f42526b85136c4eb9e08302b7c902fe77ae6.tar.lz
gsoc2013-empathy-f135f42526b85136c4eb9e08302b7c902fe77ae6.tar.xz
gsoc2013-empathy-f135f42526b85136c4eb9e08302b7c902fe77ae6.tar.zst
gsoc2013-empathy-f135f42526b85136c4eb9e08302b7c902fe77ae6.zip
Fix a warning: don't set the ui sensitive if it's not yet created
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@854 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r--libempathy-gtk/empathy-chat.c8
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");