[folks] Adjust to changes introduced with the Vala fix for bgo#629691



commit edc6e13d5efd3bd62597245c1efa743a3be712f5
Author: Travis Reitter <travis reitter collabora co uk>
Date:   Wed Sep 15 13:22:16 2010 -0700

    Adjust to changes introduced with the Vala fix for bgo#629691

 backends/telepathy/lib/tp-lowlevel.c          |    2 +-
 backends/telepathy/lib/tp-lowlevel.h          |   10 ++++++++++
 backends/telepathy/lib/tpf-persona-store.vala |    5 +++--
 configure.ac                                  |    2 +-
 4 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/backends/telepathy/lib/tp-lowlevel.c b/backends/telepathy/lib/tp-lowlevel.c
index 1fab8e3..1787c42 100644
--- a/backends/telepathy/lib/tp-lowlevel.c
+++ b/backends/telepathy/lib/tp-lowlevel.c
@@ -490,7 +490,7 @@ iterate_on_channels (TpConnection *conn,
     }
 
     if (callback)
-      callback (channel, cb_obj);
+      callback (channel, NULL, cb_obj);
   }
 }
 
diff --git a/backends/telepathy/lib/tp-lowlevel.h b/backends/telepathy/lib/tp-lowlevel.h
index a00760d..ecac64e 100644
--- a/backends/telepathy/lib/tp-lowlevel.h
+++ b/backends/telepathy/lib/tp-lowlevel.h
@@ -68,7 +68,17 @@ folks_tp_lowlevel_channel_group_change_membership (TpChannel *channel,
     gboolean is_member,
     GError **error);
 
+/**
+ * FolksTpLowlevelNewGroupChannelsCallback:
+ * @channel: (allow-none): the new group #TpChannel
+ * @result: the #GAsyncResult to finish the async call with
+ * @user_data: extra data to pass to the callback
+ *
+ * The callback type for
+ * folks_tp_lowlevel_connection_connect_to_new_group_channels().
+ */
 typedef void (*FolksTpLowlevelNewGroupChannelsCallback) (TpChannel *channel,
+    GAsyncResult *result,
     gpointer user_data);
 
 void
diff --git a/backends/telepathy/lib/tpf-persona-store.vala b/backends/telepathy/lib/tpf-persona-store.vala
index ef9bb2c..3ae4bd8 100644
--- a/backends/telepathy/lib/tpf-persona-store.vala
+++ b/backends/telepathy/lib/tpf-persona-store.vala
@@ -369,7 +369,7 @@ public class Tpf.PersonaStore : Folks.PersonaStore
     {
       Connection c = (Connection) s;
       this.ll.connection_connect_to_new_group_channels (c,
-          (AsyncReadyCallback) this.new_group_channels_cb);
+          this.new_group_channels_cb);
 
       this.add_standard_channel (c, "publish");
       this.add_standard_channel (c, "stored");
@@ -380,7 +380,8 @@ public class Tpf.PersonaStore : Folks.PersonaStore
       this.initialise_favourite_contacts.begin ();
     }
 
-  private void new_group_channels_cb (Channel? channel, AsyncResult result)
+  private void new_group_channels_cb (TelepathyGLib.Channel? channel,
+      GLib.AsyncResult result)
     {
       if (channel == null)
         {
diff --git a/configure.ac b/configure.ac
index 106ff72..b35755f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,7 +72,7 @@ AC_SUBST([FOLKS_MAJOR_MINOR_VERSION])
 
 GLIB_REQUIRED=2.24.0
 TP_GLIB_REQUIRED=0.11.15.1
-VALA_REQUIRED=0.9.6
+VALA_REQUIRED=0.9.8.8-95c3a
 
 AM_PROG_VALAC([$VALA_REQUIRED])
 



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