[gtk+] gdk: Use GdkMonitor APIs
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk: Use GdkMonitor APIs
- Date: Sun, 16 Oct 2016 16:27:11 +0000 (UTC)
commit d33c251cf68d97ecb8bfbd767d323f4e745fd6c8
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 0c818af..cee66a2 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -10847,10 +10847,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]