From 94f84171da1005a087656500be0666ef7a398621 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 14 May 2002 18:47:29 +0000 Subject: make the range datetime member a struct not a pointer 2002-05-14 JP Rosevear * cal-util/cal-component.h: make the range datetime member a struct not a pointer * cal-util/cal-component.c (cal_component_get_recurid): take a pointer to a range (cal_component_set_recurid): ditto * gui/itip-utils.c (comp_minimal): get/set the recurrence id properly svn path=/trunk/; revision=16785 --- calendar/cal-util/cal-component.c | 6 +++--- calendar/cal-util/cal-component.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'calendar/cal-util') diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c index 513c98673e..a618e0ef4b 100644 --- a/calendar/cal-util/cal-component.c +++ b/calendar/cal-util/cal-component.c @@ -3179,7 +3179,7 @@ cal_component_set_priority (CalComponent *comp, int *priority) * Queries the recurrence id property of a calendar component object **/ void -cal_component_get_recurid (CalComponent *comp, CalComponentRange **recur_id) +cal_component_get_recurid (CalComponent *comp, CalComponentRange *recur_id) { CalComponentPrivate *priv; @@ -3192,7 +3192,7 @@ cal_component_get_recurid (CalComponent *comp, CalComponentRange **recur_id) get_datetime (&priv->recur_id.recur_time, icalproperty_get_recurrenceid, - (*recur_id)->datetime); + &recur_id->datetime); } /** @@ -3216,7 +3216,7 @@ cal_component_set_recurid (CalComponent *comp, CalComponentRange *recur_id) set_datetime (comp, &priv->recur_id.recur_time, icalproperty_new_recurrenceid, icalproperty_set_recurrenceid, - recur_id->datetime); + &recur_id->datetime); } /** diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h index ad2dac7e48..4961c504e4 100644 --- a/calendar/cal-util/cal-component.h +++ b/calendar/cal-util/cal-component.h @@ -132,7 +132,7 @@ typedef enum { typedef struct { CalComponentRangeType type; - CalComponentDateTime *datetime; + CalComponentDateTime datetime; } CalComponentRange; /* Text properties */ @@ -281,7 +281,7 @@ void cal_component_set_percent (CalComponent *comp, int *percent); void cal_component_get_priority (CalComponent *comp, int **priority); void cal_component_set_priority (CalComponent *comp, int *priority); -void cal_component_get_recurid (CalComponent *comp, CalComponentRange **recur_id); +void cal_component_get_recurid (CalComponent *comp, CalComponentRange *recur_id); void cal_component_set_recurid (CalComponent *comp, CalComponentRange *recur_id); void cal_component_get_rdate_list (CalComponent *comp, GSList **period_list); -- cgit