summaryrefslogtreecommitdiff
path: root/button.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-14 11:02:59 -0500
committerPietro Gagliardi <[email protected]>2014-02-14 11:02:59 -0500
commit8407bfb0cb9d8e58c40758b552c4eb71fe5f6415 (patch)
tree7c81722daf4426e49ccdd49dc0ff22a39fa96fad /button.go
parent9a4e7bf5eb74ffcef8885f27af9482dfc467542c (diff)
Changed manual sysData construction to use a helper function instead.
Diffstat (limited to 'button.go')
-rw-r--r--button.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/button.go b/button.go
index c3f5c7e..2c6706f 100644
--- a/button.go
+++ b/button.go
@@ -19,11 +19,7 @@ type Button struct {
// NewButton creates a new button with the specified text.
func NewButton(text string) (b *Button) {
return &Button{
- sysData: &sysData{
- cSysData: cSysData{
- ctype: c_button,
- },
- },
+ sysData: mksysdata(c_button),
initText: text,
Clicked: make(chan struct{}),
}