aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-chat-window.c
diff options
context:
space:
mode:
authorJonny Lamb <jonnylamb@gnome.org>2010-03-06 18:58:11 +0800
committerJonny Lamb <jonnylamb@gnome.org>2010-03-06 18:58:11 +0800
commitd8dd568c2c1fed4cb328c2a9afc148186fda12aa (patch)
tree0dde37e4fbe929d561f0f53a5495479517a8b55c /src/empathy-chat-window.c
parent7415009e9f118174703834d95b91653f8de4e3f4 (diff)
downloadgsoc2013-empathy-d8dd568c2c1fed4cb328c2a9afc148186fda12aa.tar
gsoc2013-empathy-d8dd568c2c1fed4cb328c2a9afc148186fda12aa.tar.gz
gsoc2013-empathy-d8dd568c2c1fed4cb328c2a9afc148186fda12aa.tar.bz2
gsoc2013-empathy-d8dd568c2c1fed4cb328c2a9afc148186fda12aa.tar.lz
gsoc2013-empathy-d8dd568c2c1fed4cb328c2a9afc148186fda12aa.tar.xz
gsoc2013-empathy-d8dd568c2c1fed4cb328c2a9afc148186fda12aa.tar.zst
gsoc2013-empathy-d8dd568c2c1fed4cb328c2a9afc148186fda12aa.zip
chat-manager: take an EmpathyChat instead of an EmpathyContact
This way, we can support both 1-to-1 chats, *and* MUCs. Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
Diffstat (limited to 'src/empathy-chat-window.c')
-rw-r--r--src/empathy-chat-window.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 1df42f14a..9748b61c6 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -2158,12 +2158,12 @@ empathy_chat_window_remove_chat (EmpathyChatWindow *window,
g_signal_handlers_disconnect_by_func (remote_contact,
chat_window_update_chat_tab,
chat);
-
- chat_manager = empathy_chat_manager_dup_singleton ();
- empathy_chat_manager_closed_chat (chat_manager, remote_contact);
- g_object_unref (chat_manager);
}
+ chat_manager = empathy_chat_manager_dup_singleton ();
+ empathy_chat_manager_closed_chat (chat_manager, chat);
+ g_object_unref (chat_manager);
+
position = gtk_notebook_page_num (GTK_NOTEBOOK (priv->notebook),
GTK_WIDGET (chat));
gtk_notebook_remove_page (GTK_NOTEBOOK (priv->notebook), position);