diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-26 21:36:46 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-26 21:36:46 -0400 |
| commit | 098beef9969ae625714de4a23c5899a70a6557ca (patch) | |
| tree | 2957aad1e707be9cba02c45f7f15dce78546d2ac /gtkcalls_unix.go | |
| parent | 5c002e3d0f0b873d6ca29dfa9e97c09dead54494 (diff) | |
Added Checkbox.SetChecked() and implemented it on GTK+.
Diffstat (limited to 'gtkcalls_unix.go')
| -rw-r--r-- | gtkcalls_unix.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtkcalls_unix.go b/gtkcalls_unix.go index 2934c7c..ca5c08e 100644 --- a/gtkcalls_unix.go +++ b/gtkcalls_unix.go @@ -153,6 +153,10 @@ func gtk_toggle_button_get_active(widget *C.GtkWidget) bool { return fromgbool(C.gtk_toggle_button_get_active(togtktogglebutton(widget))) } +func gtk_toggle_button_set_active(widget *C.GtkWidget, checked bool) { + C.gtk_toggle_button_set_active(togtktogglebutton(widget), togbool(checked)) +} + func gtk_combo_box_text_new() *C.GtkWidget { w := C.gtk_combo_box_text_new() C.gtkSetComboBoxArbitrarilyResizeable(w) |
