mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01:00
gsettings: Support per-desktop overrides in GSettingsAction
Due to an oversight (I guess), per-desktop default values (which come from override files such as this one: https://github.com/endlessm/gnome-shell/blob/master/data/00_org.gnome.shell.gschema.override) were not checked when getting a GSettings value via a `GSettingsAction`. Per-desktop default values are correctly returned via all other GSettings query paths (see calls to `g_settings_schema_key_get_translated_default()`). Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
6d2705e016
commit
b494b83405
@ -3225,6 +3225,9 @@ g_settings_action_get_state (GAction *action)
|
||||
if (value == NULL)
|
||||
value = g_settings_schema_key_get_translated_default (&gsa->key);
|
||||
|
||||
if (value == NULL)
|
||||
value = g_settings_schema_key_get_per_desktop_default (&gsa->key);
|
||||
|
||||
if (value == NULL)
|
||||
value = g_variant_ref (gsa->key.default_value);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user