diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-10 14:59:39 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-10 14:59:39 -0400 |
| commit | 1e66637cd206066bced74b637e62283d9b367004 (patch) | |
| tree | 3d0c5a96eb7c5dd48232c4c935d4ca70e94311af /button.go | |
| parent | ad8a90ec7e4cfa8b6c3325cf2b2ce737c10f4804 (diff) | |
More go fmt.
Diffstat (limited to 'button.go')
| -rw-r--r-- | button.go | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -11,20 +11,20 @@ type Button struct { // Clicked gets a message when the button is clicked. // You cannot change it once the Window containing the Button has been created. // If you do not respond to this signal, nothing will happen. - Clicked chan struct{} + Clicked chan struct{} - lock sync.Mutex - created bool - sysData *sysData - initText string + lock sync.Mutex + created bool + sysData *sysData + initText string } // NewButton creates a new button with the specified text. func NewButton(text string) (b *Button) { return &Button{ - sysData: mksysdata(c_button), - initText: text, - Clicked: newEvent(), + sysData: mksysdata(c_button), + initText: text, + Clicked: newEvent(), } } @@ -67,11 +67,11 @@ func (b *Button) make(window *sysData) error { func (b *Button) setRect(x int, y int, width int, height int, rr *[]resizerequest) { *rr = append(*rr, resizerequest{ - sysData: b.sysData, - x: x, - y: y, - width: width, - height: height, + sysData: b.sysData, + x: x, + y: y, + width: width, + height: height, }) } |
