gdk/display-wayland: Don't bypass portal for theme entries
When commit 49589e1da added support for the new high-contrast key, it missed that the getter should only use the setting directly when not going through the portal. https://gitlab.gnome.org/GNOME/gtk/-/issues/4651
This commit is contained in:
parent
248783c202
commit
de360b3745
@ -1017,7 +1017,11 @@ set_theme_from_entry (GdkScreen *screen,
|
||||
GSettingsSchema *schema = NULL;
|
||||
gboolean hc = FALSE;
|
||||
|
||||
settings = (GSettings *)g_hash_table_lookup (screen_wayland->settings, "org.gnome.desktop.a11y.interface");
|
||||
if (screen_wayland->settings_portal == NULL)
|
||||
{
|
||||
settings = (GSettings *)g_hash_table_lookup (screen_wayland->settings,
|
||||
"org.gnome.desktop.a11y.interface");
|
||||
}
|
||||
|
||||
if (settings)
|
||||
g_object_get (settings, "settings-schema", &schema, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user