diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-10 10:45:15 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-10 10:45:15 -0400 |
| commit | a68bdec2fd8a23230ed12348c3801d349b19dea2 (patch) | |
| tree | c5dff7d95f8c93e14e42a8da1e0009719504afcd /window.go | |
| parent | 353c949f64f5882a3149d76ce17de58c31cfc96d (diff) | |
Removed error returns from [all controls].SetText() and Window.SetTitle().
Diffstat (limited to 'window.go')
| -rw-r--r-- | window.go | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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. |
