From d8c0df79939c93bbe008049b84ea6f8ff85afe8b Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 25 Feb 2014 00:48:23 -0500 Subject: Added GTK+ implementation of ProgressBar and added a ProgressBar to the test program. --- gtkcasts_unix.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gtkcasts_unix.go') 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)) +} -- cgit v1.2.3