summaryrefslogtreecommitdiff
path: root/src/gtkext
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtkext')
-rw-r--r--src/gtkext/gtkstatusstack.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gtkext/gtkstatusstack.c b/src/gtkext/gtkstatusstack.c
index cff10fe..e072d53 100644
--- a/src/gtkext/gtkstatusstack.c
+++ b/src/gtkext/gtkstatusstack.c
@@ -225,6 +225,8 @@ static void gtk_status_stack_init(GtkStatusStack *stack)
reset_progress_info(stack->prog_info);
+ gtk_status_stack_reset_current_instruction(stack);
+
}
@@ -935,7 +937,6 @@ void gtk_status_stack_update_activity(GtkStatusStack *stack, activity_id_t id, c
progress_info *info; /* Informations à consulter */
size_t i; /* Boucle de parcours */
bool msg_changed; /* Changement d'intitulé */
- double old; /* Conservation pour la diff. */
info = stack->prog_info;
@@ -969,7 +970,7 @@ void gtk_status_stack_update_activity(GtkStatusStack *stack, activity_id_t id, c
/* On n'actualise que le sommet de la pile */
- if ((i + 1) == info->count)
+ if ((i + 1) == info->count && msg_changed)
{
if (info->tag != 0)
g_source_remove(info->tag);
@@ -1002,7 +1003,6 @@ void gtk_status_stack_update_activity_value(GtkStatusStack *stack, activity_id_t
progress_info *info; /* Informations à consulter */
size_t i; /* Boucle de parcours */
progress_status *status; /* Raccourci de confort */
- double old; /* Ancienne progression */
double new; /* Nouvelle progression */
info = stack->prog_info;
@@ -1025,10 +1025,6 @@ void gtk_status_stack_update_activity_value(GtkStatusStack *stack, activity_id_t
/* On n'actualise que le sommet de la pile */
-
- //fprintf(stderr, "PROG %g -> %g <=> %g ==> %d\n", old, new, new - old, (new - old) > 0.1);
-
-
if ((i + 1) == info->count && (new - status->last_updated) > 0.1)
{
if (info->tag != 0)