summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
Diffstat (limited to 'window.go')
-rw-r--r--window.go10
1 files changed, 3 insertions, 7 deletions
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.