GSettingsBackend: some debug code
authorRyan Lortie <desrt@desrt.ca>
Thu, 24 Jun 2010 04:55:14 +0000 (00:55 -0400)
committerRyan Lortie <desrt@desrt.ca>
Thu, 24 Jun 2010 04:55:30 +0000 (00:55 -0400)
gio/gsettingsbackend.c

index 45fab1e..42645dd 100644 (file)
@@ -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);