From 9daab20fcef427dbf0c27a32d8c5ec5bb3366cea Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 29 Jul 2014 23:01:28 -0400 Subject: Changed Control.setParent() to take the same argument type on all platforms; this is needed for re-adding Stack and Grid. This argument type is defined by each platform. --- redo/containers_windows.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'redo/containers_windows.go') diff --git a/redo/containers_windows.go b/redo/containers_windows.go index d0d8496..cc881e7 100644 --- a/redo/containers_windows.go +++ b/redo/containers_windows.go @@ -34,10 +34,10 @@ func newTab() Tab { return t } -func (t *tab) setParent(win C.HWND) { - t.widgetbase.setParent(win) +func (t *tab) setParent(p *controlParent) { + t.widgetbase.setParent(p) for _, c := range t.tabs { - c.child.setParent(win) + c.child.setParent(p) } } @@ -46,7 +46,7 @@ func (t *tab) Append(name string, control Control) { t.tabs = append(t.tabs, c) c.child = control if t.parent != nil { - c.child.setParent(t.parent) + c.child.setParent(&controlParent{t.parent}) } // initially hide tab 1..n controls; if we don't, they'll appear over other tabs, resulting in weird behavior if len(t.tabs) != 1 { -- cgit v1.2.3