libxfconf api changes

Brian J. Tarricone bjt23 at cornell.edu
Sun Jul 27 03:17:18 CEST 2008


Hi guys,

I've made a couple changes to libxfconf's API to make it easier to
manage properties.  Nick wanted this for display profiles, but Jannis
noted it would be useful for keybinding themes as well.

xfconf_channel_get_all() has been renamed to

GHashTable *xfconf_channel_get_properties(XfconfChannel *channel,
                                          const gchar *property_base);

Passing NULL or "/" for property_base will give you the old behavior.
Passing a property name for property_base will give you the value of
that property, and any sub-properties in the tree from that point.

There's also a new

void xfconf_channel_remove_properties(XfconfChannel *channel,
                                      const gchar *property_base);

... which will remove all properties rooted at property_base.  If you
pass NULL or "/", the entire channel gets removed.

New docs up here:
http://mocha.xfce.org/~kelnos/xfconf/docs-current/

Since we haven't released any of this yet, I did NOT bump the library
interface version.

	-brian



More information about the Xfce4-dev mailing list