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(). --- window.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'window.go') diff --git a/window.go b/window.go index 22c2951..946138e 100644 --- a/window.go +++ b/window.go @@ -31,19 +31,15 @@ func NewWindow(title string, width int, height int) *Window { } // SetTitle sets the window's title. -func (w *Window) SetTitle(title string) (err error) { +func (w *Window) SetTitle(title string) { w.lock.Lock() defer w.lock.Unlock() if w.created { - err = w.sysData.setText(title) - if err != nil { - return fmt.Errorf("error setting window title: %v", err) - } - return nil + w.sysData.setText(title) + return } w.initTitle = title - return nil } // SetSize sets the window's size. -- cgit v1.2.3