summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-07 22:35:27 -0400
committerPietro Gagliardi <[email protected]>2014-07-07 22:35:27 -0400
commitdccf548ffa64702bc058d7d8288127212b8bdce0 (patch)
treeeba190871090a94c020b42ad21ff9ade3a2cd2de
parentcddf0417dc10fe2e094eba5e614ad7302fc4c207 (diff)
Added gtk_unix.h from the old ui; removed the line about gdk-pixbuf. Let's hope this builds...
-rw-r--r--redo/gtk_unix.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/redo/gtk_unix.h b/redo/gtk_unix.h
new file mode 100644
index 0000000..24f2d25
--- /dev/null
+++ b/redo/gtk_unix.h
@@ -0,0 +1,24 @@
+/* 16 march 2014 */
+
+/* This header file is a convenience to ensure that the compatibility flags below are included in all Go files that include <gtk/gtk.h> */
+
+/*
+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
+*/
+
+#include <stdlib.h>
+#include <gtk/gtk.h>