[gtk+] wayland: Don't provide gsetting if dconf is not available



commit b8c58f41b6d2668ae3425e2b485e2482f899998d
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Nov 26 19:40:28 2017 -0500

    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

 gdk/wayland/gdkdisplay-wayland.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
index 453d403..790974b 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)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]