[Xfce4-commits] [apps/xfburn] 01/04: Bugfix: gtk progress bar fraction is between 0 and 1.0
noreply at xfce.org
noreply at xfce.org
Tue Mar 25 14:18:16 CET 2014
This is an automated email from the git hooks/post-receive script.
squisher pushed a commit to branch master
in repository apps/xfburn.
commit bcaa25eb5045f450fde7d7ec2fc26ac8a10fc897
Author: David Mohr <david at mcbf.net>
Date: Mon Mar 24 23:22:24 2014 -0600
Bugfix: gtk progress bar fraction is between 0 and 1.0
Bugfix for b0a6b80cb0fe735abfe8e4f482418ff66fb5d15a,
thanks Thomas.
---
xfburn/xfburn-progress-dialog.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/xfburn/xfburn-progress-dialog.c b/xfburn/xfburn-progress-dialog.c
index 44651ee..4dfead7 100644
--- a/xfburn/xfburn-progress-dialog.c
+++ b/xfburn/xfburn-progress-dialog.c
@@ -480,7 +480,7 @@ xfburn_progress_dialog_set_buffer_bar_fraction (XfburnProgressDialog * dialog, g
}
gdk_threads_enter ();
- gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (priv->buffer_bar), fraction);
+ gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (priv->buffer_bar), fraction / 100.0);
gtk_progress_bar_set_text (GTK_PROGRESS_BAR (priv->buffer_bar), text);
gdk_threads_leave ();
@@ -504,7 +504,7 @@ xfburn_progress_dialog_set_buffer_bar_min_fill (XfburnProgressDialog * dialog, g
}
gdk_threads_enter ();
- gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (priv->buffer_bar), fraction);
+ gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (priv->buffer_bar), fraction / 100.0);
gtk_progress_bar_set_text (GTK_PROGRESS_BAR (priv->buffer_bar), text);
gdk_threads_leave ();
@@ -528,7 +528,7 @@ xfburn_progress_dialog_set_fifo_bar_fraction (XfburnProgressDialog * dialog, gdo
}
gdk_threads_enter ();
- gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (priv->fifo_bar), fraction);
+ gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (priv->fifo_bar), fraction / 100.0);
gtk_progress_bar_set_text (GTK_PROGRESS_BAR (priv->fifo_bar), text);
gdk_threads_leave ();
@@ -553,7 +553,7 @@ xfburn_progress_dialog_set_progress_bar_fraction (XfburnProgressDialog * dialog,
gdouble cur_fraction = 0.0;
gchar *text = NULL;
- cur_fraction = gtk_progress_bar_get_fraction (GTK_PROGRESS_BAR (priv->progress_bar));
+ cur_fraction = gtk_progress_bar_get_fraction (GTK_PROGRESS_BAR (priv->progress_bar)) * 100.0;
if (fraction >= 100.0) {
fraction = 100.0;
@@ -598,7 +598,7 @@ xfburn_progress_dialog_set_progress_bar_fraction (XfburnProgressDialog * dialog,
}
gdk_threads_enter ();
- gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (priv->progress_bar), fraction);
+ gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (priv->progress_bar), fraction / 100.0);
gtk_progress_bar_set_text (GTK_PROGRESS_BAR (priv->progress_bar), text);
gdk_threads_leave ();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list