diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-25 00:48:23 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-25 00:49:08 -0500 |
| commit | d8c0df79939c93bbe008049b84ea6f8ff85afe8b (patch) | |
| tree | 79fa3aab8f14366b2cd571ea8c9d7c2f5e1dd4e1 /gtkcalls_unix.go | |
| parent | 23a40cae26552a381a25cd862af98cd0e9aa23bf (diff) | |
Added GTK+ implementation of ProgressBar and added a ProgressBar to the test program.
Diffstat (limited to 'gtkcalls_unix.go')
| -rw-r--r-- | gtkcalls_unix.go | 9 |
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) +} |
