summaryrefslogtreecommitdiff
path: root/gtkcalls_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-16 18:41:29 -0500
committerPietro Gagliardi <[email protected]>2014-02-16 18:41:29 -0500
commit4fc3cb1d0055706c4d62d61a165779a71e6fa2fd (patch)
tree9deabe1f85ff7b97fc6233c8f27c77247b06a785 /gtkcalls_unix.go
parentb8f7f4aa6e7d0761c731c1f116b7b8f7a8c19b9a (diff)
Added Checkbox to GTK+. Also added a TODO about crashes.
Diffstat (limited to 'gtkcalls_unix.go')
-rw-r--r--gtkcalls_unix.go8
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))))
+}