[gthumb/ext] fixed the progress dialog update



commit ee727c03a94dac71662bf7008e3276adecdb9751
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Oct 4 18:36:32 2009 +0200

    fixed the progress dialog update

 gthumb/gth-async-task.c      |    2 +-
 gthumb/gth-progress-dialog.c |    9 ++++-----
 2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/gthumb/gth-async-task.c b/gthumb/gth-async-task.c
index fd6dec3..8c01e2a 100644
--- a/gthumb/gth-async-task.c
+++ b/gthumb/gth-async-task.c
@@ -25,7 +25,7 @@
 #include "typedefs.h"
 
 
-#define PROGRESS_DELAY 200 /* delay between progress notifications */
+#define PROGRESS_DELAY 100 /* delay between progress notifications */
 
 
 /* Properties */
diff --git a/gthumb/gth-progress-dialog.c b/gthumb/gth-progress-dialog.c
index 8b68683..d5be6b0 100644
--- a/gthumb/gth-progress-dialog.c
+++ b/gthumb/gth-progress-dialog.c
@@ -178,11 +178,10 @@ task_progress_cb (GthTask    *task,
 {
 	GthTaskProgress *self = user_data;
 
-	if (description == NULL)
-		return;
-
-	gtk_label_set_text (GTK_LABEL (self->description_label), description);
-	gtk_label_set_text (GTK_LABEL (self->details_label), details);
+	if (description != NULL)
+		gtk_label_set_text (GTK_LABEL (self->description_label), description);
+	if (details != NULL)
+		gtk_label_set_text (GTK_LABEL (self->details_label), details);
 	if (pulse)
 		gtk_progress_bar_pulse (GTK_PROGRESS_BAR (self->fraction_progressbar));
 	else



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