From 23baffe55ed5964a24f41e719b8f538f1bb04168 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 4 Aug 2014 21:08:18 -0400 Subject: Applied the container change to the GTK+ backend. Woo! --- redo/tab_unix.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'redo/tab_unix.go') 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") -- cgit v1.2.3