From 63f8033f49532fcbd294a40743348a8009ff81fd Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 16 Mar 2014 10:34:12 -0400 Subject: Split out includes of into a new header file so the GTK+ versioning macros can be included in all Go files, not just area_unix.go. --- area_unix.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'area_unix.go') diff --git a/area_unix.go b/area_unix.go index 11d3b04..c55f425 100644 --- a/area_unix.go +++ b/area_unix.go @@ -10,12 +10,7 @@ import ( ) // #cgo pkg-config: gtk+-3.0 -// /* GTK+ 3.8 deprecates gtk_scrolled_window_add_with_viewport(); we need 3.4 miniimum though -// setting MIN_REQUIRED ensures nothing older; setting MAX_ALLOWED disallows newer functions - thanks to desrt in irc.gimp.net/#gtk+ -// TODO add this to the other files too */ -// #define GDK_VERSION_MIN_REQUIRED GDK_VERSION_3_4 -// #define GDK_VERSION_MAX_ALLOWED GDK_VERSION_3_4 -// #include +// #include "gtk_unix.h" // extern gboolean our_area_draw_callback(GtkWidget *, cairo_t *, gpointer); // extern gboolean our_area_button_press_event_callback(GtkWidget *, GdkEvent *, gpointer); // extern gboolean our_area_button_release_event_callback(GtkWidget *, GdkEvent *, gpointer); -- cgit v1.2.3