aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-tube-dispatch.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <gdesmott@gnome.org>2009-02-17 05:25:18 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-02-17 05:25:18 +0800
commitc3da9385d91037c73cef4665889f9edade9117f7 (patch)
treec0931894d8304a2e819e62a68571f3e764855c2a /src/empathy-tube-dispatch.c
parent7986241858867de3b4c66f0f67173c340734dcb4 (diff)
downloadgsoc2013-empathy-c3da9385d91037c73cef4665889f9edade9117f7.tar
gsoc2013-empathy-c3da9385d91037c73cef4665889f9edade9117f7.tar.gz
gsoc2013-empathy-c3da9385d91037c73cef4665889f9edade9117f7.tar.bz2
gsoc2013-empathy-c3da9385d91037c73cef4665889f9edade9117f7.tar.lz
gsoc2013-empathy-c3da9385d91037c73cef4665889f9edade9117f7.tar.xz
gsoc2013-empathy-c3da9385d91037c73cef4665889f9edade9117f7.tar.zst
gsoc2013-empathy-c3da9385d91037c73cef4665889f9edade9117f7.zip
empathy-tube-dispatch: add debug messages
From: Guillaume Desmottes <gdesmott@gnome.org> svn path=/trunk/; revision=2488
Diffstat (limited to 'src/empathy-tube-dispatch.c')
-rw-r--r--src/empathy-tube-dispatch.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/empathy-tube-dispatch.c b/src/empathy-tube-dispatch.c
index 7ffe5f0ea..c051dec2f 100644
--- a/src/empathy-tube-dispatch.c
+++ b/src/empathy-tube-dispatch.c
@@ -37,6 +37,8 @@
#include "empathy-tube-dispatch.h"
#include "empathy-tube-dispatch-enumtypes.h"
+#define DEBUG_FLAG EMPATHY_DEBUG_DISPATCHER
+#include <libempathy/empathy-debug.h>
G_DEFINE_TYPE(EmpathyTubeDispatch, empathy_tube_dispatch, G_TYPE_OBJECT)
@@ -93,12 +95,14 @@ empathy_tube_dispatch_list_activatable_names_cb (TpDBusDaemon *proxy,
{
if (!tp_strdiff (*name, priv->bus_name))
{
+ DEBUG ("Found tube handler. Can dispatch it");
empathy_tube_dispatch_set_ability (self,
EMPATHY_TUBE_DISPATCHABILITY_POSSIBLE);
return;
}
}
+ DEBUG ("Didn't find tube handler. Can't dispatch it");
empathy_tube_dispatch_set_ability (self,
EMPATHY_TUBE_DISPATCHABILITY_IMPOSSIBLE);
}
@@ -113,6 +117,7 @@ empathy_tube_dispatch_name_has_owner_cb (TpDBusDaemon *proxy,
if (error != NULL)
{
+ DEBUG ("NameHasOwner failed. Can't dispatch tube");
empathy_tube_dispatch_set_ability (self,
EMPATHY_TUBE_DISPATCHABILITY_IMPOSSIBLE);
return;
@@ -120,11 +125,13 @@ empathy_tube_dispatch_name_has_owner_cb (TpDBusDaemon *proxy,
if (has_owner)
{
+ DEBUG ("Tube handler is running. Can dispatch it");
empathy_tube_dispatch_set_ability (self,
EMPATHY_TUBE_DISPATCHABILITY_POSSIBLE);
}
else
{
+ DEBUG ("Tube handler is not running. Calling ListActivatableNames");
tp_cli_dbus_daemon_call_list_activatable_names (priv->dbus, -1,
empathy_tube_dispatch_list_activatable_names_cb, NULL, NULL,
G_OBJECT (self));
@@ -178,6 +185,7 @@ empathy_tube_dispatch_constructed (GObject *object)
priv->service = g_strdup (service);
+ DEBUG ("Look for tube handler %s\n", priv->bus_name);
tp_cli_dbus_daemon_call_name_has_owner (priv->dbus, -1, priv->bus_name,
empathy_tube_dispatch_name_has_owner_cb, NULL, NULL, G_OBJECT (self));