diff options
Diffstat (limited to 'calendar/gui/e-calendar-view.h')
-rw-r--r-- | calendar/gui/e-calendar-view.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/calendar/gui/e-calendar-view.h b/calendar/gui/e-calendar-view.h index 62fcabcc37..6f68e6376b 100644 --- a/calendar/gui/e-calendar-view.h +++ b/calendar/gui/e-calendar-view.h @@ -87,6 +87,14 @@ typedef struct { E_CALENDAR_VIEW_EVENT_FIELDS } ECalendarViewEvent; +/* checks if event->comp_data is not NULL, returns FALSE when it is and prints a warning on a console */ +gboolean is_comp_data_valid_func (ECalendarViewEvent *event, const gchar *location); +#define is_comp_data_valid(_event) is_comp_data_valid_func ((ECalendarViewEvent *) (_event), G_STRFUNC) + +/* checks if index is within bounds for the array; returns FALSE when not, and prints a warning on a console */ +gboolean is_array_index_in_bounds_func (GArray *array, gint index, const gchar *location); +#define is_array_index_in_bounds(_array, _index) is_array_index_in_bounds_func (_array, _index, G_STRFUNC) + typedef struct _ECalendarView ECalendarView; typedef struct _ECalendarViewClass ECalendarViewClass; typedef struct _ECalendarViewPrivate ECalendarViewPrivate; |