diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-21 21:07:14 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-21 21:07:14 -0400 |
| commit | d57d2aa2de674039938080d78d9addf53dd6f3e0 (patch) | |
| tree | 24f387ba6af2e0655806f632d1af7fa4265cdf22 /redo/controls.go | |
| parent | 54c999bc42acccc5d0ef69a6a6d9d607369debf9 (diff) | |
Added Checkbox on the GTK+ backend, added a checkbox to the test program, and fixed a small error in the GTK+ widgetbase.parent() that kept the new widget hidden.
Diffstat (limited to 'redo/controls.go')
| -rw-r--r-- | redo/controls.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/redo/controls.go b/redo/controls.go index 38aca16..9752924 100644 --- a/redo/controls.go +++ b/redo/controls.go @@ -34,7 +34,7 @@ type Checkbox interface { Control // OnClicked sets the event handler for when the Checkbox is clicked (to change its toggle state). - // TODO change to OnCheckChanged or OnToggled? + // TODO change to OnToggled() or OnChecked()? OnClicked(func()) // Text and SetText are Requests that get and set the Checkbox's label text. @@ -49,7 +49,5 @@ type Checkbox interface { // NewCheckbox creates a new Checkbox with the given label text. // The Checkbox will be initially unchecked. func NewCheckbox(text string) Checkbox { -// return newCheckbox(text) -return nil -//TODO add checkbox after resolving other TODOs + return newCheckbox(text) } |
