use the GdkDisplay get_setting vfunc

Instead of calling the GdkScreen implementation, use our
own vfunc now.
This commit is contained in:
Matthias Clasen 2017-10-30 16:44:47 -04:00
parent 19157c5bf4
commit f9dacd6de0

View File

@ -2238,7 +2238,11 @@ gdk_display_get_setting (GdkDisplay *display,
const char *name, const char *name,
GValue *value) GValue *value)
{ {
return gdk_screen_get_setting (gdk_display_get_default_screen (display), name, value); g_return_val_if_fail (GDK_IS_DISPLAY (display), FALSE);
g_return_val_if_fail (name != NULL, FALSE);
g_return_val_if_fail (value != NULL, FALSE);
return GDK_DISPLAY_GET_CLASS (display)->get_setting (display, name, value);
} }
void void