summaryrefslogtreecommitdiff
path: root/gtkcalls_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'gtkcalls_unix.go')
-rw-r--r--gtkcalls_unix.go9
1 files changed, 9 insertions, 0 deletions
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)
+}