summaryrefslogtreecommitdiff
path: root/redo/containers_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'redo/containers_unix.go')
-rw-r--r--redo/containers_unix.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/redo/containers_unix.go b/redo/containers_unix.go
index 68dbf08..fbb63ee 100644
--- a/redo/containers_unix.go
+++ b/redo/containers_unix.go
@@ -40,7 +40,6 @@ func (t *tab) Append(name string, control Control) {
t.layoutcs = append(t.layoutcs, (*C.GtkContainer)(unsafe.Pointer(layout)))
t.layouts = append(t.layouts, (*C.GtkLayout)(unsafe.Pointer(layout)))
c := new(container)
- // don't set beginResize; this container's resize() will be a recursive call
t.containers = append(t.containers, c)
c.child = control
c.child.setParent((*C.GtkContainer)(unsafe.Pointer(layout)))
@@ -60,11 +59,7 @@ func (t *tab) Append(name string, control Control) {
}
func (t *tab) allocate(x int, y int, width int, height int, d *sizing) []*allocation {
- // set up the recursive calls
- for _, c := range t.containers {
- c.d = d
- }
- // and prepare the tabbed control itself
+ // only prepared the tabbed control; its children will be reallocated when that one is resized
return t.widgetbase.allocate(x, y, width, height, d)
}