gdk: Add deprecation guards around deprecated function

This commit is contained in:
Benjamin Otte 2016-10-27 00:06:36 +02:00
parent 568f1ff301
commit b1f61b6fcc

View File

@ -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;