Author: kelnos
Date: 2008-07-27 06:00:05 +0000 (Sun, 27 Jul 2008)
New Revision: 27380

Modified:
   xfconf/trunk/xfconfd/xfconf-backend-perchannel-xml.c
Log:
revert a change -- avoid double leading slashes when returning all props

Modified: xfconf/trunk/xfconfd/xfconf-backend-perchannel-xml.c
===================================================================
--- xfconf/trunk/xfconfd/xfconf-backend-perchannel-xml.c        2008-07-27 
05:59:52 UTC (rev 27379)
+++ xfconf/trunk/xfconfd/xfconf-backend-perchannel-xml.c        2008-07-27 
06:00:05 UTC (rev 27380)
@@ -437,12 +437,19 @@
         }
 
         g_strlcpy(cur_path, property_base, sizeof(cur_path));
+        xfconf_proptree_node_to_hash_table(cur, properties, cur_path);
     } else {
-        cur = props_tree;
-        cur_path[0] = 0;
+        /* need to hit each child directly to avoid having a
+         * double '/' at the beginning of each prop */
+        for(cur = g_node_first_child(props_tree);
+            cur;
+            cur = g_node_next_sibling(props_tree))
+        {
+            cur_path[0] = 0;
+            xfconf_proptree_node_to_hash_table(cur, properties, cur_path);
+        }
     }
 
-    xfconf_proptree_node_to_hash_table(cur, properties, cur_path);
 
     return TRUE;
 }

_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to