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(). --- button.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'button.go') diff --git a/button.go b/button.go index 325a556..195ebb3 100644 --- a/button.go +++ b/button.go @@ -27,15 +27,15 @@ func NewButton(text string) (b *Button) { } // SetText sets the button's text. -func (b *Button) SetText(text string) (err error) { +func (b *Button) SetText(text string) { b.lock.Lock() defer b.lock.Unlock() if b.created { - return b.sysData.setText(text) + b.sysData.setText(text) + return } b.initText = text - return nil } // Text returns the button's text. -- cgit v1.2.3