forked from AuroraMiddleware/gtk
mir: Implement the GdkDisplay get_setting vfunc
Just call the corresponding screen vfunc.
This commit is contained in:
parent
f2055bfb7b
commit
a9ea420b65
@ -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__ */
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user