diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-11-17 13:29:14 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-17 13:47:15 -0500 |
commit | c7b5cb8e8e76feea15b2be032b66c2dc8213bb75 (patch) | |
tree | a2a723da8a9d01f25145affcfbbdde47b5e550aa /gdk/quartz | |
parent | 0f2d7d41f1fedef588f111bd107410aa09265966 (diff) | |
download | gtk+-c7b5cb8e8e76feea15b2be032b66c2dc8213bb75.tar.gz |
quartz: Avoid a screen argument
The screen is never used in _gdk_quartz_screen_get_setting,
so drop it.
Diffstat (limited to 'gdk/quartz')
-rw-r--r-- | gdk/quartz/gdkdisplay-quartz.c | 2 | ||||
-rw-r--r-- | gdk/quartz/gdkevents-quartz.c | 6 | ||||
-rw-r--r-- | gdk/quartz/gdkprivate-quartz.h | 5 |
3 files changed, 5 insertions, 8 deletions
diff --git a/gdk/quartz/gdkdisplay-quartz.c b/gdk/quartz/gdkdisplay-quartz.c index 206a84afaf..6b044ac2c6 100644 --- a/gdk/quartz/gdkdisplay-quartz.c +++ b/gdk/quartz/gdkdisplay-quartz.c @@ -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); } diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c index 0d08d207e7..fd71ad6a04 100644 --- a/gdk/quartz/gdkevents-quartz.c +++ b/gdk/quartz/gdkevents-quartz.c @@ -29,7 +29,6 @@ #include <gdk/gdkdisplayprivate.h> -#include "gdkscreen.h" #include "gdkkeysyms.h" #include "gdkquartz.h" #include "gdkquartzdisplay.h" @@ -1743,9 +1742,8 @@ _gdk_quartz_display_queue_events (GdkDisplay *display) } gboolean -_gdk_quartz_screen_get_setting (GdkScreen *screen, - const gchar *name, - GValue *value) +_gdk_quartz_get_setting (const gchar *name, + GValue *value) { if (strcmp (name, "gtk-double-click-time") == 0) { diff --git a/gdk/quartz/gdkprivate-quartz.h b/gdk/quartz/gdkprivate-quartz.h index 6f60698c80..2e147a9628 100644 --- a/gdk/quartz/gdkprivate-quartz.h +++ b/gdk/quartz/gdkprivate-quartz.h @@ -93,9 +93,8 @@ 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, - GValue *value); +gboolean _gdk_quartz_get_setting (const gchar *name, + GValue *value); /* Window */ |