[Xfce4-commits] [apps/xfburn] 01/02: Bugfix: Display progress for automatic formatting

noreply at xfce.org noreply at xfce.org
Sun Mar 30 20:23:41 CEST 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 c0b09b4cff27f406dea5c1c439cdc88674554630
Author: David Mohr <david at mcbf.net>
Date:   Sun Mar 30 12:17:19 2014 -0600

    Bugfix: Display progress for automatic formatting
---
 xfburn/xfburn-progress-dialog.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/xfburn/xfburn-progress-dialog.c b/xfburn/xfburn-progress-dialog.c
index 4dfead7..9a07542 100644
--- a/xfburn/xfburn-progress-dialog.c
+++ b/xfburn/xfburn-progress-dialog.c
@@ -585,7 +585,9 @@ xfburn_progress_dialog_set_progress_bar_fraction (XfburnProgressDialog * dialog,
     fraction = 0.0;
     text = g_strdup ("0%");
   }
-  else if (priv->status == XFBURN_PROGRESS_DIALOG_STATUS_RUNNING && fraction >= cur_fraction) {
+  else if ((priv->status == XFBURN_PROGRESS_DIALOG_STATUS_RUNNING ||
+            priv->status == XFBURN_PROGRESS_DIALOG_STATUS_FORMATTING) &&
+            fraction >= cur_fraction) {
     if (priv->animate) {
       text = g_strdup_printf ("%2d%% %c", (int) (fraction), animation[priv->ani_index]);
       priv->ani_index = (priv->ani_index + 1) % 4;
@@ -616,7 +618,8 @@ xfburn_progress_dialog_set_status (XfburnProgressDialog * dialog, XfburnProgress
     gdk_threads_enter ();
     set_action_text (dialog, status, _("Aborting..."));
     gdk_threads_leave ();
-  } else if (status != XFBURN_PROGRESS_DIALOG_STATUS_RUNNING) {
+  } else if (status != XFBURN_PROGRESS_DIALOG_STATUS_RUNNING ||
+             status != XFBURN_PROGRESS_DIALOG_STATUS_FORMATTING) {
     gdk_threads_enter ();
     gtk_widget_set_sensitive (priv->button_stop, FALSE);
     gtk_widget_set_sensitive (priv->button_close, TRUE);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list