diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-12 20:55:05 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-12 20:55:05 -0500 |
| commit | 98d56767a34c3acf6beda2ef801b1daeb4c88971 (patch) | |
| tree | 07677725dd8345162fa067fdbf704f3785f909fa /sysdata.go | |
| parent | 4b16716e61e6f551afd1980aa21268c976fa3886 (diff) | |
Each control may only need one event, so combine them all into a single channel whose use depends on the sysData itself. Also we won't need to save the parentWindow anymore, as the change to the make() function will take care of that for us.
Diffstat (limited to 'sysdata.go')
| -rw-r--r-- | sysdata.go | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -8,15 +8,9 @@ import ( // The sysData type contains all system data. It provides the system-specific underlying implementation. It is guaranteed to have the following by embedding: type cSysData struct { ctype int - parentWindow *sysData - - // for Window - closing chan struct{} - - // for Button - clicked chan struct{} + event chan struct{} } -func (c *cSysData) make(initText string, initWidth int, initHeight int) error { +func (c *cSysData) make(initText string, initWidth int, initHeight int, window *sysData) error { panic(runtime.GOOS + " sysData does not define make()") } func (c *cSysData) show() error { |
