From d07230e55e6c1b001cd09e03816710e66a34e7f4 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 19 Aug 2014 13:33:06 -0400 Subject: Implemented the modal queue on the GTK+ backend to ensure proper queue ordering. --- redo/dialog_unix.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'redo/dialog_unix.go') diff --git a/redo/dialog_unix.go b/redo/dialog_unix.go index 6a16ac6..a4020aa 100644 --- a/redo/dialog_unix.go +++ b/redo/dialog_unix.go @@ -9,6 +9,7 @@ import ( ) // #include "gtk_unix.h" +// #include "modalqueue.h" // /* because cgo doesn't like ... */ // GtkWidget *newOpenFileDialog(void) // { @@ -29,9 +30,9 @@ func openFile() string { C.gtk_file_chooser_set_local_only(fc, C.FALSE) C.gtk_file_chooser_set_select_multiple(fc, C.FALSE) C.gtk_file_chooser_set_show_hidden(fc, C.TRUE) - inmodal = true + C.beginModal() response := C.gtk_dialog_run(dialog) - inmodal = false + C.endModal() if response != C.GTK_RESPONSE_ACCEPT { return "" } -- cgit v1.2.3