diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-18 12:47:19 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-18 12:47:19 -0400 |
| commit | b1ac28cc938d2de25357328d9da910a84a2cc8cc (patch) | |
| tree | d34d26f0022dd0e9d9c7179bd59b1c4dbe7b6942 /newctrl/control_windows.go | |
| parent | 0f6e65188af0c4b1d3e4dff17ceb96bbd8ebb271 (diff) | |
Fixed parenting weirdnesses.
Diffstat (limited to 'newctrl/control_windows.go')
| -rw-r--r-- | newctrl/control_windows.go | 8 |
1 files changed, 4 insertions, 4 deletions
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)) } |
