[clutter] gdk: Disable deprecation warnings



commit e62a6376a50b975fcfbcf8e0ec6cef6f48f0e1df
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sun Feb 28 12:43:43 2016 +0000

    gdk: Disable deprecation warnings
    
    For the GDK backend We're using the GdkDeviceManager API, which maps to
    Clutter's own device manager API. GDK has now moved to a per-seat device
    management model, and deprecated the device manager singleton one.
    
    In order to avoid the deprecation warnings, we'd have to implement a
    model similar to the GDK one inside the generic Clutter API, but that
    would also require moving all the others backend to it, which is pretty
    pointless.
    
    Instead, we can disable deprecation warnings for the
    ClutterDeviceManager implementation inside the GDK backend.

 clutter/gdk/clutter-device-manager-gdk.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/clutter/gdk/clutter-device-manager-gdk.c b/clutter/gdk/clutter-device-manager-gdk.c
index 442aaa9..04a9970 100644
--- a/clutter/gdk/clutter-device-manager-gdk.c
+++ b/clutter/gdk/clutter-device-manager-gdk.c
@@ -28,6 +28,12 @@
 #include <stdint.h>
 #endif
 
+/* XXX: We're using the GdkDeviceManager deprecated API because
+ * porting to the new GdkSeat API would imply adding an equivalent
+ * API to Clutter.
+ */
+#define GDK_DISABLE_DEPRECATION_WARNINGS
+
 #include "clutter-device-manager-gdk.h"
 
 #include "clutter-backend-gdk.h"


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