[glib] GSettingsBackend: some debug code



commit 6d828dae3804af311ffa8387a4e74bc28024351b
Author: Ryan Lortie <desrt desrt ca>
Date:   Thu Jun 24 00:55:14 2010 -0400

    GSettingsBackend: some debug code

 gio/gsettingsbackend.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/gio/gsettingsbackend.c b/gio/gsettingsbackend.c
index 45fab1e..42645dd 100644
--- a/gio/gsettingsbackend.c
+++ b/gio/gsettingsbackend.c
@@ -714,6 +714,18 @@ g_settings_backend_changed_tree (GSettingsBackend *backend,
 
   g_settings_backend_flatten_tree (tree, &path, &keys, NULL);
 
+#ifdef DEBUG_CHANGES
+  {
+    gint i;
+
+    g_print ("----\n");
+    g_print ("changed_tree(): prefix %s\n", path);
+    for (i = 0; keys[i]; i++)
+      g_print ("  %s\n", keys[i]);
+    g_print ("----\n");
+  }
+#endif
+
   for (watch = backend->priv->watches; watch; watch = watch->next)
     watch->keys_changed (backend, watch->target, path, keys, origin_tag);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]