summaryrefslogtreecommitdiff
path: root/redo/label_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-14 13:05:31 -0400
committerPietro Gagliardi <[email protected]>2014-08-14 13:05:31 -0400
commitacbe70b4e5688df23e04ac0e55d8515252a52275 (patch)
tree4ad3a6cd2cb7e909dbd6437ffa6b852b09f1561b /redo/label_windows.go
parent2c8bb7bc6d3b5614d53de957b4dca025c53a9cee (diff)
Fixed the infinite loop on Tab control dialog message bug(s) on the Windows backend.
Diffstat (limited to 'redo/label_windows.go')
-rw-r--r--redo/label_windows.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/redo/label_windows.go b/redo/label_windows.go
index d87f02e..a37bc9d 100644
--- a/redo/label_windows.go
+++ b/redo/label_windows.go
@@ -57,7 +57,8 @@ func (l *label) settextlen(len C.LONG) {
}
func (l *label) setParent(p *controlParent) {
- basesetParent(l, p)
+ C.controlSetParent(l.hwnd(), p.c.hwnd)
+ // don't increment p.c.nchildren here because Labels aren't tab stops
}
func (l *label) allocate(x int, y int, width int, height int, d *sizing) []*allocation {