aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-accounts-dialog.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 /libempathy-gtk/empathy-accounts-dialog.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 'libempathy-gtk/empathy-accounts-dialog.c')
-rw-r--r--libempathy-gtk/empathy-accounts-dialog.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-accounts-dialog.c b/libempathy-gtk/empathy-accounts-dialog.c
index 6f4421b88..0ea4416a3 100644
--- a/libempathy-gtk/empathy-accounts-dialog.c
+++ b/libempathy-gtk/empathy-accounts-dialog.c
@@ -84,6 +84,7 @@ typedef struct {
MissionControl *mc;
McAccountMonitor *monitor;
+ gpointer token;
} EmpathyAccountsDialog;
enum {
@@ -962,10 +963,7 @@ accounts_dialog_destroy_cb (GtkWidget *widget,
g_signal_handlers_disconnect_by_func (dialog->monitor,
accounts_dialog_account_enabled_cb,
dialog);
- dbus_g_proxy_disconnect_signal (DBUS_G_PROXY (dialog->mc),
- "AccountStatusChanged",
- G_CALLBACK (accounts_dialog_status_changed_cb),
- dialog);
+ empathy_disconnect_account_status_changed (dialog->token);
/* Delete incomplete accounts */
accounts = mc_accounts_list ();
@@ -1074,7 +1072,7 @@ empathy_accounts_dialog_show (GtkWindow *parent)
g_signal_connect (dialog->monitor, "account-disabled",
G_CALLBACK (accounts_dialog_account_enabled_cb),
dialog);
- empathy_connect_to_account_status_changed (dialog->mc,
+ dialog->token = empathy_connect_to_account_status_changed (dialog->mc,
G_CALLBACK (accounts_dialog_status_changed_cb),
dialog, NULL);