From 4fc3cb1d0055706c4d62d61a165779a71e6fa2fd Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 16 Feb 2014 18:41:29 -0500 Subject: Added Checkbox to GTK+. Also added a TODO about crashes. --- gtkcalls_unix.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gtkcalls_unix.go') diff --git a/gtkcalls_unix.go b/gtkcalls_unix.go index 115060c..aba4732 100644 --- a/gtkcalls_unix.go +++ b/gtkcalls_unix.go @@ -114,3 +114,11 @@ func gtk_button_set_label(button *gtkWidget, label string) { C.gtk_button_set_label((*C.GtkButton)(unsafe.Pointer(button)), (*C.gchar)(unsafe.Pointer(clabel))) } + +func gtk_check_button_new() *gtkWidget { + return (*gtkWidget)(unsafe.Pointer(C.gtk_check_button_new())) +} + +func gtk_toggle_button_get_active(widget *gtkWidget) bool { + return fromgbool(C.gtk_toggle_button_get_active((*C.GtkToggleButton)(unsafe.Pointer(widget)))) +} -- cgit v1.2.3