From 2647d28f2bdc91bbc7350ceb1dec648b68d22599 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 1 Apr 2014 16:43:56 -0400 Subject: 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+. --- checkbox.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'checkbox.go') 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 } -- cgit v1.2.3