summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-08-06 08:02:56 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-08-06 08:02:56 (GMT)
commitdbf6ca9e108198f0ad79eaf377f5f229b14a4938 (patch)
tree5a10eaea7d2c1290161cd1222f9121157e3fa583
parentfb1d26845908d131b1c92d7d7cd1bc402b656ca4 (diff)
Defined initial content and size for the status bar.
-rw-r--r--ChangeLog6
-rw-r--r--src/gtkext/gtkstatusstack.c10
2 files changed, 9 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 9f84209..de2ce21 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+16-08-06 Cyrille Bagard <nocbos@gmail.com>
+
+ * src/gtkext/gtkstatusstack.c:
+ Define initial content and size for the status bar. Fix compilation
+ warnings.
+
16-07-30 Cyrille Bagard <nocbos@gmail.com>
* plugins/pychrysa/analysis/binary.c:
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)