summaryrefslogtreecommitdiff
path: root/listbox.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-09 19:44:41 -0400
committerPietro Gagliardi <[email protected]>2014-03-09 19:44:41 -0400
commitce571bad52589008b8efe6cc0a6e3f76c7f88856 (patch)
treeee797fc408071f929d1a53ae52ba39595d3aab8a /listbox.go
parentab11900d43b02ab2c01f5963b3cfaf8b623ebd58 (diff)
Removed error returns from Control.preferredSize() since errors are not going to be returned anymore.
Diffstat (limited to 'listbox.go')
-rw-r--r--listbox.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/listbox.go b/listbox.go
index 8bd54b1..6d5decc 100644
--- a/listbox.go
+++ b/listbox.go
@@ -139,10 +139,9 @@ func (l *Listbox) setRect(x int, y int, width int, height int, winheight int) er
return l.sysData.setRect(x, y, width, height, winheight)
}
-func (l *Listbox) preferredSize() (width int, height int, err error) {
+func (l *Listbox) preferredSize() (width int, height int) {
l.lock.Lock()
defer l.lock.Unlock()
- width, height = l.sysData.preferredSize()
- return
+ return l.sysData.preferredSize()
}