[gtk+] x11: Implement the GdkDisplay get_setting vfunc



commit 19157c5bf41fb812ad6bfaf34e9d712f2a47a347
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 30 16:44:18 2017 -0400

    x11: Implement the GdkDisplay get_setting vfunc
    
    Just call the GdkScreen vfunc.

 gdk/x11/gdkdisplay-x11.c |    9 +++++++++
 gdk/x11/gdkscreen-x11.c  |    2 +-
 gdk/x11/gdkscreen-x11.h  |    3 +++
 3 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index cc34d8c..2c3cf7f 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -3127,6 +3127,14 @@ gdk_x11_display_get_window_colormap (GdkX11Display *display)
   return display->window_colormap;
 }
 
+static gboolean
+gdk_x11_display_get_setting (GdkDisplay  *display,
+                             const gchar *name,
+                             GValue      *value)
+{
+  return gdk_x11_screen_get_setting (GDK_X11_DISPLAY (display)->screen, name, value);
+}
+
 static void
 gdk_x11_display_class_init (GdkX11DisplayClass * class)
 {
@@ -3187,6 +3195,7 @@ gdk_x11_display_class_init (GdkX11DisplayClass * class)
   display_class->get_n_monitors = gdk_x11_display_get_n_monitors;
   display_class->get_monitor = gdk_x11_display_get_monitor;
   display_class->get_primary_monitor = gdk_x11_display_get_primary_monitor;
+  display_class->get_setting = gdk_x11_display_get_setting;
 
   _gdk_x11_windowing_init ();
 }
diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c
index fb27fdc..4c4ae0b 100644
--- a/gdk/x11/gdkscreen-x11.c
+++ b/gdk/x11/gdkscreen-x11.c
@@ -980,7 +980,7 @@ _gdk_x11_screen_window_manager_changed (GdkScreen *screen)
   g_signal_emit (screen, signals[WINDOW_MANAGER_CHANGED], 0);
 }
 
-static gboolean
+gboolean
 gdk_x11_screen_get_setting (GdkScreen   *screen,
                            const gchar *name,
                            GValue      *value)
diff --git a/gdk/x11/gdkscreen-x11.h b/gdk/x11/gdkscreen-x11.h
index f26e13f..81c1781 100644
--- a/gdk/x11/gdkscreen-x11.h
+++ b/gdk/x11/gdkscreen-x11.h
@@ -114,6 +114,9 @@ void _gdk_x11_screen_set_window_scale       (GdkX11Screen *x11_screen,
                                             int        scale);
 void gdk_x11_screen_get_work_area           (GdkScreen    *screen,
                                              GdkRectangle *area);
+gboolean gdk_x11_screen_get_setting         (GdkScreen    *screen,
+                                             const char   *name,
+                                             GValue       *value);
 
 G_END_DECLS
 


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