summaryrefslogtreecommitdiff
path: root/label.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-14 20:41:36 -0500
committerPietro Gagliardi <[email protected]>2014-02-14 20:41:36 -0500
commit168b6eb112be70fb8c44f30a82a950bd20888b93 (patch)
treec3344a998b25fd7ab493339490c78f9fe4d8e84e /label.go
parent7d80fdd0f1e5ce7d0a88b29d26237c864a43e39a (diff)
Handled all controls's created field.
Diffstat (limited to 'label.go')
-rw-r--r--label.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/label.go b/label.go
index b2cf05b..12cec5b 100644
--- a/label.go
+++ b/label.go
@@ -29,7 +29,12 @@ func (l *Label) make(window *sysData) error {
l.lock.Lock()
defer l.lock.Unlock()
- return l.sysData.make(l.initText, 300, 300, window)
+ err := l.sysData.make(l.initText, 300, 300, window)
+ if err != nil {
+ return err
+ }
+ l.created = true
+ return nil
}
func (l *Label) setRect(x int, y int, width int, height int) error {