[gcompris/gcomprixogoo] Fixed status bar call crasing in command line mode like for gcompris -l list.



commit 68cce6a90f136ab116692152673ecbba334ce42c
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Fri Jun 11 22:45:04 2010 +0200

    Fixed status bar call crasing in command line mode like for gcompris -l list.

 src/gcompris/status.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gcompris/status.c b/src/gcompris/status.c
index 6308827..55c73ab 100644
--- a/src/gcompris/status.c
+++ b/src/gcompris/status.c
@@ -98,7 +98,9 @@ void gc_status_init(gchar *msg)
  */
 void gc_status_set_msg(gchar *msg)
 {
-  g_assert(itemStatusMsg);
+  // No status bar means we are still at command line level.
+  if (!itemStatusMsg)
+    return;
   g_assert(rootStatusItem);
 
   g_object_set (itemStatusMsg,



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