From 1eeadc000ae796bd022879196c4f2bae3bb189de Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 25 Jun 2014 23:21:57 -0400 Subject: Made the new sizing system work on Windows. --- sysdata.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sysdata.go') 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 } -- cgit v1.2.3