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. --- control.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'control.go') diff --git a/control.go b/control.go index 11d9034..2a44b02 100644 --- a/control.go +++ b/control.go @@ -9,6 +9,6 @@ import ( // A Control represents an UI control. Note that Control contains unexported members; this has the consequence that you can't build custom controls that interface directly with the system-specific code (fo rinstance, to import an unsupported control), or at least not without some hackery. If you want to make your own controls, embed Area and provide its necessities. type Control interface { make(window *sysData) error - setRect(x int, y int, width int, height int, winheight int) error + setRect(x int, y int, width int, height int) []resizerequest preferredSize() (width int, height int) } -- cgit v1.2.3