From e62a6376a50b975fcfbcf8e0ec6cef6f48f0e1df Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 28 Feb 2016 12:43:43 +0000 Subject: [PATCH] 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 file changed, 6 insertions(+) diff --git a/clutter/gdk/clutter-device-manager-gdk.c b/clutter/gdk/clutter-device-manager-gdk.c index 442aaa960..04a997097 100644 --- a/clutter/gdk/clutter-device-manager-gdk.c +++ b/clutter/gdk/clutter-device-manager-gdk.c @@ -28,6 +28,12 @@ #include #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"