diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-11-01 11:52:56 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-01 14:17:20 -0400 |
commit | 606345cbaa4eeb583e293094bcc0d1bc98c0433b (patch) | |
tree | d0b8420bf945dbae5675088bf8ead67ca4fe5660 /gdk/gdkwindow.c | |
parent | f2655b055d6d1e7b81293aad7ecbcc0956857164 (diff) | |
download | gtk+-606345cbaa4eeb583e293094bcc0d1bc98c0433b.tar.gz |
Change the fullscreen-on-monitor api
Use GdkMonitor here, since that is our primary monitor
object now, and GdkScreen is going away.
Diffstat (limited to 'gdk/gdkwindow.c')
-rw-r--r-- | gdk/gdkwindow.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index d204462ec4..e21ef3e17d 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -6769,13 +6769,13 @@ gdk_window_fullscreen (GdkWindow *window) * Since: UNRELEASED **/ void -gdk_window_fullscreen_on_monitor (GdkWindow *window, - gint monitor) +gdk_window_fullscreen_on_monitor (GdkWindow *window, + GdkMonitor *monitor) { - GdkDisplay *display = gdk_window_get_display (window); - - g_return_if_fail (monitor >= 0); - g_return_if_fail (monitor < gdk_display_get_n_monitors (display)); + g_return_if_fail (GDK_IS_WINDOW (window)); + g_return_if_fail (GDK_IS_MONITOR (monitor)); + g_return_if_fail (gdk_monitor_get_display (monitor) == gdk_window_get_display (window)); + g_return_if_fail (gdk_monitor_is_valid (monitor)); if (GDK_WINDOW_IMPL_GET_CLASS (window->impl)->fullscreen_on_monitor != NULL) GDK_WINDOW_IMPL_GET_CLASS (window->impl)->fullscreen_on_monitor (window, monitor); |