summaryrefslogtreecommitdiff
path: root/redo/containers_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-28 14:00:01 -0400
committerPietro Gagliardi <[email protected]>2014-07-28 14:00:01 -0400
commitbea4df1abf6f4df34016727a300e4826fc31cc05 (patch)
tree7f481ac4a25f72a72e549e26a5d44f87891e0a84 /redo/containers_darwin.go
parent3f124a016ea9d88db3c7b368b836fc296d1475e2 (diff)
Began final simplification of size code. spaced is now a global variable; either all controls are given spacing now, or none will. beginResize() is a method on container again. Done on GTK+ and Mac OS X for now. I'm going to go ahead and implement this on Windows in a bit, regardless of whether that Stack Overflow question get answered or not, because ugggggggggh I just want to continue working on this project for fuck's sake!
Diffstat (limited to 'redo/containers_darwin.go')
-rw-r--r--redo/containers_darwin.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/redo/containers_darwin.go b/redo/containers_darwin.go
index b42708c..abb9e00 100644
--- a/redo/containers_darwin.go
+++ b/redo/containers_darwin.go
@@ -25,7 +25,6 @@ func newTab() Tab {
func (t *tab) Append(name string, control Control) {
// TODO isolate and standardize
c := new(container)
- // don't set beginResize; this container's resize() will be a recursive call
t.containers = append(t.containers, c)
cname := C.CString(name)
defer C.free(unsafe.Pointer(cname))
@@ -35,11 +34,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)
}