diff --git a/dlgs_linux.go b/dlgs_linux.go index 524964c..de572bf 100644 --- a/dlgs_linux.go +++ b/dlgs_linux.go @@ -9,10 +9,13 @@ package dialog // static GtkWidget* filedlg(char *title, GtkWindow *parent, GtkFileChooserAction action, char* acceptText) { // return gtk_file_chooser_dialog_new(title, parent, action, "Cancel", GTK_RESPONSE_CANCEL, acceptText, GTK_RESPONSE_ACCEPT, NULL); // } +// #cgo pkg-config: x11 +// #include import "C" import "unsafe" func Init() { + C.XInitThreads() C.gtk_init(nil, nil) }