diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-11-05 18:32:40 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2018-11-05 18:32:40 -0500 |
commit | c31fb43b9f342eae9c982394142e94b6ca64e7a7 (patch) | |
tree | 20dd380ede4492eab92690e776e2eeacc47c6b8a | |
parent | 41562ab2c6a2e85f3c1c9027c93882d4e8d7690b (diff) | |
download | gtk+-settings-portal-for-3.tar.gz |
wayland: Fix a thinko in settings portal supportsettings-portal-for-3
When we decide to fall back because the settings portal
is not present, adhere to that decision elsewhere.
-rw-r--r-- | gdk/wayland/gdkscreen-wayland.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk/wayland/gdkscreen-wayland.c b/gdk/wayland/gdkscreen-wayland.c index 19e4111308..16d3260041 100644 --- a/gdk/wayland/gdkscreen-wayland.c +++ b/gdk/wayland/gdkscreen-wayland.c @@ -346,7 +346,7 @@ update_xft_settings (GdkScreen *screen) GsdXftSettings xft_settings; double dpi; - if (gdk_should_use_portal ()) + if (screen_wayland->settings_portal) { TranslationEntry *entry; @@ -822,7 +822,7 @@ set_value_from_entry (GdkScreen *screen, GdkWaylandScreen *screen_wayland = GDK_WAYLAND_SCREEN (screen); GSettings *settings; - if (gdk_should_use_portal ()) + if (screen_wayland->settings_portal) { switch (entry->type) { @@ -917,7 +917,7 @@ set_decoration_layout_from_entry (GdkScreen *screen, GSettings *settings = NULL; const char *session; - if (gdk_should_use_portal ()) + if (screen_wayland->settings_portal) { g_value_set_string (value, entry->fallback.s); return; |