diff options
Diffstat (limited to 'sysdata_unix.go')
| -rw-r--r-- | sysdata_unix.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdata_unix.go b/sysdata_unix.go index c7a41f0..7814fb3 100644 --- a/sysdata_unix.go +++ b/sysdata_unix.go @@ -410,3 +410,13 @@ func (s *sysData) center() { } <-ret } + +func (s *sysData) setChecked(checked bool) { + ret := make(chan struct{}) + defer close(ret) + uitask <- func() { + gtk_toggle_button_set_active(s.widget, checked) + ret <- struct{}{} + } + <-ret +} |
