tests: gdkpixbufoverlay-test: fix compilation against newer gdk-pixbuf
authorTim-Philipp Müller <tim@centricular.com>
Tue, 3 Mar 2015 19:04:48 +0000 (19:04 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 3 Mar 2015 19:04:48 +0000 (19:04 +0000)
gdk_pixbuf_new_from_inline() has been deprecated in favour
of GResource.

tests/icles/gdkpixbufoverlay-test.c

index d006599f7685f739ae4c7c02e448eeef336e45bc..4382b878d10745a444809675dc2899c3bfbd34be 100644 (file)
@@ -24,6 +24,8 @@
 #include <gio/gio.h>
 #include <gst/gst.h>
 #include <gst/video/video.h>
+
+#define GDK_PIXBUF_DISABLE_DEPRECATED   /* for gdk_pixbuf_new_from_inline */
 #include <gdk-pixbuf/gdk-pixbuf.h>
 
 #include <math.h>