From b1ac28cc938d2de25357328d9da910a84a2cc8cc Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 18 Oct 2014 12:47:19 -0400 Subject: Fixed parenting weirdnesses. --- newctrl/control_windows.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'newctrl/control_windows.go') diff --git a/newctrl/control_windows.go b/newctrl/control_windows.go index f0cb590..ffe0222 100644 --- a/newctrl/control_windows.go +++ b/newctrl/control_windows.go @@ -19,8 +19,8 @@ type controlSingleHWND struct { func newControlSingleHWND(hwnd C.HWND) *controlSingleHWND { c := new(controlSingleHWND) c.controlbase = &controlbase{ - fsetParent: c.setParent, - fresize: c.resize, + fsetParent: c.xsetParent, + fresize: c.xresize, fnTabStops: func() int { // most controls count as one tab stop return 1 @@ -30,11 +30,11 @@ func newControlSingleHWND(hwnd C.HWND) *controlSingleHWND { return c } -func (c *controlSingleHWND) setParent(p *controlParent) { +func (c *controlSingleHWND) xsetParent(p *controlParent) { C.controlSetParent(c.hwnd, p.hwnd) } -func (c *controlSingleHWND) resize(x int, y int, width int, height int, d *sizing) { +func (c *controlSingleHWND) xresize(x int, y int, width int, height int, d *sizing) { C.moveWindow(c.hwnd, C.int(x), C.int(y), C.int(width), C.int(height)) } -- cgit v1.2.3