diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-26 13:54:55 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-26 13:54:55 -0400 |
| commit | ecc02ee73202e9a6eba6c3c334f648cfd1660757 (patch) | |
| tree | b033c76c74c1d62ad4c35327cfa8ce1b04869135 /redo/window_unix.go | |
| parent | 8fec7176de8f1927aad1ae33c5db234213031264 (diff) | |
Implemented the new dialog system on GTK+.
Diffstat (limited to 'redo/window_unix.go')
| -rw-r--r-- | redo/window_unix.go | 5 |
1 files changed, 5 insertions, 0 deletions
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 } |
