From b1f61b6fcc73e825c635ec6d312bbab8b62d6886 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 27 Oct 2016 00:06:36 +0200 Subject: [PATCH] gdk: Add deprecation guards around deprecated function --- gdk/gdkwindow.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 5bc9438afa..242b26204a 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -5048,7 +5048,11 @@ gdk_window_hide (GdkWindow *window) _gdk_display_get_next_serial (display), window, TRUE)) - gdk_device_ungrab (device, GDK_CURRENT_TIME); + { +G_GNUC_BEGIN_IGNORE_DEPRECATIONS + gdk_device_ungrab (device, GDK_CURRENT_TIME); +G_GNUC_END_IGNORE_DEPRECATIONS + } } window->state = GDK_WINDOW_STATE_WITHDRAWN;