gconf r2842 - in trunk: . gconf



Author: behdad
Date: Tue Apr 14 23:12:15 2009
New Revision: 2842
URL: http://svn.gnome.org/viewvc/gconf?rev=2842&view=rev

Log:
2009-04-14  Behdad Esfahbod  <behdad gnome org>

        * gconf/gconf-client.c (gconf_client_key_is_writable): Also trace
        if key is in cache.  Don't trace the writable result, that's not
        interesting.

        * gconf/gconf-client.c (gconf_client_set_bool): Trace this function.
        Somehow it was missing the trace line that other set_* functions
        have.



Modified:
   trunk/ChangeLog
   trunk/gconf/gconf-client.c

Modified: trunk/gconf/gconf-client.c
==============================================================================
--- trunk/gconf/gconf-client.c	(original)
+++ trunk/gconf/gconf-client.c	Tue Apr 14 23:12:15 2009
@@ -1153,12 +1153,11 @@
   g_return_val_if_fail (key != NULL, FALSE);
   g_return_val_if_fail (err == NULL || *err == NULL, FALSE);
 
-  trace ("Checking whether key '%s' is writable...", key);
-
   if (gconf_client_lookup (client, key, &entry))
     {
       g_assert (entry != NULL);
 
+      trace ("Checking in cache whether key '%s' is writable", key);
       return gconf_entry_get_is_writable (entry);
     }
   
@@ -1169,6 +1168,8 @@
   else
     g_assert (error == NULL);
 
+  trace ("Checking whether key '%s' is writable...", key);
+
   if (entry == NULL)
     is_writable = FALSE;
   else
@@ -1176,11 +1177,6 @@
 
   if (entry)
     gconf_entry_free (entry);
-
-  if (is_writable)
-    trace ("'%s' is writable", key);
-  else
-    trace ("'%s' is not writable", key);
   
   return is_writable;
 }
@@ -1755,6 +1751,7 @@
   g_return_val_if_fail(GCONF_IS_CLIENT(client), FALSE);  
   g_return_val_if_fail(key != NULL, FALSE);
 
+  trace ("Setting bool '%s'", key);
   PUSH_USE_ENGINE (client);
   result = gconf_engine_set_bool (client->engine, key, val, &error);
   POP_USE_ENGINE (client);



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