summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-17 13:37:51 -0400
committerPietro Gagliardi <[email protected]>2014-03-17 13:37:51 -0400
commit4adf1ae5cdc4d0aa0005ee68f4c1195a7f0d73b7 (patch)
tree5322a75d7367a7533aa6b9210d7c8f45a3bab37b /area.go
parent7c3647712b38e08a8f0daa970ab1a2b0857df8b0 (diff)
Removed the mutexes from Labels and Areas because I'm at my wits end about settling the deadlock between window resizing and setting a Label's text.
Diffstat (limited to 'area.go')
-rw-r--r--area.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/area.go b/area.go
index 983c547..93f319e 100644
--- a/area.go
+++ b/area.go
@@ -122,15 +122,9 @@ func (a *Area) make(window *sysData) error {
}
func (a *Area) setRect(x int, y int, width int, height int, winheight int) error {
- a.lock.Lock()
- defer a.lock.Unlock()
-
return a.sysData.setRect(x, y, width, height, winheight)
}
func (a *Area) preferredSize() (width int, height int) {
- a.lock.Lock()
- defer a.lock.Unlock()
-
return a.sysData.preferredSize()
}