[gtk+] quartz: Implement the GdkDisplay get_setting vfunc
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] quartz: Implement the GdkDisplay get_setting vfunc
- Date: Mon, 30 Oct 2017 21:04:13 +0000 (UTC)
commit c63c672ba8f4c34264bbccceaad9a43b2b46ee2a
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 30 16:42:49 2017 -0400
quartz: Implement the GdkDisplay get_setting vfunc
Just call the GdkScreen vfunc.
gdk/quartz/gdkdisplay-quartz.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gdk/quartz/gdkdisplay-quartz.c b/gdk/quartz/gdkdisplay-quartz.c
index 19be436..3376cbb 100644
--- a/gdk/quartz/gdkdisplay-quartz.c
+++ b/gdk/quartz/gdkdisplay-quartz.c
@@ -209,6 +209,15 @@ gdk_quartz_display_get_primary_monitor (GdkDisplay *display)
return quartz_display->monitors->pdata[0];
}
+static gboolean
+gdk_quartz_display_get_setting (GdkDisplay *display,
+ const gchar *name,
+ GValue *value)
+{
+ return _gdk_quartz_screen_get_setting (_gdk_screen, name, value);
+}
+
+
G_DEFINE_TYPE (GdkQuartzDisplay, gdk_quartz_display, GDK_TYPE_DISPLAY)
static void
@@ -287,6 +296,7 @@ gdk_quartz_display_class_init (GdkQuartzDisplayClass *class)
display_class->get_n_monitors = gdk_quartz_display_get_n_monitors;
display_class->get_monitor = gdk_quartz_display_get_monitor;
display_class->get_primary_monitor = gdk_quartz_display_get_primary_monitor;
+ display_class->get_setting = gdk_quartz_display_get_setting;
ProcessSerialNumber psn = { 0, kCurrentProcess };
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]