[next] telepathy-gabble: GabbleConnection: correctly advertise ContactBlocking1 on our Protocol

Simon McVittie smcv at kemper.freedesktop.org
Wed May 7 02:18:40 PDT 2014


Module: telepathy-gabble
Branch: next
Commit: 6f8b7ccef328cfbac6ac4a4b23e2a638720e2c0b
URL:    http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=6f8b7ccef328cfbac6ac4a4b23e2a638720e2c0b

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Fri Apr 11 12:35:28 2014 +0100

GabbleConnection: correctly advertise ContactBlocking1 on our Protocol

While switching GabbleConnection to be a GDBusObjectSkeleton, I noticed
that this was conditionally enabled, but did not appear in the
list of interfaces that we advertise to the Protocol.

---

 src/connection.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/connection.c b/src/connection.c
index ca48d4e..55f3400 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -823,6 +823,7 @@ _gabble_connection_create_handle_repos (TpBaseConnection *conn,
 
 static const gchar *implemented_interfaces[] = {
     /* conditionally present interfaces */
+    TP_IFACE_CONNECTION_INTERFACE_CONTACT_BLOCKING1,
     TP_IFACE_CONNECTION_INTERFACE_MAIL_NOTIFICATION1,
 
     /* always present interfaces */
@@ -840,7 +841,7 @@ static const gchar *implemented_interfaces[] = {
     TP_IFACE_CONNECTION_INTERFACE_ADDRESSING1,
     NULL
 };
-static const gchar **interfaces_always_present = implemented_interfaces + 1;
+static const gchar **interfaces_always_present = implemented_interfaces + 2;
 
 const gchar **
 gabble_connection_get_implemented_interfaces (void)



More information about the telepathy-commits mailing list