aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/cal-component.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2002-08-08 21:51:02 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2002-08-08 21:51:02 +0800
commit107a638a25358ffa10a1634ed5baa4bd547a8410 (patch)
treeb6e1507f3ec1971ddfefa595efb91b1ce470f444 /calendar/cal-util/cal-component.c
parente0a73ef7072b61efcebd798423fcbee2a1991679 (diff)
downloadgsoc2013-evolution-107a638a25358ffa10a1634ed5baa4bd547a8410.tar.gz
gsoc2013-evolution-107a638a25358ffa10a1634ed5baa4bd547a8410.tar.zst
gsoc2013-evolution-107a638a25358ffa10a1634ed5baa4bd547a8410.zip
Fixes #15710
2002-08-08 Rodrigo Moya <rodrigo@ximian.com> Fixes #15710 * cal-util/cal-component.[ch] (cal_component_alarm_get_icalcomponent): new function for getting the icalcomponent from a CalComponentAlarm. * gui/comp-util.c (cal_comp_event_new_with_defaults): added X-EVOLUTION-NEEDS-DESCRIPTION property to the default reminder alarm, so that we can identify it when saving the component. * gui/dialogs/alarm-page.c (alarm_page_fill_component): if the alarm has the X-EVOLUTION-NEEDS-DESCRIPTION property, set the description to be the same as of the component. svn path=/trunk/; revision=17744
Diffstat (limited to 'calendar/cal-util/cal-component.c')
-rw-r--r--calendar/cal-util/cal-component.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c
index 6101c3cd63..2f5c88e4ca 100644
--- a/calendar/cal-util/cal-component.c
+++ b/calendar/cal-util/cal-component.c
@@ -5150,6 +5150,21 @@ cal_component_alarm_set_trigger (CalComponentAlarm *alarm, CalAlarmTrigger trigg
}
}
+/**
+ * cal_component_alarm_get_icalcomponent
+ * @alarm: An alarm.
+ *
+ * Get the icalcomponent associated with the given #CalComponentAlarm.
+ *
+ * Returns: the icalcomponent.
+ */
+icalcomponent *
+cal_component_alarm_get_icalcomponent (CalComponentAlarm *alarm)
+{
+ g_return_val_if_fail (alarm != NULL, NULL);
+ return alarm->icalcomp;
+}
+
/* Returns TRUE if both strings match, i.e. they are both NULL or the
strings are equal. */
static gboolean