[gtk+/wip/otte/gtk4: 5/118] gdk: Use GdkMonitor APIs
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/otte/gtk4: 5/118] gdk: Use GdkMonitor APIs
- Date: Fri, 7 Oct 2016 00:00:07 +0000 (UTC)
commit 92155c6c3e3e5e90618dd741867acdd695e009bb
Author: Benjamin Otte <otte redhat com>
Date: Sun Sep 4 21:52:00 2016 +0200
gdk: Use GdkMonitor APIs
... instead of the old ones using GdkScreen
gdk/gdkwindow.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 514732d..901c209 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -10832,10 +10832,10 @@ void
gdk_window_fullscreen_on_monitor (GdkWindow *window,
gint monitor)
{
- GdkScreen *screen = gdk_window_get_screen (window);
+ GdkDisplay *display = gdk_window_get_display (window);
g_return_if_fail (monitor >= 0);
- g_return_if_fail (monitor < gdk_screen_get_n_monitors (screen));
+ g_return_if_fail (monitor < gdk_display_get_n_monitors (display));
if (GDK_WINDOW_IMPL_GET_CLASS (window->impl)->fullscreen_on_monitor != NULL)
GDK_WINDOW_IMPL_GET_CLASS (window->impl)->fullscreen_on_monitor (window, monitor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]