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. --- dialog_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dialog_unix.go') diff --git a/dialog_unix.go b/dialog_unix.go index 8564efd..510d9c5 100644 --- a/dialog_unix.go +++ b/dialog_unix.go @@ -10,7 +10,7 @@ import ( // #cgo pkg-config: gtk+-3.0 // #include -// #include +// #include "gtk_unix.h" // /* because cgo seems to choke on ... */ // /* TODO does NULL parent make the box application-global? docs are unclear */ // GtkWidget *gtkNewMsgBox(GtkMessageType type, GtkButtonsType buttons, char *title, char *text) { GtkWidget *k = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, type, buttons, "%s", (gchar *) title); gtk_message_dialog_format_secondary_text((GtkMessageDialog *) k, "%s", (gchar *) text); return k; } -- cgit v1.2.3