diff options
Diffstat (limited to 'gtkcalls_unix.go')
| -rw-r--r-- | gtkcalls_unix.go | 8 |
1 files changed, 8 insertions, 0 deletions
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)))) +} |
