summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@gmail.com>2012-11-29 12:45:36 +0100
committerDaniele E. Domenichelli <daniele.domenichelli@gmail.com>2012-11-29 15:34:38 +0100
commit2bbb612f31af9b8a84f8db44c68aab92a424d92d (patch)
tree48066da9a5d605943b58b35373697c08af779673
parentecee60dfc33f05e56eb2d2b34faf188943ff8931 (diff)
Fix o.f.T.Channel.Interface.FileTransfer.Metadata
Fixes: fd.o#57267
-rw-r--r--src/ft-channel.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ft-channel.c b/src/ft-channel.c
index a0cc25d38..637886e41 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;