From dbf6ca9e108198f0ad79eaf377f5f229b14a4938 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Sat, 6 Aug 2016 10:02:56 +0200
Subject: Defined initial content and size for the status bar.

---
 ChangeLog                   |  6 ++++++
 src/gtkext/gtkstatusstack.c | 10 +++-------
 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)
-- 
cgit v0.11.2-87-g4458