From ecc02ee73202e9a6eba6c3c334f648cfd1660757 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 26 Aug 2014 13:54:55 -0400 Subject: Implemented the new dialog system on GTK+. --- redo/window_unix.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'redo/window_unix.go') diff --git a/redo/window_unix.go b/redo/window_unix.go index 7a5cc16..3f31089 100644 --- a/redo/window_unix.go +++ b/redo/window_unix.go @@ -18,6 +18,8 @@ type window struct { bin *C.GtkBin window *C.GtkWindow + group *C.GtkWindowGroup + closing *event *container @@ -43,6 +45,9 @@ func newWindow(title string, width int, height int, control Control) *window { C.gtk_window_resize(w.window, C.gint(width), C.gint(height)) w.container = newContainer(control) w.container.setParent(&controlParent{w.wc}) + // for dialogs; otherwise, they will be modal to all windows, not just this one + w.group = C.gtk_window_group_new() + C.gtk_window_group_add_window(w.group, w.window) return w } -- cgit v1.2.3