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. --- gtkcalls_unix.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gtkcalls_unix.go') diff --git a/gtkcalls_unix.go b/gtkcalls_unix.go index 7731212..14bcdfc 100644 --- a/gtkcalls_unix.go +++ b/gtkcalls_unix.go @@ -189,3 +189,12 @@ func gtk_widget_get_preferred_size(w *gtkWidget) (minWidth int, minHeight int, n return int(minimum.width), int(minimum.height), int(natural.width), int(natural.height) } + +func gtk_progress_bar_new() *gtkWidget { + return fromgtkwidget(C.gtk_progress_bar_new()) +} + +func gtk_progress_bar_set_fraction(w *gtkWidget, percent int) { + p := C.gdouble(percent) / 100 + C.gtk_progress_bar_set_fraction(togtkprogressbar(w), p) +} -- cgit v1.2.3