summaryrefslogtreecommitdiff
path: root/sysdata.go
diff options
context:
space:
mode:
Diffstat (limited to 'sysdata.go')
-rw-r--r--sysdata.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/sysdata.go b/sysdata.go
index 306fd81..10f2546 100644
--- a/sysdata.go
+++ b/sysdata.go
@@ -13,7 +13,7 @@ func newEvent() chan struct{} {
type cSysData struct {
ctype int
event chan struct{}
- resize func(x int, y int, width int, height int, rr *[]resizerequest)
+ allocate func(x int, y int, width int, height int, d *sysSizeData) []*allocation
spaced bool
alternate bool // editable for Combobox, multi-select for listbox, password for lineedit
handler AreaHandler // for Areas
@@ -75,8 +75,5 @@ func mksysdata(ctype int) *sysData {
ctype: ctype,
},
}
- if ctype == c_window { // make resizes non-nil so it can be passed in
- s.resizes = make([]resizerequest, 0, 0)
- }
return s
}