[gtk+] GdkWindow: Add a few ignore deprecations statements around GdkDeviceManager



commit 50859d9efe46db5694e0bb98a101a4c0bcd5762e
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Dec 16 19:05:49 2015 +0100

    GdkWindow: Add a few ignore deprecations statements around GdkDeviceManager
    
    There's places where we still need to deal with floating devices, which are
    unseen by seats. Ignore deprecations and keep using GdkDeviceManager until
    we can forget about floating devices.

 gdk/gdkwindow.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index d36400e..57ffa64 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -5371,6 +5371,8 @@ gdk_window_hide (GdkWindow *window)
       GdkDeviceManager *device_manager;
       GList *devices, *d;
 
+      G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
       /* May need to break grabs on children */
       display = gdk_window_get_display (window);
       device_manager = gdk_display_get_device_manager (display);
@@ -5394,6 +5396,7 @@ gdk_window_hide (GdkWindow *window)
 
       window->state = GDK_WINDOW_STATE_WITHDRAWN;
       g_list_free (devices);
+      G_GNUC_END_IGNORE_DEPRECATIONS;
     }
 
   did_hide = _gdk_window_update_viewable (window);
@@ -8499,6 +8502,7 @@ gdk_window_set_source_events (GdkWindow      *window,
 
   g_return_if_fail (GDK_IS_WINDOW (window));
 
+  G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
   display = gdk_window_get_display (window);
   device_manager = gdk_display_get_device_manager (display);
 
@@ -8514,6 +8518,7 @@ gdk_window_set_source_events (GdkWindow      *window,
     }
 
   g_list_free (devices);
+  G_GNUC_END_IGNORE_DEPRECATIONS;
 
   /* Update accounting */
   if (G_UNLIKELY (!window->source_event_masks))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]