diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-28 15:02:27 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-28 15:02:27 -0400 |
| commit | 286704beddf7a4b3bf5bcdfa7a7ea4e32110d7d3 (patch) | |
| tree | afe620872b92c1ba3824ba2153d92473226ab284 /redo/window_unix.go | |
| parent | 13bcf728baf81705ddd09c72991893bffa34b8ae (diff) | |
Fixed the proper recursive application of spaced on Windows tabs by having container.resize() also take the origin coordinates as arguments.
Diffstat (limited to 'redo/window_unix.go')
| -rw-r--r-- | redo/window_unix.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redo/window_unix.go b/redo/window_unix.go index 5e9bbec..dc91cbe 100644 --- a/redo/window_unix.go +++ b/redo/window_unix.go @@ -110,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.resize(int(r.width), int(r.height)) + // the origin of the window's content area is always (0, 0) + w.resize(0, 0, int(r.width), int(r.height)) fmt.Printf("new size %d x %d\n", r.width, r.height) } |
