summaryrefslogtreecommitdiff
path: root/gio/gsettings.h
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2010-10-04 02:58:46 -0400
committerRyan Lortie <desrt@desrt.ca>2010-10-04 02:58:46 -0400
commitd6d76783ae9fc473d7fe38683d729d6c2c8e80c4 (patch)
tree334801e5d317e95ad799fb0d5efad581b7a0cf3e /gio/gsettings.h
parent833e389516b5e5b2271ed84c7b2036801c3100f1 (diff)
downloadglib-d6d76783ae9fc473d7fe38683d729d6c2c8e80c4.tar.gz
Bug 631263 - GSettings needs range/choice APIs
Add g_settings_get_range() to describe the possible values that may be provided to g_settings_set_value() without causing an error. Add a test case.
Diffstat (limited to 'gio/gsettings.h')
-rw-r--r--gio/gsettings.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gio/gsettings.h b/gio/gsettings.h
index 2b4e2f6fc..a90cd0be9 100644
--- a/gio/gsettings.h
+++ b/gio/gsettings.h
@@ -82,6 +82,8 @@ GSettings * g_settings_new_with_backend_and_path (const g
const gchar *path);
gchar ** g_settings_list_children (GSettings *settings);
gchar ** g_settings_list_keys (GSettings *settings);
+GVariant * g_settings_get_range (GSettings *settings,
+ const gchar *key);
gboolean g_settings_set_value (GSettings *settings,
const gchar *key,