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

Modified Files:
        uf_progress.h ufraw_preview.c 
Log Message:
Drop progress bar reset code.

Index: uf_progress.h
===================================================================
RCS file: /cvsroot/ufraw/ufraw/uf_progress.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- uf_progress.h       25 Nov 2009 16:15:45 -0000      1.1
+++ uf_progress.h       29 Nov 2009 13:40:11 -0000      1.2
@@ -13,7 +13,6 @@
 #ifndef _UF_PROGRESS_H
 #define _UF_PROGRESS_H
 
-#define PROGRESS_RESET                 0       /* special */
 #define PROGRESS_WAVELET_DENOISE       1
 #define PROGRESS_DESPECKLE             2
 #define PROGRESS_INTERPOLATE           3

Index: ufraw_preview.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_preview.c,v
retrieving revision 1.317
retrieving revision 1.318
diff -u -d -r1.317 -r1.318
--- ufraw_preview.c     28 Nov 2009 05:56:51 -0000      1.317
+++ ufraw_preview.c     29 Nov 2009 13:40:11 -0000      1.318
@@ -848,7 +848,7 @@
     g_timer_start(ProgressTimer);
 
     gboolean events = TRUE;
-    double start = 0.0, stop = 1.0, fraction;
+    double start = 0.0, stop = 1.0, fraction = 0.0;
     char *text = NULL;
     switch (what) {
     case PROGRESS_WAVELET_DENOISE:
@@ -870,12 +870,6 @@
        break;
     case PROGRESS_SAVE:
        text = _("Saving image");
-       break;
-    case PROGRESS_RESET:
-    default:
-       stop = 0.0;
-       todo = done = 0;
-       events = FALSE;
     }
     if (ticks < 0 && text)
        gtk_progress_bar_set_text(ProgressBar, text);
@@ -892,13 +886,11 @@
 {
     ProgressBar = data->ProgressBar;
     ProgressTimer = g_timer_new();
-    preview_progress(PROGRESS_RESET, 0);
     ufraw_progress = preview_progress;
 }
 
 static void preview_progress_disable(preview_data *data)
 {
-    preview_progress(PROGRESS_RESET, 0);
     ufraw_progress = NULL;
     g_timer_destroy(ProgressTimer);
     render_status_text(data);


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
ufraw-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs

Reply via email to