summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2016-02-28 12:43:43 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2016-02-28 12:43:43 +0000
commite62a6376a50b975fcfbcf8e0ec6cef6f48f0e1df (patch)
tree313406eaf313ca6b6c16e42abc9add885bc64ea6
parent2bbadcaa8905328c0df274be8997a4dcc46c6086 (diff)
downloadclutter-e62a6376a50b975fcfbcf8e0ec6cef6f48f0e1df.tar.gz
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.
-rw-r--r--clutter/gdk/clutter-device-manager-gdk.c6
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 442aaa960..04a997097 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"