summaryrefslogtreecommitdiff
path: root/redo/controls_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/controls_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/controls_windows.go')
-rw-r--r--redo/controls_windows.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/redo/controls_windows.go b/redo/controls_windows.go
index b9c69ed..ecc1494 100644
--- a/redo/controls_windows.go
+++ b/redo/controls_windows.go
@@ -22,9 +22,13 @@ func newWidget(class C.LPCWSTR, style C.DWORD, extstyle C.DWORD) *widgetbase {
// these few methods are embedded by all the various Controls since they all will do the same thing
-func (w *widgetbase) setParent(win C.HWND) {
- C.controlSetParent(w.hwnd, win)
- w.parent = win
+type controlParent struct {
+ hwnd C.HWND
+}
+
+func (w *widgetbase) setParent(win *controlParent) {
+ C.controlSetParent(w.hwnd, win.hwnd)
+ w.parent = win.hwnd
}
func (w *widgetbase) containerShow() {