diff options
| author | Pietro Gagliardi <[email protected]> | 2014-04-01 16:43:56 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-04-01 16:43:56 -0400 |
| commit | 2647d28f2bdc91bbc7350ceb1dec648b68d22599 (patch) | |
| tree | a7220e7101996f86f11ee5cac098be25c00c31f9 /window.go | |
| parent | 81153617dcfd1e30e75b7adbe29967088fdea410 (diff) | |
Removed the initText parameter from sysData.make() and changed all invocations to call sysData.setText() separately; this avoids the need to check if sysData.setText() is valid. Also implemented that on GTK+.
Diffstat (limited to 'window.go')
| -rw-r--r-- | window.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -72,7 +72,7 @@ func (w *Window) Open(control Control) (err error) { panic("window already open") } w.sysData.event = w.Closing - err = w.sysData.make(w.initTitle, nil) + err = w.sysData.make(nil) if err != nil { return fmt.Errorf("error opening window: %v", err) } @@ -87,6 +87,7 @@ func (w *Window) Open(control Control) (err error) { if err != nil { return fmt.Errorf("error setting window size (in Window.Open()): %v", err) } + w.sysData.setText(w.initTitle) // TODO separate showing? err = w.sysData.firstShow() if err != nil { |
