empathy r854 - trunk/libempathy-gtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r854 - trunk/libempathy-gtk
- Date: Wed, 2 Apr 2008 10:42:21 +0100 (BST)
Author: xclaesse
Date: Wed Apr 2 10:42:20 2008
New Revision: 854
URL: http://svn.gnome.org/viewvc/empathy?rev=854&view=rev
Log:
Fix a warning: don't set the ui sensitive if it's not yet created
Modified:
trunk/libempathy-gtk/empathy-chat.c
Modified: trunk/libempathy-gtk/empathy-chat.c
==============================================================================
--- trunk/libempathy-gtk/empathy-chat.c (original)
+++ trunk/libempathy-gtk/empathy-chat.c Wed Apr 2 10:42:20 2008
@@ -1616,9 +1616,11 @@
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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]