diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-16 21:30:19 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-16 21:30:19 -0400 |
| commit | a253f39d68efa0da62ed076735f783deb0069ff3 (patch) | |
| tree | c5fc272c452d12cb3a05f8f020d8f3e3ffbff953 /redo/window_unix.go | |
| parent | 1953f2d748a097e7a0e6ecfd2a2db2acf5fbca10 (diff) | |
Ported over the sizing framework from the old package and implemented it on the GTK+ backend.
Diffstat (limited to 'redo/window_unix.go')
| -rw-r--r-- | redo/window_unix.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/redo/window_unix.go b/redo/window_unix.go index f110e5f..d7f670c 100644 --- a/redo/window_unix.go +++ b/redo/window_unix.go @@ -26,6 +26,8 @@ type window struct { child Control closing *event + + spaced bool } func newWindow(title string, width int, height int) *Request { @@ -162,7 +164,7 @@ func windowClosing(wid *C.GtkWidget, e *C.GdkEvent, data C.gpointer) C.gboolean func windowResizing(wid *C.GtkWidget, event *C.GdkEvent, data C.gpointer) C.gboolean { w := (*window)(unsafe.Pointer(data)) e := (*C.GdkEventConfigure)(unsafe.Pointer(event)) - _ = w // TODO + w.doresize(int(e.width), int(e.height)) // TODO this does not take CSD into account; my attempts at doing so so far have failed to work correctly in the face of rapid live resizing // TODO triggered twice on each resize or maximize for some reason??? fmt.Printf("new size %d x %d\n", e.width, e.height) |
