aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-04-28 16:17:15 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-04-28 16:17:15 +0800
commitcf56f1ff15147abbec90c4d387fa770eec7404aa (patch)
treef9998619e0664263ce166d02885076efb29a85ba
parent3f435afa656e3a60646c88ba070078285d3e6e6e (diff)
downloadgsoc2013-empathy-cf56f1ff15147abbec90c4d387fa770eec7404aa.tar
gsoc2013-empathy-cf56f1ff15147abbec90c4d387fa770eec7404aa.tar.gz
gsoc2013-empathy-cf56f1ff15147abbec90c4d387fa770eec7404aa.tar.bz2
gsoc2013-empathy-cf56f1ff15147abbec90c4d387fa770eec7404aa.tar.lz
gsoc2013-empathy-cf56f1ff15147abbec90c4d387fa770eec7404aa.tar.xz
gsoc2013-empathy-cf56f1ff15147abbec90c4d387fa770eec7404aa.tar.zst
gsoc2013-empathy-cf56f1ff15147abbec90c4d387fa770eec7404aa.zip
Hide contact list when text channel is destroyed.
svn path=/trunk/; revision=1057
-rw-r--r--libempathy-gtk/empathy-chat.c39
1 files changed, 21 insertions, 18 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index a432a2a76..4a7de774c 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -257,24 +257,6 @@ chat_composing_stop (EmpathyChat *chat)
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 @@ chat_remote_contact_changed_cb (EmpathyChat *chat)
}
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);