From ae554f10c3b652a3dfe765fd63107237e9aafa28 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 16 Mar 2014 21:40:33 -0400 Subject: Changed Area to use a delegate handler object that implements the new AreaHandler interface for handling events. Also updated the GTK+ backend with this change, and made a few more tweaks to the documentation in area.go. --- sysdata.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sysdata.go') diff --git a/sysdata.go b/sysdata.go index 8d44f7f..b31a24e 100644 --- a/sysdata.go +++ b/sysdata.go @@ -18,11 +18,8 @@ type cSysData struct { ctype int event chan struct{} resize func(x int, y int, width int, height int, winheight int) error - alternate bool // editable for Combobox, multi-select for listbox, password for lineedit - - // for Area - paint chan PaintRequest - mouse chan MouseEvent + alternate bool // editable for Combobox, multi-select for listbox, password for lineedit + handler AreaHandler // for Areas } func (c *cSysData) make(initText string, window *sysData) error { panic(runtime.GOOS + " sysData does not define make()") -- cgit v1.2.3