From 47277f8d52522e8db77eb54d6783800d60099a46 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 9 Jan 2009 10:31:38 +0000 Subject: dispatcher_tubes_new_tube_cb: add some tube handling debug messages svn path=/trunk/; revision=2124 --- libempathy/empathy-dispatcher.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libempathy') diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c index aaac433c9..07e06f481 100644 --- a/libempathy/empathy-dispatcher.c +++ b/libempathy/empathy-dispatcher.c @@ -246,6 +246,7 @@ dispatcher_tubes_new_tube_cb (TpChannel *channel, initiator); g_object_unref (account); + DEBUG ("Looking for tube handler: %s", tube->bus_name); /* Check if that bus-name has an owner, if it has one that means the * app is already running and we can directly give the channel. */ tp_cli_dbus_daemon_run_name_has_owner (daemon, -1, tube->bus_name, @@ -259,6 +260,7 @@ dispatcher_tubes_new_tube_cb (TpChannel *channel, return; } + DEBUG ("Tube handler is not running. Try to activate it"); /* Check if that bus-name is activatable, if not that means the * application needed to handle this tube isn't installed. */ if (!tp_cli_dbus_daemon_run_list_activatable_names (daemon, -1, @@ -271,6 +273,7 @@ dispatcher_tubes_new_tube_cb (TpChannel *channel, for (name = names; *name; name++) { if (!tp_strdiff (*name, tube->bus_name)) { + DEBUG ("Found tube handler"); tube->public.activatable = TRUE; break; } @@ -278,6 +281,9 @@ dispatcher_tubes_new_tube_cb (TpChannel *channel, g_strfreev (names); } + if (!tube->public.activatable) + DEBUG ("Didn't find tube handler"); + g_signal_emit (dispatcher, signals[FILTER_TUBE], 0, tube); empathy_dispatcher_tube_unref ((EmpathyDispatcherTube*) tube); } -- cgit v1.2.3