diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-03-19 13:02:54 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-03-19 13:02:54 (GMT) |
commit | 94fd405bb0c2e6dfa43324b04a336ffb611c58ce (patch) | |
tree | f3170587b4006fa358665a6bbfa301731503d3b3 /src/gtkext | |
parent | 499f00977cd7f50ce0c4cf24dd59b1e920e5b180 (diff) |
Provided initial features for debugging using GDB.
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); |