summaryrefslogtreecommitdiff
path: root/newctrl/tab_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-17 23:14:00 -0400
committerPietro Gagliardi <[email protected]>2014-10-17 23:14:00 -0400
commitaabbe36b444bb09834059f2930c9e42cc632be12 (patch)
treefe5abeae3ecced6f01bd57d57a40f530b30b74b5 /newctrl/tab_unix.go
parentf363a790cc1a417b63789afad457443d4666a451 (diff)
Fixed compiler errors. Now to fix runtime errors! Woo!
Diffstat (limited to 'newctrl/tab_unix.go')
-rw-r--r--newctrl/tab_unix.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/newctrl/tab_unix.go b/newctrl/tab_unix.go
index 6aae6a5..608e3a6 100644
--- a/newctrl/tab_unix.go
+++ b/newctrl/tab_unix.go
@@ -34,7 +34,7 @@ func newTab() Tab {
}
func (t *tab) Append(name string, control Control) {
- c := newContainer(control)
+ c := newContainer()
t.tabs = append(t.tabs, c)
// this calls gtk_container_add(), which, according to gregier in irc.gimp.net/#gtk+, acts just like gtk_notebook_append_page()
c.setParent(&controlParent{t.container})
@@ -51,11 +51,11 @@ func (t *tab) Append(name string, control Control) {
func (t *tab) resize(x int, y int, width int, height int, d *sizing) {
// first, chain up to change the GtkFrame and its child container
// TODO use a variable for this
- t.containerSingleWidget.resize(x, y, width, height, d)
+ t.controlSingleWidget.resize(x, y, width, height, d)
// now that the containers have the correct size, we can resize the children
for i, _ := range t.tabs {
- a := g.tabs[i].allocation(g.margined)
- g.children[i].resize(int(a.x), int(a.y), int(a.width), int(a.height), d)
+ a := t.tabs[i].allocation(false/*TODO*/)
+ t.children[i].resize(int(a.x), int(a.y), int(a.width), int(a.height), d)
}
}