diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-02-15 05:19:46 +0800 |
---|---|---|
committer | Chandni Verma <chandniverma2112@gmail.com> | 2011-03-11 13:10:24 +0800 |
commit | 0deb4db1b785bfe4497de50cf04efdd873f58009 (patch) | |
tree | 0d863295eff9e42621d06a965d880220a885bc22 /libempathy-gtk | |
parent | 5690460d1809f6e181c3eeed2aa930af1253b38c (diff) | |
download | gsoc2013-empathy-0deb4db1b785bfe4497de50cf04efdd873f58009.tar gsoc2013-empathy-0deb4db1b785bfe4497de50cf04efdd873f58009.tar.gz gsoc2013-empathy-0deb4db1b785bfe4497de50cf04efdd873f58009.tar.bz2 gsoc2013-empathy-0deb4db1b785bfe4497de50cf04efdd873f58009.tar.lz gsoc2013-empathy-0deb4db1b785bfe4497de50cf04efdd873f58009.tar.xz gsoc2013-empathy-0deb4db1b785bfe4497de50cf04efdd873f58009.tar.zst gsoc2013-empathy-0deb4db1b785bfe4497de50cf04efdd873f58009.zip |
Use tp_g_signal_connect_object for Tp proxies that outlive the CB dialog
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-contact-blocking-dialog.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-contact-blocking-dialog.c b/libempathy-gtk/empathy-contact-blocking-dialog.c index 3d0b9afe9..a46820c5d 100644 --- a/libempathy-gtk/empathy-contact-blocking-dialog.c +++ b/libempathy-gtk/empathy-contact-blocking-dialog.c @@ -285,8 +285,9 @@ contact_blocking_dialog_am_prepared (GObject *am, TpAccount *account = ptr->data; TpConnection *conn; - g_signal_connect (account, "status-changed", - G_CALLBACK (contact_blocking_dialog_connection_status_changed), self); + tp_g_signal_connect_object (account, "status-changed", + G_CALLBACK (contact_blocking_dialog_connection_status_changed), + self, 0); conn = tp_account_get_connection (TP_ACCOUNT (account)); @@ -404,8 +405,9 @@ contact_blocking_dialog_deny_channel_prepared (GObject *channel, g_object_ref (conn), channel); contact_blocking_dialog_refilter_account_chooser (self); - g_signal_connect (channel, "group-members-changed", - G_CALLBACK (contact_blocking_dialog_deny_channel_members_changed), self); + tp_g_signal_connect_object (channel, "group-members-changed", + G_CALLBACK (contact_blocking_dialog_deny_channel_members_changed), + self, 0); } static void |