diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-29 23:01:28 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-29 23:01:28 -0400 |
| commit | 9daab20fcef427dbf0c27a32d8c5ec5bb3366cea (patch) | |
| tree | da3b816d12434e7c5268c6e873dd60f5e8534257 /redo/containers_windows.go | |
| parent | f4bb7360d4060d9c62c30d6b5508683a4fb6c472 (diff) | |
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.
Diffstat (limited to 'redo/containers_windows.go')
| -rw-r--r-- | redo/containers_windows.go | 8 |
1 files changed, 4 insertions, 4 deletions
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 { |
