diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-17 20:21:35 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-17 20:21:35 -0400 |
| commit | 00438732d1c38f5965d80a644db8a71597947fcc (patch) | |
| tree | bb815c06c90ce143d97d0950092613564aaf9c06 /newctrl/container_unix.go | |
| parent | 8f1165e0c7246a1faec655088004cce8c5e047d7 (diff) | |
Readded containerResize() on GTK+; going to have to figure out how I'm going to do GTK+ size control...
Diffstat (limited to 'newctrl/container_unix.go')
| -rw-r--r-- | newctrl/container_unix.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/newctrl/container_unix.go b/newctrl/container_unix.go index 3f4d949..8e975f0 100644 --- a/newctrl/container_unix.go +++ b/newctrl/container_unix.go @@ -37,6 +37,12 @@ func (c *container) parent() *controlParent { return &controlParent{c.container} } +//export containerResizing +func containerResizing(data unsafe.Pointer, r *C.GtkAllocation) { + c := (*container)(data) + c.resize(int(r.x), int(r.y), int(r.width), int(r.height)) +} + const ( gtkXMargin = 12 gtkYMargin = 12 |
