From 558c618fbf6e8a1db88ca929531d654cb49a2b60 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 15 Feb 2014 15:51:06 -0500 Subject: Gave all relevant controls matching SetText()/Text() pairs. Also added a TODO for Checkbox related to checked state. --- lineedit.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lineedit.go') diff --git a/lineedit.go b/lineedit.go index ac20030..3b08962 100644 --- a/lineedit.go +++ b/lineedit.go @@ -24,7 +24,17 @@ func NewLineEdit(text string) *LineEdit { } } -// TODO SetText +// SetText sets the LineEdit's text. +func (l *LineEdit) SetText(text string) (err error) { + l.lock.Lock() + defer l.lock.Unlock() + + if l.created { + return l.sysData.setText(text) + } + l.initText = text + return nil +} // Text returns the LineEdit's text. func (l *LineEdit) Text() string { -- cgit v1.2.3