[gtk: 1/2] gdk/display-wayland: Don't bypass portal for theme entries
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] gdk/display-wayland: Don't bypass portal for theme entries
- Date: Tue, 4 Jan 2022 14:51:06 +0000 (UTC)
commit 9e5d412a8b59d994ef1b2e0f4ccaee6e14016d69
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Jan 4 14:29:13 2022 +0100
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/4593
gdk/wayland/gdkdisplay-wayland.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
index 1b6f728f06..2017e90518 100644
--- a/gdk/wayland/gdkdisplay-wayland.c
+++ b/gdk/wayland/gdkdisplay-wayland.c
@@ -2110,7 +2110,11 @@ set_theme_from_entry (GdkDisplay *display,
GSettingsSchema *schema = NULL;
gboolean hc = FALSE;
- settings = (GSettings *)g_hash_table_lookup (display_wayland->settings,
"org.gnome.desktop.a11y.interface");
+ if (display_wayland->settings_portal == NULL)
+ {
+ settings = (GSettings *)g_hash_table_lookup (display_wayland->settings,
+ "org.gnome.desktop.a11y.interface");
+ }
if (settings)
g_object_get (settings, "settings-schema", &schema, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]