diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-12 18:14:37 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-12 18:14:37 -0500 |
| commit | a9ff38894408e0a34da4742fc2b1aea0bb5ef60b (patch) | |
| tree | 2c4e58eb079cdd59537216943fc97fdd4fbd7a2d /window.go | |
| parent | 0a9f40812950ad00239e93141a37183666d5f3eb (diff) | |
Added Window.SetTitle(). Also oops, forgot to mark the window as created.
Diffstat (limited to 'window.go')
| -rw-r--r-- | window.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -56,7 +56,7 @@ func (w *Window) SetTitle(title string) (err error) { defer w.lock.Unlock() if w.created { - panic("TODO") + return w.sysData.setText(title) } w.initTitle = title return nil @@ -93,6 +93,7 @@ func (w *Window) Open() (err error) { return err } } + w.created = true } return w.sysData.show() } |
