diff options
Diffstat (limited to 'src/gtkext')
-rw-r--r-- | src/gtkext/gtkstatusstack.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gtkext/gtkstatusstack.c b/src/gtkext/gtkstatusstack.c index 51107c5..789661e 100644 --- a/src/gtkext/gtkstatusstack.c +++ b/src/gtkext/gtkstatusstack.c @@ -845,6 +845,8 @@ activity_id_t gtk_status_stack_add_activity(GtkStatusStack *stack, const char *m progress_info *info; /* Informations à consulter */ size_t new; /* Indice de l'activité créée */ + if (stack == NULL) return 0; + info = stack->prog_info; g_mutex_lock(&info->access); @@ -904,6 +906,8 @@ void gtk_status_stack_extend_activity(GtkStatusStack *stack, activity_id_t id, u progress_info *info; /* Informations à consulter */ size_t i; /* Boucle de parcours */ + if (stack == NULL) return; + info = stack->prog_info; g_mutex_lock(&info->access); @@ -941,6 +945,8 @@ void gtk_status_stack_update_activity(GtkStatusStack *stack, activity_id_t id, c size_t i; /* Boucle de parcours */ bool msg_changed; /* Changement d'intitulé */ + if (stack == NULL) return; + info = stack->prog_info; g_mutex_lock(&info->access); @@ -1008,6 +1014,8 @@ void gtk_status_stack_update_activity_value(GtkStatusStack *stack, activity_id_t progress_status *status; /* Raccourci de confort */ double new; /* Nouvelle progression */ + if (stack == NULL) return; + info = stack->prog_info; g_mutex_lock(&info->access); @@ -1061,6 +1069,8 @@ void gtk_status_stack_remove_activity(GtkStatusStack *stack, activity_id_t id) progress_info *info; /* Informations à consulter */ size_t i; /* Boucle de parcours */ + if (stack == NULL) return; + info = stack->prog_info; g_mutex_lock(&info->access); |