summaryrefslogtreecommitdiff
path: root/sysdata.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-25 23:21:57 -0400
committerPietro Gagliardi <[email protected]>2014-06-25 23:21:57 -0400
commit1eeadc000ae796bd022879196c4f2bae3bb189de (patch)
treee63f905f533f183935850b04f5ab8356e06e7084 /sysdata.go
parent9a3e73b46001219177bb13a381420007217dfecf (diff)
Made the new sizing system work on Windows.
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
}