[empathy] connect sigs using tp_g_signal_connect_object



commit 73845ad550f78190379cfa74a4b9e4ecefa6b241
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri Jul 2 13:37:42 2010 +0200

    connect sigs using tp_g_signal_connect_object

 libempathy/empathy-tp-chat.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c
index be266e6..b77fbb2 100644
--- a/libempathy/empathy-tp-chat.c
+++ b/libempathy/empathy-tp-chat.c
@@ -1243,9 +1243,9 @@ tp_chat_constructor (GType                  type,
 	priv = GET_PRIV (chat);
 
 	priv->connection = g_object_ref (tp_channel_borrow_connection (priv->channel));
-	g_signal_connect (priv->channel, "invalidated",
+	tp_g_signal_connect_object (priv->channel, "invalidated",
 			  G_CALLBACK (tp_chat_invalidated_cb),
-			  chat);
+			  chat, 0);
 
 	if (tp_proxy_has_interface_by_id (priv->channel,
 					  TP_IFACE_QUARK_CHANNEL_INTERFACE_GROUP)) {
@@ -1267,8 +1267,8 @@ tp_chat_constructor (GType                  type,
 
 		priv->can_upgrade_to_muc = FALSE;
 
-		g_signal_connect (priv->channel, "group-members-changed",
-			G_CALLBACK (tp_chat_group_members_changed_cb), chat);
+		tp_g_signal_connect_object (priv->channel, "group-members-changed",
+			G_CALLBACK (tp_chat_group_members_changed_cb), chat, 0);
 	} else {
 		EmpathyDispatcher *dispatcher = empathy_dispatcher_dup_singleton ();
 		GList *list, *ptr;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]