diff --git a/gdk/mir/gdkmir-private.h b/gdk/mir/gdkmir-private.h index d6303140c4..0e5ff514da 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 93cbe6609b..ce7fa5d8fc 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 55428bc4de..9fbe1057d8 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)