empathy r1057 - trunk/libempathy-gtk
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1057 - trunk/libempathy-gtk
- Date: Mon, 28 Apr 2008 09:17:15 +0100 (BST)
Author: xclaesse
Date: Mon Apr 28 08:17:15 2008
New Revision: 1057
URL: http://svn.gnome.org/viewvc/empathy?rev=1057&view=rev
Log:
Hide contact list when text channel is destroyed.
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 Mon Apr 28 08:17:15 2008
@@ -257,24 +257,6 @@
TP_CHANNEL_CHAT_STATE_ACTIVE);
}
-static void
-chat_destroy_cb (EmpathyTpChat *tp_chat,
- EmpathyChat *chat)
-{
- EmpathyChatPriv *priv;
-
- priv = GET_PRIV (chat);
-
- if (priv->tp_chat) {
- g_object_unref (priv->tp_chat);
- priv->tp_chat = NULL;
- g_object_notify (G_OBJECT (chat), "tp-chat");
- }
-
- empathy_chat_view_append_event (chat->view, _("Disconnected"));
- gtk_widget_set_sensitive (chat->input_text_view, FALSE);
-}
-
static void
chat_sent_message_add (EmpathyChat *chat,
const gchar *str)
@@ -1256,6 +1238,27 @@
}
static void
+chat_destroy_cb (EmpathyTpChat *tp_chat,
+ EmpathyChat *chat)
+{
+ EmpathyChatPriv *priv;
+
+ priv = GET_PRIV (chat);
+
+ if (!priv->tp_chat) {
+ return;
+ }
+
+ g_object_unref (priv->tp_chat);
+ priv->tp_chat = NULL;
+ g_object_notify (G_OBJECT (chat), "tp-chat");
+
+ empathy_chat_view_append_event (chat->view, _("Disconnected"));
+ gtk_widget_set_sensitive (chat->input_text_view, FALSE);
+ chat_set_show_contacts (chat, FALSE);
+}
+
+static void
chat_create_ui (EmpathyChat *chat)
{
EmpathyChatPriv *priv = GET_PRIV (chat);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]