summaryrefslogtreecommitdiff
path: root/gtkcasts_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-25 00:48:23 -0500
committerPietro Gagliardi <[email protected]>2014-02-25 00:49:08 -0500
commitd8c0df79939c93bbe008049b84ea6f8ff85afe8b (patch)
tree79fa3aab8f14366b2cd571ea8c9d7c2f5e1dd4e1 /gtkcasts_unix.go
parent23a40cae26552a381a25cd862af98cd0e9aa23bf (diff)
Added GTK+ implementation of ProgressBar and added a ProgressBar to the test program.
Diffstat (limited to 'gtkcasts_unix.go')
-rw-r--r--gtkcasts_unix.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtkcasts_unix.go b/gtkcasts_unix.go
index 5d88e1e..75f2d96 100644
--- a/gtkcasts_unix.go
+++ b/gtkcasts_unix.go
@@ -107,3 +107,11 @@ func fromgtklabel(x *C.GtkLabel) *gtkWidget {
func togtklabel(what *gtkWidget) *C.GtkLabel {
return (*C.GtkLabel)(unsafe.Pointer(what))
}
+
+func fromgtkprogressbar(x *C.GtkProgressBar) *gtkWidget {
+ return (*gtkWidget)(unsafe.Pointer(x))
+}
+
+func togtkprogressbar(what *gtkWidget) *C.GtkProgressBar {
+ return (*C.GtkProgressBar)(unsafe.Pointer(what))
+}