telepathy-gabble: Fix o.f.T.Channel.Interface.FileTransfer.Metadata

Will Thompson wjt at kemper.freedesktop.org
Thu Dec 6 03:02:40 PST 2012


Module: telepathy-gabble
Branch: master
Commit: 2bbb612f31af9b8a84f8db44c68aab92a424d92d
URL:    http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=2bbb612f31af9b8a84f8db44c68aab92a424d92d

Author: Daniele E. Domenichelli <daniele.domenichelli at gmail.com>
Date:   Thu Nov 29 12:45:36 2012 +0100

Fix o.f.T.Channel.Interface.FileTransfer.Metadata

Fixes: fd.o#57267

---

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

diff --git a/src/ft-channel.c b/src/ft-channel.c
index a0cc25d..637886e 100644
--- a/src/ft-channel.c
+++ b/src/ft-channel.c
@@ -540,6 +540,19 @@ gabble_file_transfer_channel_get_object_path_suffix (TpBaseChannel *chan)
   return g_strdup_printf ("FileTransferChannel/%p", chan);
 }
 
+static GPtrArray *
+gabble_file_transfer_channel_get_interfaces (TpBaseChannel *base)
+{
+  GPtrArray *interfaces;
+
+  interfaces = TP_BASE_CHANNEL_CLASS (
+      gabble_file_transfer_channel_parent_class)->get_interfaces (base);
+
+  g_ptr_array_add (interfaces, TP_IFACE_CHANNEL_INTERFACE_FILE_TRANSFER_METADATA);
+
+  return interfaces;
+}
+
 static void
 gabble_file_transfer_channel_class_init (
     GabbleFileTransferChannelClass *gabble_file_transfer_channel_class)
@@ -607,6 +620,7 @@ gabble_file_transfer_channel_class_init (
 
   base_class->channel_type = TP_IFACE_CHANNEL_TYPE_FILE_TRANSFER;
   base_class->target_handle_type = TP_HANDLE_TYPE_CONTACT;
+  base_class->get_interfaces = gabble_file_transfer_channel_get_interfaces;
   base_class->close = gabble_file_transfer_channel_close;
   base_class->fill_immutable_properties =
     gabble_file_transfer_channel_fill_immutable_properties;



More information about the telepathy-commits mailing list