diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-02-25 23:38:01 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-25 13:56:22 -0800 |
commit | aa5f1f0ce24307d6f1a8f0cf125766cb5ae00b68 (patch) | |
tree | 4a31d8fa35f1fdf8f095a9b6c518e2922b5dcfc9 /dive.h | |
parent | 31b2a6ffa839ad107706516e166f13b0b88bae08 (diff) | |
download | subsurface-aa5f1f0ce24307d6f1a8f0cf125766cb5ae00b68.tar.gz |
Show a "No Events" label when there are no events in the filter dialog
Uses profile.c:evn_foreach() to retrieve the number of events, which
if zero, no table is added in the dialog and the label is added instead.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -581,7 +581,7 @@ extern void add_people(const char *string); extern void add_location(const char *string); extern void add_suit(const char *string); extern void remember_event(const char *eventname); -extern void evn_foreach(void (*callback)(const char *, int *, void *), void *data); +extern int evn_foreach(void (*callback)(const char *, int *, void *), void *data); extern void clear_events(void); extern int add_new_dive(struct dive *dive); |