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:
Philip Withnall 2023-01-10 20:55:37 +00:00
parent 6d2705e016
commit b494b83405

View File

@ -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);