summaryrefslogtreecommitdiff
path: root/redo/window_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-04 22:21:58 -0400
committerPietro Gagliardi <[email protected]>2014-08-04 22:21:58 -0400
commit515a605dda3b4054693cb31d9f4dae36a7e29720 (patch)
treef96f5d70ca2fc9a8531397fa13e936024a61373e /redo/window_unix.go
parentb84cdaf0772700162d1ad8e622a6095e90c5996b (diff)
Same as three commits ago, but for the GTK+ backend.
Diffstat (limited to 'redo/window_unix.go')
-rw-r--r--redo/window_unix.go3
1 files changed, 1 insertions, 2 deletions
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
}