diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-03 09:12:39 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-03 09:12:39 -0400 |
| commit | ac5c57750712f7a255b82ec8c41187092369402c (patch) | |
| tree | 6bcf7ba7534714e08cddf3fe0c8598baf3fb8088 | |
| parent | d018953d7ef1b276cc3229e04ba6fc75018c888a (diff) | |
Chagned Checkbox.OnClicked() to Checkbox.OnToggled(). The code restructure will allow this.
| -rw-r--r-- | redo/basicctrls.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/redo/basicctrls.go b/redo/basicctrls.go index 9bf14d7..a119fb8 100644 --- a/redo/basicctrls.go +++ b/redo/basicctrls.go @@ -23,9 +23,8 @@ func NewButton(text string) Button { type Checkbox interface { Control - // OnClicked sets the event handler for when the Checkbox is clicked (to change its toggle state). - // TODO change to OnToggled() or OnChecked()? - OnClicked(func()) + // OnToggled sets the event handler for when the Checkbox is toggled. + OnToggled(func()) // Text and SetText get and set the Checkbox's label text. Text() string |
