Skip to content

Commit

Permalink
Merge pull request #18 from anaselli/master
Browse files Browse the repository at this point in the history
Fixed YGProgressBarr setValue to refresh bar value
  • Loading branch information
tgoettlicher committed Dec 27, 2012
2 parents 9f53e7d + 30f054e commit 9c1990b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Dec 27 14:49:28 CET 2012 - anaselli@linux.it

- Fixed YGProgressBar setValue to refresh

-------------------------------------------------------------------
Fri Nov 2 19:19:27 CET 2012 - anaselli@linux.it

Expand Down
1 change: 1 addition & 0 deletions src/YGProgressBar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class YGProgressBar : public YProgressBar, public YGLabeledWidget
GtkProgressBar *bar = GTK_PROGRESS_BAR (getWidget());
float fraction = CLAMP ((float) value / maxValue(), 0, 1);
gtk_progress_bar_set_fraction (bar, fraction);
gtk_main_iteration_do(false);
/*
char *text = g_strdup_printf ("%d %%", (int) (fraction*100));
gtk_progress_bar_set_text (bar, text);
Expand Down

0 comments on commit 9c1990b

Please sign in to comment.