From 00438732d1c38f5965d80a644db8a71597947fcc Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 17 Oct 2014 20:21:35 -0400 Subject: [PATCH] Readded containerResize() on GTK+; going to have to figure out how I'm going to do GTK+ size control... --- newctrl/container_unix.go | 6 ++++++ 1 file changed, 6 insertions(+) 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