From d34ffa326c98f1c385d2068ede115887e23b3e7e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 26 Jul 2014 14:11:03 -0400 Subject: Made the sizing recursive chain idempotent and added a -spaced option to the test program to test spacing. --- redo/window_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'redo/window_unix.go') 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) } -- cgit v1.2.3