[Telepathy-commits] [telepathy-gabble/master] conn-olpc: fire BuddyGadgetDiscovered and ActivityGadgetDiscovered when gadget is discovered

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Sep 26 10:02:13 PDT 2008


20080526132757-7fe3f-a7070cc8c7ea2b1493e1a6baca3ddee8f3a8abfa.gz
---
 src/conn-olpc.c |   20 ++------------------
 1 files changed, 2 insertions(+), 18 deletions(-)

diff --git a/src/conn-olpc.c b/src/conn-olpc.c
index afa2565..53ec7e5 100644
--- a/src/conn-olpc.c
+++ b/src/conn-olpc.c
@@ -3104,22 +3104,6 @@ conn_olpc_msg_cb (LmMessageHandler *handler,
   return LM_HANDLER_RESULT_REMOVE_MESSAGE;
 }
 
-static void
-connection_presences_updated_cb (GabblePresenceCache *cache,
-                                 GArray *handles,
-                                 GabbleConnection *conn)
-{
-  guint i;
-
-  for (i = 0; i < handles->len ; i++)
-    {
-      TpHandle handle;
-
-      handle = g_array_index (handles, TpHandle, i);
-      connection_presence_do_update (cache, handle, conn);
-    }
-}
-
 void
 conn_olpc_activity_properties_init (GabbleConnection *conn)
 {
@@ -3174,8 +3158,8 @@ conn_olpc_activity_properties_init (GabbleConnection *conn)
   g_signal_connect (GABBLE_CHANNEL_MANAGER (conn->muc_factory), "new-channels",
       G_CALLBACK (muc_factory_new_channels_cb), conn);
 
-  g_signal_connect (conn->presence_cache, "presences-updated",
-      G_CALLBACK (connection_presences_updated_cb), conn);
+  g_signal_connect (conn->presence_cache, "presence-update",
+      G_CALLBACK (connection_presence_update_cb), conn);
 }
 
 void
-- 
1.5.6.5




More information about the Telepathy-commits mailing list