diff --git a/dlgs_linux.go b/dlgs_linux.go index ee37221..dd53506 100644 --- a/dlgs_linux.go +++ b/dlgs_linux.go @@ -1,6 +1,8 @@ package dialog // #cgo pkg-config: gtk+-3.0 +// #cgo LDFLAGS: -lX11 +// #include // #include // #include // static GtkWidget* msgdlg(GtkWindow *parent, GtkDialogFlags flags, GtkMessageType type, GtkButtonsType buttons, char *msg) { @@ -13,6 +15,7 @@ import "C" import "unsafe" func init() { + C.XInitThreads() C.gtk_init(nil, nil) }