[empathy: 31/35] Use tp_g_signal_connect_object for Tp proxies that outlive the CB dialog
- From: Danielle Madeley <daniellem src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 31/35] Use tp_g_signal_connect_object for Tp proxies that outlive the CB dialog
- Date: Mon, 14 Mar 2011 02:01:47 +0000 (UTC)
commit 0deb4db1b785bfe4497de50cf04efdd873f58009
Author: Danielle Madeley <danielle madeley collabora co uk>
Date: Tue Feb 15 08:19:46 2011 +1100
Use tp_g_signal_connect_object for Tp proxies that outlive the CB dialog
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 3d0b9af..a46820c 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]