summaryrefslogtreecommitdiff
path: root/checkbox.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-01 16:43:56 -0400
committerPietro Gagliardi <[email protected]>2014-04-01 16:43:56 -0400
commit2647d28f2bdc91bbc7350ceb1dec648b68d22599 (patch)
treea7220e7101996f86f11ee5cac098be25c00c31f9 /checkbox.go
parent81153617dcfd1e30e75b7adbe29967088fdea410 (diff)
Removed the initText parameter from sysData.make() and changed all invocations to call sysData.setText() separately; this avoids the need to check if sysData.setText() is valid. Also implemented that on GTK+.
Diffstat (limited to 'checkbox.go')
-rw-r--r--checkbox.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/checkbox.go b/checkbox.go
index fe46023..6427d0c 100644
--- a/checkbox.go
+++ b/checkbox.go
@@ -63,10 +63,11 @@ func (c *Checkbox) make(window *sysData) error {
c.lock.Lock()
defer c.lock.Unlock()
- err := c.sysData.make(c.initText, window)
+ err := c.sysData.make(window)
if err != nil {
return err
}
+ c.sysData.setText(c.initText)
c.created = true
return nil
}