From 5d339e656b66d00356960ae057969532d34245b4 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 2 Jul 2014 17:13:40 -0400 Subject: Moved everything out of the way pending rewrite. --- prevlib/gtk_unix.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 prevlib/gtk_unix.h (limited to 'prevlib/gtk_unix.h') diff --git a/prevlib/gtk_unix.h b/prevlib/gtk_unix.h new file mode 100644 index 0000000..0eac4ac --- /dev/null +++ b/prevlib/gtk_unix.h @@ -0,0 +1,25 @@ +/* 16 march 2014 */ + +/* This header file is a convenience to ensure that the compatibility flags below are included in all Go files that include */ + +/* +MIN_REQUIRED signals that programs are expected to run on at least GLib 2.32/GTK+ 3.4 and thus deprectation warnings for newer versions (such as gtk_scrolled_window_add_with_viewport() being deprecated in GTK+ 3.8) should be suppressed. +MAX_ALLOWED signals that programs will not use features introduced in newer versions of GLib/GTK+ and that the compiler should warn us if we slip. +Thanks to desrt in irc.gimp.net/#gtk+ +*/ + +/* GLib/GObject */ +#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_32 +#define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_32 + +/* GDK/GTK+ */ +#define GDK_VERSION_MIN_REQUIRED GDK_VERSION_3_4 +#define GDK_VERSION_MAX_ALLOWED GDK_VERSION_3_4 + +/* TODO are there equivalent compatibility macros for the other components of GTK+? Specifically: + cairo + gdk-pixbuf +*/ + +#include +#include -- cgit v1.2.3