mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-03 07:53:39 +02:00
GSettings: add getters for user/default value
Add two new APIs: g_settings_get_user_value() and g_settings_get_default_value(). Together, these should allow the inspection of all interesting cases of "is this key set?" and "what would happen if I reset this key?" https://bugzilla.gnome.org/show_bug.cgi?id=668233
This commit is contained in:
@@ -112,6 +112,13 @@ GLIB_AVAILABLE_IN_ALL
|
||||
GVariant * g_settings_get_value (GSettings *settings,
|
||||
const gchar *key);
|
||||
|
||||
GLIB_AVAILABLE_IN_2_40
|
||||
GVariant * g_settings_get_user_value (GSettings *settings,
|
||||
const gchar *key);
|
||||
GLIB_AVAILABLE_IN_2_40
|
||||
GVariant * g_settings_get_default_value (GSettings *settings,
|
||||
const gchar *key);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_settings_set (GSettings *settings,
|
||||
const gchar *key,
|
||||
|
Reference in New Issue
Block a user