[gthumb] Check if gtk_events_pending during while loop, to update progress bar
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Check if gtk_events_pending during while loop, to update progress bar
- Date: Fri, 8 May 2009 12:33:02 -0400 (EDT)
commit 26fbdd04341f2f8d99ec709d255faa6c5794b164
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Fri May 8 12:32:27 2009 -0400
Check if gtk_events_pending during while loop, to update progress bar
---
src/dlg-reset-exif.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/dlg-reset-exif.c b/src/dlg-reset-exif.c
index 1c6f72e..6f34418 100644
--- a/src/dlg-reset-exif.c
+++ b/src/dlg-reset-exif.c
@@ -104,7 +104,10 @@ apply_transformation (BatchTransformation *bt_data)
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();
+
if (file_data_has_local_path (file, GTK_WINDOW (bt_data->data->window))) {
write_orientation_field (file->local_path, GTH_TRANSFORM_NONE);
bt_data->data->files_changed_list = g_list_prepend (bt_data->data->files_changed_list,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]