]> Pileus Git - ~andy/gtk/commitdiff
tools: Work with deprecated APIs
authorBenjamin Otte <otte@redhat.com>
Wed, 9 Nov 2011 02:22:19 +0000 (03:22 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 9 Nov 2011 02:23:43 +0000 (03:23 +0100)
We want to screenshot deprecated widgets, so we'd better not fail when
using them.

docs/tools/widgets.c

index 6731ef0143fc705740703632d8f6f3c1fee9dc8d..949a35a3d91bfae825ccadb123f43556a247ae44 100644 (file)
@@ -1,5 +1,8 @@
 #include "config.h"
 
+#define GDK_DISABLE_DEPRECATION_WARNINGS
+#undef GTK_DISABLE_DEPRECATED
+
 #include <gtk/gtkunixprint.h>
 #include <gdk/gdkkeysyms.h>
 #include <X11/Xatom.h>