[gthumb] Call gtk_events_pending to make sure progressbar appears



commit 69c84004334264687c811fe7237af0ecd6da25bb
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Mon May 25 15:36:43 2009 -0400

    Call gtk_events_pending to make sure progressbar appears
---
 src/dlg-jpegtran.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/dlg-jpegtran.c b/src/dlg-jpegtran.c
index 187082c..8fd4771 100644
--- a/src/dlg-jpegtran.c
+++ b/src/dlg-jpegtran.c
@@ -394,12 +394,13 @@ static void
 apply_transformation_to_all__apply_to_current (BatchTransformation *bt_data)
 {
 	FileData *file = bt_data->scan->data;
-	
+
 	if (bt_data->cancel == FALSE) {
 		gtk_label_set_text (GTK_LABEL (bt_data->label), file->utf8_name);
-
 		gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (bt_data->bar),
 					       (gdouble) (bt_data->i + 0.5) / bt_data->n);
+                while (gtk_events_pending())
+                        gtk_main_iteration();
 	
 		apply_transformation (bt_data->dialog, bt_data->data, bt_data->scan, TRUE, apply_transformation_to_all_continue, bt_data);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]