aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-main-window.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-04-13 20:39:13 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-04-13 20:39:13 +0800
commit213318adaf231512a98183394bf968ebd6c1a857 (patch)
treec0d14096dbffb7f5e22b143282780b38b5d0a30d /src/empathy-main-window.c
parent97ae7e9c570dd2165190d2549a42081963d79be3 (diff)
downloadgsoc2013-empathy-213318adaf231512a98183394bf968ebd6c1a857.tar
gsoc2013-empathy-213318adaf231512a98183394bf968ebd6c1a857.tar.gz
gsoc2013-empathy-213318adaf231512a98183394bf968ebd6c1a857.tar.bz2
gsoc2013-empathy-213318adaf231512a98183394bf968ebd6c1a857.tar.lz
gsoc2013-empathy-213318adaf231512a98183394bf968ebd6c1a857.tar.xz
gsoc2013-empathy-213318adaf231512a98183394bf968ebd6c1a857.tar.zst
gsoc2013-empathy-213318adaf231512a98183394bf968ebd6c1a857.zip
Fix disconnection of AccountStatusChanged signal.
svn path=/trunk/; revision=932
Diffstat (limited to 'src/empathy-main-window.c')
-rw-r--r--src/empathy-main-window.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 5c46d7f7c..065c6fcc8 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -73,6 +73,7 @@ typedef struct {
EmpathyContactListStore *list_store;
MissionControl *mc;
EmpathyChatroomManager *chatroom_manager;
+ gpointer token;
GtkWidget *window;
GtkWidget *main_vbox;
@@ -239,7 +240,7 @@ empathy_main_window_show (void)
g_object_unref (glade);
window->mc = empathy_mission_control_new ();
- empathy_connect_to_account_status_changed (window->mc,
+ window->token = empathy_connect_to_account_status_changed (window->mc,
G_CALLBACK (main_window_status_changed_cb),
window, NULL);
@@ -374,9 +375,7 @@ main_window_destroy_cb (GtkWidget *widget,
/* Save user-defined accelerators. */
main_window_accels_save ();
- dbus_g_proxy_disconnect_signal (DBUS_G_PROXY (window->mc), "AccountStatusChanged",
- G_CALLBACK (main_window_status_changed_cb),
- window);
+ empathy_disconnect_account_status_changed (window->token);
if (window->size_timeout_id) {
g_source_remove (window->size_timeout_id);