summaryrefslogtreecommitdiff
path: root/redo/tab_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-04 21:08:18 -0400
committerPietro Gagliardi <[email protected]>2014-08-04 21:08:18 -0400
commit23baffe55ed5964a24f41e719b8f538f1bb04168 (patch)
tree26cf4690421ea913772bf7ba8befa4e45e5d2db1 /redo/tab_unix.go
parent91f1a34003d56a5778d1ae48f7d18c3f27eea1ed (diff)
Applied the container change to the GTK+ backend. Woo!
Diffstat (limited to 'redo/tab_unix.go')
-rw-r--r--redo/tab_unix.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/redo/tab_unix.go b/redo/tab_unix.go
index 22a0c66..e815935 100644
--- a/redo/tab_unix.go
+++ b/redo/tab_unix.go
@@ -15,7 +15,7 @@ type tab struct {
_widget *C.GtkWidget
notebook *C.GtkNotebook
- tabs []*layout
+ tabs []*container
}
func newTab() Tab {
@@ -30,12 +30,13 @@ func newTab() Tab {
}
func (t *tab) Append(name string, control Control) {
- tl := newLayout(control)
- t.tabs = append(t.tabs, tl)
+ c := newContainer(control)
+ t.tabs = append(t.tabs, c)
cname := togstr(name)
defer freegstr(cname)
tab := C.gtk_notebook_append_page(t.notebook,
- tl.layoutwidget,
+ // TODO figure out how to keep this private
+ c.layoutwidget,
C.gtk_label_new(cname))
if tab == -1 {
panic("gtk_notebook_append_page() failed")