summaryrefslogtreecommitdiff
path: root/gconf/gconf-client.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>1999-11-15 17:05:07 +0000
committerHavoc Pennington <hp@src.gnome.org>1999-11-15 17:05:07 +0000
commit8fd6d2b1d87cd6c3100a90c6e26dfd5250cea4f6 (patch)
treecf2dc1585679586826b7b54b9c14308eb6f13415 /gconf/gconf-client.h
parenta03dd095d09b47dfac56311564c1a6a19848d471 (diff)
downloadgconf-8fd6d2b1d87cd6c3100a90c6e26dfd5250cea4f6.tar.gz
Fix it to use the current locale as documented.
1999-11-15 Havoc Pennington <hp@pobox.com> * gconf/gconf.c (gconf_get): Fix it to use the current locale as documented. * gconf/gconf-internals.c (gconf_value_list_to_primitive_list_destructive): new function takes most code from gconf_get_list() (gconf_value_pair_to_primitive_pair_destructive): new function * wrappers/gtk/gconf-client.c (get): Return a copy of the cached value, should save us some segfaults. (gconf_client_get_list): new function (gconf_client_get_pair): new function (gconf_client_set_list): new function (gconf_client_set_pair): new function * gconf/gconf-internals.c (gconf_value_pair_from_primitive_pair): new function removes guts of gconf_set_pair() * gconf/gconf.c (gconf_set_list): change to use gconf_value_list_from_primitive_list() * gconf/gconf-changeset.c (gconf_change_set_set_list): new convenience function (gconf_change_set_set_pair): new function * gconf/gconf-internals.c (gconf_value_list_from_primitive_list): new function, takes most of the code from gconf_set_list() to share with other list-set wrappers
Diffstat (limited to 'gconf/gconf-client.h')
-rw-r--r--gconf/gconf-client.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gconf/gconf-client.h b/gconf/gconf-client.h
index 68857ecc..311033a6 100644
--- a/gconf/gconf-client.h
+++ b/gconf/gconf-client.h
@@ -279,6 +279,14 @@ gboolean gconf_client_get_bool (GConfClient* client, const gchar* key,
GConfSchema* gconf_client_get_schema (GConfClient* client,
const gchar* key, GConfError** err);
+GSList* gconf_client_get_list (GConfClient* client, const gchar* key,
+ GConfValueType list_type, GConfError** err);
+
+gboolean gconf_client_get_pair (GConfClient* client, const gchar* key,
+ GConfValueType car_type, GConfValueType cdr_type,
+ gpointer car_retloc, gpointer cdr_retloc,
+ GConfError** err);
+
/* No convenience functions for lists or pairs, since there are too
many combinations of types possible
*/
@@ -300,6 +308,18 @@ gboolean gconf_client_set_bool (GConfClient* client, const gchar* key,
gboolean gconf_client_set_schema (GConfClient* client, const gchar* key,
GConfSchema* val, GConfError** err);
+/* List should be the same as the one gconf_client_get_list() would return */
+gboolean gconf_client_set_list (GConfClient* client, const gchar* key,
+ GConfValueType list_type,
+ GSList* list,
+ GConfError** err);
+
+gboolean gconf_client_set_pair (GConfClient* client, const gchar* key,
+ GConfValueType car_type, GConfValueType cdr_type,
+ gconstpointer address_of_car,
+ gconstpointer address_of_cdr,
+ GConfError** err);
+
/*
* Functions to emit signals
*/