From 19227080da161bc96e4cc8ed447059cefbca8a6a Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 17 Mar 2014 20:42:36 -0400 Subject: Changed window resizes so that the actual Control.setRect() functions appended to an array of requests that the resize() function set all at once instead of having each done individually. This will be necessary for what I think will be a solution to the deadlocks. It doesn't work right now; I'm assuming it's allocating too much memory. I know how to fix this, but I'm committing what I have so far to be safe. --- label.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'label.go') diff --git a/label.go b/label.go index 82b8731..36bdb3f 100644 --- a/label.go +++ b/label.go @@ -55,8 +55,14 @@ func (l *Label) make(window *sysData) error { return nil } -func (l *Label) setRect(x int, y int, width int, height int, winheight int) error { - return l.sysData.setRect(x, y, width, height, winheight) +func (l *Label) setRect(x int, y int, width int, height int) []resizerequest { + return []resizerequest{resizerequest{ + sysData: l.sysData, + x: x, + y: y, + width: width, + height: height, + }} } func (l *Label) preferredSize() (width int, height int) { -- cgit v1.2.3