From a68bdec2fd8a23230ed12348c3801d349b19dea2 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 10 Mar 2014 10:45:15 -0400 Subject: Removed error returns from [all controls].SetText() and Window.SetTitle(). --- checkbox.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'checkbox.go') diff --git a/checkbox.go b/checkbox.go index 2b2a71a..037588d 100644 --- a/checkbox.go +++ b/checkbox.go @@ -25,15 +25,15 @@ func NewCheckbox(text string) (c *Checkbox) { } // SetText sets the checkbox's text. -func (c *Checkbox) SetText(text string) (err error) { +func (c *Checkbox) SetText(text string) { c.lock.Lock() defer c.lock.Unlock() if c.created { - return c.sysData.setText(text) + c.sysData.setText(text) + return } c.initText = text - return nil } // Text returns the checkbox's text. -- cgit v1.2.3