Update of /cvsroot/ufraw/ufraw
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv26784

Modified Files:
        ufraw_preview.c 
Log Message:
Remove redundant calls to gtk_progress_bar_set_fraction().


Index: ufraw_preview.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_preview.c,v
retrieving revision 1.340
retrieving revision 1.341
diff -u -d -r1.340 -r1.341
--- ufraw_preview.c     22 Feb 2010 23:27:20 -0000      1.340
+++ ufraw_preview.c     23 Feb 2010 06:20:50 -0000      1.341
@@ -849,13 +849,14 @@
     }
     if (ticks < 0 && text)
        gtk_progress_bar_set_text(ProgressBar, text);
+    if (!events)
+       return;
     fraction = todo ? start + (stop - start) * done / todo : 0;
     if (fraction > stop)
        fraction = stop;
     gtk_progress_bar_set_fraction(ProgressBar, fraction);
-    if (events)
-       while (gtk_events_pending())
-           gtk_main_iteration();
+    while (gtk_events_pending())
+       gtk_main_iteration();
 }
 
 static void preview_progress_enable(preview_data *data)


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
ufraw-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs

Reply via email to