diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-26 14:11:03 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-26 14:11:03 -0400 |
| commit | d34ffa326c98f1c385d2068ede115887e23b3e7e (patch) | |
| tree | 30de1c8a595a117184d48ce9524b2fff0fc0b13b /redo/window_unix.go | |
| parent | 22989c13da1ece51a815046ee68ff57c36bbeaeb (diff) | |
Made the sizing recursive chain idempotent and added a -spaced option to the test program to test spacing.
Diffstat (limited to 'redo/window_unix.go')
| -rw-r--r-- | redo/window_unix.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redo/window_unix.go b/redo/window_unix.go index 6ab68b1..953de49 100644 --- a/redo/window_unix.go +++ b/redo/window_unix.go @@ -49,7 +49,6 @@ func newWindow(title string, width int, height int, control Control) *window { closing: newEvent(), container: new(container), } - w.container.beginResize = w.beginResize C.gtk_window_set_title(w.window, ctitle) g_signal_connect( C.gpointer(unsafe.Pointer(w.window)), @@ -111,6 +110,7 @@ func windowClosing(wid *C.GtkWidget, e *C.GdkEvent, data C.gpointer) C.gboolean //export windowResizing func windowResizing(wid *C.GtkWidget, r *C.GdkRectangle, data C.gpointer) { w := (*window)(unsafe.Pointer(data)) + w.container.d = w.beginResize() w.resize(int(r.width), int(r.height)) fmt.Printf("new size %d x %d\n", r.width, r.height) } |
