summaryrefslogtreecommitdiff
path: root/src/im-channel.c
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-10-11 15:50:24 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2011-11-04 09:02:18 +0000
commit34b600adcb8894615fc2b40400ce6e740230f7c2 (patch)
tree76eec6979c54a2137e14ad2e98fb9aa9adb6ef4c /src/im-channel.c
parentb3d5848804b8128b0962f4860efcd758e19d7fc3 (diff)
IMChannel: implement get_object_path_suffix
I think this is simpler than the factory passing the path in. Though it's actually longer, which offends me on some level.
Diffstat (limited to 'src/im-channel.c')
-rw-r--r--src/im-channel.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/im-channel.c b/src/im-channel.c
index f335c9848..fdac5b224 100644
--- a/src/im-channel.c
+++ b/src/im-channel.c
@@ -176,6 +176,13 @@ gabble_im_channel_fill_immutable_properties (TpBaseChannel *chan,
NULL);
}
+static gchar *
+gabble_im_channel_get_object_path_suffix (TpBaseChannel *chan)
+{
+ return g_strdup_printf ("ImChannel%u",
+ tp_base_channel_get_target_handle (chan));
+}
+
static void
gabble_im_channel_class_init (GabbleIMChannelClass *gabble_im_channel_class)
{
@@ -196,6 +203,7 @@ gabble_im_channel_class_init (GabbleIMChannelClass *gabble_im_channel_class)
base_class->close = gabble_im_channel_close;
base_class->fill_immutable_properties =
gabble_im_channel_fill_immutable_properties;
+ base_class->get_object_path_suffix = gabble_im_channel_get_object_path_suffix;
tp_message_mixin_init_dbus_properties (object_class);
}