From 098beef9969ae625714de4a23c5899a70a6557ca Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 26 Jun 2014 21:36:46 -0400 Subject: Added Checkbox.SetChecked() and implemented it on GTK+. --- gtkcalls_unix.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gtkcalls_unix.go') 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) -- cgit v1.2.3