[gtk+] mir: Implement the GdkDisplay get_setting vfunc
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] mir: Implement the GdkDisplay get_setting vfunc
- Date: Mon, 30 Oct 2017 21:04:08 +0000 (UTC)
commit a9ea420b652c5205e12b6ca97ef979caecde6bed
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 30 16:41:59 2017 -0400
mir: Implement the GdkDisplay get_setting vfunc
Just call the corresponding screen vfunc.
gdk/mir/gdkmir-private.h | 6 ++++++
gdk/mir/gdkmirdisplay.c | 9 +++++++++
gdk/mir/gdkmirscreen.c | 2 +-
3 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/gdk/mir/gdkmir-private.h b/gdk/mir/gdkmir-private.h
index d630314..0e5ff51 100644
--- a/gdk/mir/gdkmir-private.h
+++ b/gdk/mir/gdkmir-private.h
@@ -138,4 +138,10 @@ EGLSurface _gdk_mir_window_get_dummy_egl_surface (GdkWindow *window, EGLConfig c
void _gdk_mir_print_event (const MirEvent *event);
+gboolean gdk_mir_screen_get_setting (GdkScreen *screen,
+ const gchar *name,
+ GValue *value);
+
+
+
#endif /* __GDK_PRIVATE_MIR_H__ */
diff --git a/gdk/mir/gdkmirdisplay.c b/gdk/mir/gdkmirdisplay.c
index 93cbe66..ce7fa5d 100644
--- a/gdk/mir/gdkmirdisplay.c
+++ b/gdk/mir/gdkmirdisplay.c
@@ -1178,6 +1178,14 @@ gdk_mir_display_get_monitor (GdkDisplay *display,
return g_list_nth_data (GDK_MIR_DISPLAY (display)->monitors, index);
}
+static gboolean
+gdk_mir_display_get_setting (GdkDisplay *display,
+ const char *name,
+ GValue *value)
+{
+ return gdk_mir_screen_get_setting (GDK_MIR_DISPLAY (display)->screen, name, value);
+}
+
static void
gdk_mir_display_init (GdkMirDisplay *display)
{
@@ -1235,4 +1243,5 @@ gdk_mir_display_class_init (GdkMirDisplayClass *klass)
display_class->make_gl_context_current = gdk_mir_display_make_gl_context_current;
display_class->get_n_monitors = gdk_mir_display_get_n_monitors;
display_class->get_monitor = gdk_mir_display_get_monitor;
+ display_class->get_setting = gdk_mir_display_get_setting;
}
diff --git a/gdk/mir/gdkmirscreen.c b/gdk/mir/gdkmirscreen.c
index 55428bc..9fbe105 100644
--- a/gdk/mir/gdkmirscreen.c
+++ b/gdk/mir/gdkmirscreen.c
@@ -662,7 +662,7 @@ static const gchar * const KNOWN_SETTINGS[] =
NULL
};
-static gboolean
+gboolean
gdk_mir_screen_get_setting (GdkScreen *screen,
const gchar *name,
GValue *value)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]