diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2013-06-23 11:36:15 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2013-06-23 16:06:06 +0100 |
commit | 3976b375d5029e07856fe13eb5f580223e23567b (patch) | |
tree | b9eca765c1ebc9cc3065a0c53cbe181eee2bfadd /plugins | |
parent | 3d4f7ce3fe75756eef5066bd79c0a123a36258ed (diff) |
console: give channels more meaningful object paths
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/console/channel.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/console/channel.c b/plugins/console/channel.c index 390920375..6a9503eb6 100644 --- a/plugins/console/channel.c +++ b/plugins/console/channel.c @@ -55,6 +55,7 @@ static void console_iface_init ( static void gabble_console_channel_set_spew ( GabbleConsoleChannel *self, gboolean spew); +gchar *gabble_console_channel_get_path (TpBaseChannel *chan); static void gabble_console_channel_close (TpBaseChannel *chan); G_DEFINE_TYPE_WITH_CODE (GabbleConsoleChannel, gabble_console_channel, @@ -165,6 +166,7 @@ gabble_console_channel_class_init (GabbleConsoleChannelClass *klass) object_class->dispose = gabble_console_channel_dispose; channel_class->channel_type = GABBLE_IFACE_GABBLE_PLUGIN_CONSOLE; + channel_class->get_object_path_suffix = gabble_console_channel_get_path; channel_class->close = gabble_console_channel_close; g_type_class_add_private (klass, sizeof (GabbleConsoleChannelPrivate)); @@ -182,6 +184,12 @@ gabble_console_channel_class_init (GabbleConsoleChannelClass *klass) console_props); } +gchar * +gabble_console_channel_get_path (TpBaseChannel *chan) +{ + return g_strdup_printf ("console%p", chan); +} + static void gabble_console_channel_close (TpBaseChannel *chan) { |