aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-dispatcher.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-09 18:31:38 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-09 18:31:38 +0800
commit47277f8d52522e8db77eb54d6783800d60099a46 (patch)
treeb1e60b63de71074bb280fe93d28a53b569bb4237 /libempathy/empathy-dispatcher.c
parente3baf75b8315eaa9ecb14eb669a8dc2ecede8832 (diff)
downloadgsoc2013-empathy-47277f8d52522e8db77eb54d6783800d60099a46.tar.gz
gsoc2013-empathy-47277f8d52522e8db77eb54d6783800d60099a46.tar.zst
gsoc2013-empathy-47277f8d52522e8db77eb54d6783800d60099a46.zip
dispatcher_tubes_new_tube_cb: add some tube handling debug messages
svn path=/trunk/; revision=2124
Diffstat (limited to 'libempathy/empathy-dispatcher.c')
-rw-r--r--libempathy/empathy-dispatcher.c6
1 files changed, 6 insertions, 0 deletions
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);
}