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>
This commit is contained in:
Lubomir I. Ivanov 2013-02-25 23:38:01 +02:00 committed by Dirk Hohndel
parent 31b2a6ffa8
commit aa5f1f0ce2
3 changed files with 11 additions and 6 deletions

2
dive.h
View file

@ -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);