mir: Implement the GdkDisplay get_setting vfunc

Just call the corresponding screen vfunc.
This commit is contained in:
Matthias Clasen 2017-10-30 16:41:59 -04:00
parent f2055bfb7b
commit a9ea420b65
3 changed files with 16 additions and 1 deletions

View File

@ -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__ */

View File

@ -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;
}

View File

@ -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)