From e962b75645f21b0ddc94a8e2ffbf82e91dcb89af Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Tue, 21 Dec 1999 00:47:32 +0000 Subject: const correctness 1999-12-20 Havoc Pennington * gconf/gconf-sources.c (gconf_sources_new_from_addresses): const correctness * gconf/gconfd.c: Massive const-correctness changes to match latest ORBit * gconf/gconf.c (notify): "in string" seems to be const again now. * wrappers/gtk/gconf-client.c (cache_pairs_in_dir): store the is_default parameter when preloading * gconf/gconf.c (gconf_all_entries): receive the is_default parameter * gconf/gconfd.c (gconfd_all_entries): pass the is_default parameter over the CORBA link * backends/xml-backend.c (listify_foreach): Add the schema name to the entry if appropriate (if value is unset) * gconf/gconf-sources.c (gconf_sources_all_entries): Change to match new semantics of all_entries in the backend; get all entries that have a schema set on them, and the corresponding default value if appropriate. * gconf/gconf-value.c (gconf_entry_set_is_default): new function (gconf_entry_set_schema_name): new function * backends/xml-backend.c (listify_foreach): Include keys that exist but have no value set in the list of returned entries. --- wrappers/gtk/gconf-client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'wrappers') diff --git a/wrappers/gtk/gconf-client.c b/wrappers/gtk/gconf-client.c index 300dcca8..a972731f 100644 --- a/wrappers/gtk/gconf-client.c +++ b/wrappers/gtk/gconf-client.c @@ -615,11 +615,10 @@ cache_pairs_in_dir(GConfClient* client, const gchar* dir) gconf_client_cache(client, full_key, - /* It can't be the default, all_entries() only - returns values that are actually set */ - FALSE, + gconf_entry_is_default(pair), gconf_entry_steal_value(pair)); + g_free(full_key); gconf_entry_destroy(pair); -- cgit v1.2.1