diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-01 16:01:49 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-01 16:01:49 -0400 |
| commit | 14770e890aba8fb40b97a05fa27c25906555df95 (patch) | |
| tree | 937c633c0aef8da21285413638843f4f8c12a42a | |
| parent | 854ec2d17c6c680f5add025aa5326dfdcc4670d2 (diff) | |
Moved <stdlib.h> includes in the GTK+ backend to gtk_unix.h; organized that file a bit.
| -rw-r--r-- | callbacks_unix.go | 1 | ||||
| -rw-r--r-- | dialog_unix.go | 1 | ||||
| -rw-r--r-- | gtk_unix.h | 11 | ||||
| -rw-r--r-- | gtkcalls_unix.go | 1 | ||||
| -rw-r--r-- | listbox_unix.go | 1 |
5 files changed, 9 insertions, 6 deletions
diff --git a/callbacks_unix.go b/callbacks_unix.go index 1efe723..5c7afc3 100644 --- a/callbacks_unix.go +++ b/callbacks_unix.go @@ -16,7 +16,6 @@ while we're at it the callback for our idle function will be handled here too // #cgo pkg-config: gtk+-3.0 // #include "gtk_unix.h" -// #include <stdlib.h> // extern gboolean our_window_delete_event_callback(GtkWidget *, GdkEvent *, gpointer); // extern gboolean our_window_configure_event_callback(GtkWidget *, GdkEvent *, gpointer); // extern void our_button_clicked_callback(GtkButton *, gpointer); diff --git a/dialog_unix.go b/dialog_unix.go index 510d9c5..3889086 100644 --- a/dialog_unix.go +++ b/dialog_unix.go @@ -9,7 +9,6 @@ import ( ) // #cgo pkg-config: gtk+-3.0 -// #include <stdlib.h> // #include "gtk_unix.h" // /* because cgo seems to choke on ... */ // /* TODO does NULL parent make the box application-global? docs are unclear */ @@ -7,12 +7,19 @@ MIN_REQUIRED signals that programs are expected to run on at least GLib 2.32/GTK 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+? */ +/* TODO are there equivalent compatibility macros for the other components of GTK+? Specifically: + cairo + gdk-pixbuf +*/ +#include <stdlib.h> #include <gtk/gtk.h> -/* TODO include <stdlib.h> too */ diff --git a/gtkcalls_unix.go b/gtkcalls_unix.go index c7b409a..d1158d5 100644 --- a/gtkcalls_unix.go +++ b/gtkcalls_unix.go @@ -10,7 +10,6 @@ import ( ) // #cgo pkg-config: gtk+-3.0 -// #include <stdlib.h> // #include "gtk_unix.h" import "C" diff --git a/listbox_unix.go b/listbox_unix.go index fd9995e..02c4aed 100644 --- a/listbox_unix.go +++ b/listbox_unix.go @@ -29,7 +29,6 @@ and the GTK+ reference documentation. */ // #cgo pkg-config: gtk+-3.0 -// #include <stdlib.h> // #include "gtk_unix.h" // /* because cgo seems to choke on ... */ // void gtkTreeModelGet(GtkTreeModel *model, GtkTreeIter *iter, gchar **gs) |
