summaryrefslogtreecommitdiff
path: root/group_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-02 10:05:53 -0400
committerPietro Gagliardi <[email protected]>2014-10-02 10:05:53 -0400
commit982004d05052ef6aadd22dd5c4e7dbca85ab324a (patch)
tree517a0f5a5397e6fb886b5e4741aff4fa18ba10d8 /group_windows.go
parent09db0bffffded1a68c562b2d6451c2a2b29ac279 (diff)
go fmt. Precursor to bug report filing.
Diffstat (limited to 'group_windows.go')
-rw-r--r--group_windows.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/group_windows.go b/group_windows.go
index fda95e3..05956b0 100644
--- a/group_windows.go
+++ b/group_windows.go
@@ -6,8 +6,8 @@ package ui
import "C"
type group struct {
- _hwnd C.HWND
- _textlen C.LONG
+ _hwnd C.HWND
+ _textlen C.LONG
*container
}
@@ -17,8 +17,8 @@ func newGroup(text string, control Control) Group {
C.BS_GROUPBOX,
C.WS_EX_CONTROLPARENT)
g := &group{
- _hwnd: hwnd,
- container: newContainer(control),
+ _hwnd: hwnd,
+ container: newContainer(control),
}
g.SetText(text)
C.controlSetControlFont(g._hwnd)
@@ -57,7 +57,7 @@ func (g *group) allocate(x int, y int, width int, height int, d *sizing) []*allo
func (g *group) preferredSize(d *sizing) (width, height int) {
width, height = g.child.preferredSize(d)
- if width < int(g._textlen) { // if the text is longer, try not to truncate
+ if width < int(g._textlen) { // if the text is longer, try not to truncate
width = int(g._textlen)
}
// the two margin constants come from container_windows.go