[telepathy-gabble/master] Pretend to have discovered supported search fields.

Will Thompson will.thompson at collabora.co.uk
Wed Aug 26 09:21:45 PDT 2009


---
 src/search-channel.c |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/search-channel.c b/src/search-channel.c
index 1312b22..b7df701 100644
--- a/src/search-channel.c
+++ b/src/search-channel.c
@@ -73,6 +73,22 @@ G_DEFINE_TYPE_WITH_CODE (GabbleSearchChannel, gabble_search_channel,
         contact_search_iface_init);
     )
 
+static gboolean
+fake_received_search_fields (gpointer data)
+{
+  GabbleSearchChannel *chan = data;
+
+  g_signal_emit (chan, signals[PROBED], 0, TRUE);
+
+  return FALSE;
+}
+
+static void
+request_search_fields (GabbleSearchChannel *chan)
+{
+  g_idle_add (fake_received_search_fields, g_object_ref (chan));
+}
+
 static void
 gabble_search_channel_init (GabbleSearchChannel *self)
 {
@@ -108,6 +124,8 @@ gabble_search_channel_constructor (GType type,
   base->object_path = g_strdup_printf ("%s/ContactSearchChannel%p",
       conn->object_path, obj);
 
+  request_search_fields (chan);
+
   return obj;
 }
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list