From: Christian Persch Date: Mon, 10 May 2010 12:55:17 +0000 (+0200) Subject: [daemon] Add debug output to name watcher X-Git-Tag: EVINCE_2_31_2~28 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=f9e5408ac68703a89c556a1bcb394a8c67498cca;p=evince.git [daemon] Add debug output to name watcher --- diff --git a/shell/ev-daemon.c b/shell/ev-daemon.c index b30238a6..c44f8a8b 100644 --- a/shell/ev-daemon.c +++ b/shell/ev-daemon.c @@ -211,6 +211,7 @@ name_appeared_cb (GDBusConnection *connection, const gchar *name_owner, gpointer user_data) { + LOG ("Watch name'%s' appeared with owner '%s'\n", name, name_owner); } static void @@ -220,12 +221,16 @@ name_vanished_cb (GDBusConnection *connection, { GList *l; + LOG ("Watch name'%s' disappeared\n", name); + for (l = ev_daemon_docs; l != NULL; l = l->next) { EvDoc *doc = (EvDoc *) l->data; if (strcmp (doc->dbus_name, name) != 0) continue; + LOG ("Watch found URI '%s' for name; removing\n", doc->uri); + ev_daemon_docs = g_list_delete_link (ev_daemon_docs, l); ev_doc_free (doc);