aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <gdesmott@gnome.org>2009-02-17 05:25:18 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2009-02-17 05:25:18 +0800
commite2a03c85d69d893c298cde260762e248846178c3 (patch)
treec0931894d8304a2e819e62a68571f3e764855c2a
parent77f26518808f792d475310542a7e8f17c3f3b3e4 (diff)
downloadgsoc2013-empathy-e2a03c85d69d893c298cde260762e248846178c3.tar
gsoc2013-empathy-e2a03c85d69d893c298cde260762e248846178c3.tar.gz
gsoc2013-empathy-e2a03c85d69d893c298cde260762e248846178c3.tar.bz2
gsoc2013-empathy-e2a03c85d69d893c298cde260762e248846178c3.tar.lz
gsoc2013-empathy-e2a03c85d69d893c298cde260762e248846178c3.tar.xz
gsoc2013-empathy-e2a03c85d69d893c298cde260762e248846178c3.tar.zst
gsoc2013-empathy-e2a03c85d69d893c298cde260762e248846178c3.zip
empathy-tube-dispatch: add debug messages
From: Guillaume Desmottes <gdesmott@gnome.org> git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@2488 4ee84921-47dd-4033-b63a-18d7a039a3e4
-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));