diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2021-09-28 21:40:39 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2021-09-28 21:40:39 (GMT) |
commit | 0b5e9a3c7bcd3eb15be0e888ebfe46d14497b101 (patch) | |
tree | 059d8e5712476a9df8c429ed787efd484d5f372d /src/gtkext | |
parent | dc25699a414f0baa2265be0cfa162c77b2cdc22d (diff) |
Rely on a generic task to analyze loaded content.
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); |