diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-08-06 08:02:56 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-08-06 08:02:56 (GMT) |
commit | dbf6ca9e108198f0ad79eaf377f5f229b14a4938 (patch) | |
tree | 5a10eaea7d2c1290161cd1222f9121157e3fa583 /src/gtkext | |
parent | fb1d26845908d131b1c92d7d7cd1bc402b656ca4 (diff) |
Defined initial content and size for the status bar.
Diffstat (limited to 'src/gtkext')
-rw-r--r-- | src/gtkext/gtkstatusstack.c | 10 |
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) |