[gtk+] quartz: Stop using gdk_screen_get_display
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] quartz: Stop using gdk_screen_get_display
- Date: Thu, 2 Nov 2017 00:57:56 +0000 (UTC)
commit b44ef37a21c7466838e82390caba7dc5fd034673
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Nov 1 20:54:22 2017 -0400
quartz: Stop using gdk_screen_get_display
We can just use the field directly.
gdk/quartz/gdkscreen-quartz.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/quartz/gdkscreen-quartz.c b/gdk/quartz/gdkscreen-quartz.c
index 96ba223..67a58a5 100644
--- a/gdk/quartz/gdkscreen-quartz.c
+++ b/gdk/quartz/gdkscreen-quartz.c
@@ -123,7 +123,7 @@ gdk_quartz_screen_calculate_layout (GdkQuartzScreen *screen)
NSArray *array;
int i;
int max_x, max_y;
- GdkDisplay *display = gdk_screen_get_display (GDK_SCREEN (screen));
+ GdkDisplay *display = screen->display;
GdkQuartzDisplay *display_quartz = GDK_QUARTZ_DISPLAY (display);
g_ptr_array_free (display_quartz->monitors, TRUE);
@@ -214,7 +214,7 @@ _gdk_quartz_screen_update_window_sizes (GdkScreen *screen)
_gdk_root->abs_x = 0;
_gdk_root->abs_y = 0;
- windows = gdk_display_get_toplevel_windows (gdk_screen_get_display (screen));
+ windows = gdk_display_get_toplevel_windows (GDK_QUARTZ_SCREEN (screen)->display);
for (list = windows; list; list = list->next)
_gdk_quartz_window_update_position (list->data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]