quartz: Avoid a screen argument

The screen is never used in _gdk_quartz_screen_get_setting,
so drop it.
This commit is contained in:
Matthias Clasen 2017-11-17 13:29:14 -05:00
parent 0f2d7d41f1
commit c7b5cb8e8e
3 changed files with 5 additions and 8 deletions

View File

@ -208,7 +208,7 @@ gdk_quartz_display_get_setting (GdkDisplay *display,
const gchar *name,
GValue *value)
{
return _gdk_quartz_screen_get_setting (_gdk_screen, name, value);
return _gdk_quartz_get_setting (name, value);
}

View File

@ -29,7 +29,6 @@
#include <gdk/gdkdisplayprivate.h>
#include "gdkscreen.h"
#include "gdkkeysyms.h"
#include "gdkquartz.h"
#include "gdkquartzdisplay.h"
@ -1743,8 +1742,7 @@ _gdk_quartz_display_queue_events (GdkDisplay *display)
}
gboolean
_gdk_quartz_screen_get_setting (GdkScreen *screen,
const gchar *name,
_gdk_quartz_get_setting (const gchar *name,
GValue *value)
{
if (strcmp (name, "gtk-double-click-time") == 0)

View File

@ -93,8 +93,7 @@ GdkScreen *_gdk_quartz_screen_new (void);
void _gdk_quartz_screen_update_window_sizes (GdkScreen *screen);
/* Screen methods - events */
gboolean _gdk_quartz_screen_get_setting (GdkScreen *screen,
const gchar *name,
gboolean _gdk_quartz_get_setting (const gchar *name,
GValue *value);