diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-16 10:34:12 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-16 10:34:12 -0400 |
| commit | 63f8033f49532fcbd294a40743348a8009ff81fd (patch) | |
| tree | 403ca4557172097cd1e2c71f755b7f637556f6f8 /area_unix.go | |
| parent | 7b95e735d68893aecf8d7419e4034480793e3c70 (diff) | |
Split out includes of <gtk/gtk.h> into a new header file so the GTK+ versioning macros can be included in all Go files, not just area_unix.go.
Diffstat (limited to 'area_unix.go')
| -rw-r--r-- | area_unix.go | 7 |
1 files changed, 1 insertions, 6 deletions
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 <gtk/gtk.h> +// #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); |
