From 515a605dda3b4054693cb31d9f4dae36a7e29720 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 4 Aug 2014 22:21:58 -0400 Subject: Same as three commits ago, but for the GTK+ backend. --- redo/window_unix.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'redo/window_unix.go') diff --git a/redo/window_unix.go b/redo/window_unix.go index e798443..7a5cc16 100644 --- a/redo/window_unix.go +++ b/redo/window_unix.go @@ -42,8 +42,7 @@ func newWindow(title string, width int, height int, control Control) *window { C.gpointer(unsafe.Pointer(w))) C.gtk_window_resize(w.window, C.gint(width), C.gint(height)) w.container = newContainer(control) - // TODO make a method of container? because this would conflict with tabs... - C.gtk_container_add(w.wc, w.container.layoutwidget) + w.container.setParent(&controlParent{w.wc}) return w } -- cgit v1.2.3