From aa5f1f0ce24307d6f1a8f0cf125766cb5ae00b68 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Mon, 25 Feb 2013 23:38:01 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- dive.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dive.h') diff --git a/dive.h b/dive.h index 727f03033..201363153 100644 --- a/dive.h +++ b/dive.h @@ -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); -- cgit v1.2.3-70-g09d2