]> git.0d.be Git - empathy.git/commitdiff
dispatcher_tubes_new_tube_cb: add some tube handling debug messages
authorXavier Claessens <xclaesse@src.gnome.org>
Fri, 9 Jan 2009 10:31:38 +0000 (10:31 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 9 Jan 2009 10:31:38 +0000 (10:31 +0000)
svn path=/trunk/; revision=2124

libempathy/empathy-dispatcher.c

index aaac433c978a779206226136bce23fb259ce7b4d..07e06f481c63a712d592e5c8b567839c530212f4 100644 (file)
@@ -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);
 }