diff options
Diffstat (limited to 'src/gtkext')
-rw-r--r-- | src/gtkext/gtkstatusstack.c | 2 | ||||
-rw-r--r-- | src/gtkext/gtkstatusstack.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gtkext/gtkstatusstack.c b/src/gtkext/gtkstatusstack.c index 1df5d35..0b35e1b 100644 --- a/src/gtkext/gtkstatusstack.c +++ b/src/gtkext/gtkstatusstack.c @@ -839,7 +839,7 @@ 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; + if (stack == NULL) return NO_ACTIVITY_ID; info = stack->prog_info; diff --git a/src/gtkext/gtkstatusstack.h b/src/gtkext/gtkstatusstack.h index b68e387..91182a1 100644 --- a/src/gtkext/gtkstatusstack.h +++ b/src/gtkext/gtkstatusstack.h @@ -75,6 +75,9 @@ void gtk_status_stack_reset_current_location(GtkStatusStack *); /* Identifiant unique de rapport de progression */ typedef unsigned long activity_id_t; +/* Identifiant particulier pour une absence d'identifiant */ +#define NO_ACTIVITY_ID 0 + /* Démarre le suivi d'une nouvelle activité. */ activity_id_t gtk_status_stack_add_activity(GtkStatusStack *, const char *, unsigned long); |