Moved <stdlib.h> includes in the GTK+ backend to gtk_unix.h; organized that file a bit.
This commit is contained in:
parent
854ec2d17c
commit
14770e890a
|
@ -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);
|
||||
|
|
|
@ -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 */
|
||||
|
|
11
gtk_unix.h
11
gtk_unix.h
|
@ -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 */
|
||||
|
|
|
@ -10,7 +10,6 @@ import (
|
|||
)
|
||||
|
||||
// #cgo pkg-config: gtk+-3.0
|
||||
// #include <stdlib.h>
|
||||
// #include "gtk_unix.h"
|
||||
import "C"
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue