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.
This commit is contained in:
Emmanuele Bassi 2016-02-28 12:43:43 +00:00
parent 2bbadcaa89
commit e62a6376a5

View File

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