diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-10 11:38:52 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-10 11:38:52 -0400 |
| commit | a3222f248d25f284d5f4b7c0626ab1140bb0db9a (patch) | |
| tree | 4b5a6f4665a44f30e106435b275ca1fcac196190 /label.go | |
| parent | 37bc89fe52c8c6c4c56c4da69126f2d50101e194 (diff) | |
More go fmt.
Diffstat (limited to 'label.go')
| -rw-r--r-- | label.go | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -10,17 +10,17 @@ import ( // Label text is drawn on a single line; text that does not fit is truncated. // TODO vertical alignment type Label struct { - lock sync.Mutex - created bool - sysData *sysData - initText string + lock sync.Mutex + created bool + sysData *sysData + initText string } // NewLabel creates a new Label with the specified text. func NewLabel(text string) *Label { return &Label{ - sysData: mksysdata(c_label), - initText: text, + sysData: mksysdata(c_label), + initText: text, } } @@ -62,11 +62,11 @@ func (l *Label) make(window *sysData) error { func (l *Label) setRect(x int, y int, width int, height int, rr *[]resizerequest) { *rr = append(*rr, resizerequest{ - sysData: l.sysData, - x: x, - y: y, - width: width, - height: height, + sysData: l.sysData, + x: x, + y: y, + width: width, + height: height, }) } |
