[evince] [daemon] Add debug output to name watcher
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] [daemon] Add debug output to name watcher
- Date: Tue, 25 May 2010 07:45:06 +0000 (UTC)
commit f9e5408ac68703a89c556a1bcb394a8c67498cca
Author: Christian Persch <chpe gnome org>
Date: Mon May 10 14:55:17 2010 +0200
[daemon] Add debug output to name watcher
shell/ev-daemon.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/shell/ev-daemon.c b/shell/ev-daemon.c
index b30238a..c44f8a8 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]