summaryrefslogtreecommitdiff
path: root/gdk/wayland/gdkdisplay-wayland.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-11-26 19:40:28 -0500
committerMatthias Clasen <mclasen@redhat.com>2017-11-26 19:40:28 -0500
commitb8c58f41b6d2668ae3425e2b485e2482f899998d (patch)
tree3e64a1b0bf078abea45f34aee1eb71006da93657 /gdk/wayland/gdkdisplay-wayland.c
parent7ef5858f8de8bf2fa8e0e0dad0e860f81306a368 (diff)
downloadgtk+-b8c58f41b6d2668ae3425e2b485e2482f899998d.tar.gz
wayland: Don't provide gsetting if dconf is not available
This makes gtk+ fall back to reading ~/.config/gtk-3.0/settings.ini on systems with Wayland, but without dconf (do those exist?). https://bugzilla.gnome.org/show_bug.cgi?id=790201
Diffstat (limited to 'gdk/wayland/gdkdisplay-wayland.c')
-rw-r--r--gdk/wayland/gdkdisplay-wayland.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
index 453d4039d6..790974b209 100644
--- a/gdk/wayland/gdkdisplay-wayland.c
+++ b/gdk/wayland/gdkdisplay-wayland.c
@@ -1818,6 +1818,9 @@ gdk_wayland_display_get_setting (GdkDisplay *display,
{
TranslationEntry *entry;
+ if (g_hash_table_size (GDK_WAYLAND_DISPLAY (display)->settings) == 0)
+ return FALSE;
+
entry = find_translation_entry_by_setting (name);
if (entry != NULL)
{