Moved <stdlib.h> includes in the GTK+ backend to gtk_unix.h; organized that file a bit.

This commit is contained in:
Pietro Gagliardi 2014-04-01 16:01:49 -04:00
parent 854ec2d17c
commit 14770e890a
5 changed files with 9 additions and 6 deletions

View File

@ -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);

View File

@ -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 */

View File

@ -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 */

View File

@ -10,7 +10,6 @@ import (
)
// #cgo pkg-config: gtk+-3.0
// #include <stdlib.h>
// #include "gtk_unix.h"
import "C"

View File

@ -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)