aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2002-05-15 02:47:29 +0800
committerJP Rosevear <jpr@src.gnome.org>2002-05-15 02:47:29 +0800
commit94f84171da1005a087656500be0666ef7a398621 (patch)
treef25e2e78f22519c3fa38d2f54591804e88c31bdc /calendar/cal-util
parent0f3c7879a1773d68415befef933c63eb9872079f (diff)
downloadgsoc2013-evolution-94f84171da1005a087656500be0666ef7a398621.tar.gz
gsoc2013-evolution-94f84171da1005a087656500be0666ef7a398621.tar.zst
gsoc2013-evolution-94f84171da1005a087656500be0666ef7a398621.zip
make the range datetime member a struct not a pointer
2002-05-14 JP Rosevear <jpr@ximian.com> * 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
Diffstat (limited to 'calendar/cal-util')
-rw-r--r--calendar/cal-util/cal-component.c6
-rw-r--r--calendar/cal-util/cal-component.h4
2 files changed, 5 insertions, 5 deletions
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);