summaryrefslogtreecommitdiff
path: root/redo/window_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-29 23:01:28 -0400
committerPietro Gagliardi <[email protected]>2014-07-29 23:01:28 -0400
commit9daab20fcef427dbf0c27a32d8c5ec5bb3366cea (patch)
treeda3b816d12434e7c5268c6e873dd60f5e8534257 /redo/window_windows.go
parentf4bb7360d4060d9c62c30d6b5508683a4fb6c472 (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/window_windows.go')
-rw-r--r--redo/window_windows.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/redo/window_windows.go b/redo/window_windows.go
index 1a36c01..8c64858 100644
--- a/redo/window_windows.go
+++ b/redo/window_windows.go
@@ -33,10 +33,6 @@ func makeWindowWindowClass() error {
return nil
}
-type controlParent interface {
- setParent(C.HWND)
-}
-
func newWindow(title string, width int, height int, control Control) *window {
w := &window{
// hwnd set in WM_CREATE handler
@@ -53,7 +49,7 @@ func newWindow(title string, width int, height int, control Control) *window {
panic(fmt.Errorf("error setting tab background texture on Window; HRESULT: 0x%X", hresult))
}
w.child = control
- w.child.setParent(w.hwnd)
+ w.child.setParent(&controlParent{w.hwnd})
return w
}