diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-09-11 07:00:17 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-09-11 07:00:17 +0800 |
commit | 7eca7e459091e7f4fcea9223dff71fd179305cb5 (patch) | |
tree | c07e1610e5574e6e8a65d28c431ed0cf1c58502b /calendar/cal-util/cal-component.c | |
parent | d2b81b2d4e2d3effce4ad6f5f0993910677825ba (diff) | |
download | gsoc2013-evolution-7eca7e459091e7f4fcea9223dff71fd179305cb5.tar.gz gsoc2013-evolution-7eca7e459091e7f4fcea9223dff71fd179305cb5.tar.zst gsoc2013-evolution-7eca7e459091e7f4fcea9223dff71fd179305cb5.zip |
Handle the new icalattach type instead of struct icalattachtype.
2001-09-10 Federico Mena Quintero <federico@ximian.com>
* cal-util/cal-component.c (cal_component_alarm_get_attach):
Handle the new icalattach type instead of struct icalattachtype.
(cal_component_alarm_set_attach): Likewise.
* gui/dialogs/alarm-options.c (alarm_to_aalarm_widgets): Likewise.
(alarm_to_palarm_widgets): Likewise.
(aalarm_widgets_to_alarm): Likewise.
(palarm_widgets_to_alarm): Likewise.
svn path=/trunk/; revision=12749
Diffstat (limited to 'calendar/cal-util/cal-component.c')
-rw-r--r-- | calendar/cal-util/cal-component.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c index c7800f0456..d74c1238b2 100644 --- a/calendar/cal-util/cal-component.c +++ b/calendar/cal-util/cal-component.c @@ -4573,12 +4573,12 @@ cal_component_alarm_set_action (CalComponentAlarm *alarm, CalAlarmAction action) /** * cal_component_alarm_get_attach: * @alarm: An alarm. - * @attach: Return value for the attachment; should be freed using icalattachtype_free(). + * @attach: Return value for the attachment; should be freed using icalattach_unref(). * * Queries the attachment property of an alarm. **/ void -cal_component_alarm_get_attach (CalComponentAlarm *alarm, struct icalattachtype **attach) +cal_component_alarm_get_attach (CalComponentAlarm *alarm, icalattach **attach) { g_return_if_fail (alarm != NULL); g_return_if_fail (attach != NULL); @@ -4586,12 +4586,8 @@ cal_component_alarm_get_attach (CalComponentAlarm *alarm, struct icalattachtype g_assert (alarm->icalcomp != NULL); if (alarm->attach) { - *attach = icalattachtype_new (); - **attach = icalproperty_get_attach (alarm->attach); - /* FIXME: This is bogus in libical; icalattachtype is supposed - * to be refcounted but the property functions return it by - * value. - */ + *attach = icalproperty_get_attach (alarm->attach); + icalattach_ref (*attach); } else *attach = NULL; } @@ -4604,7 +4600,7 @@ cal_component_alarm_get_attach (CalComponentAlarm *alarm, struct icalattachtype * Sets the attachment property of an alarm. **/ void -cal_component_alarm_set_attach (CalComponentAlarm *alarm, struct icalattachtype *attach) +cal_component_alarm_set_attach (CalComponentAlarm *alarm, icalattach *attach) { g_return_if_fail (alarm != NULL); @@ -4617,7 +4613,7 @@ cal_component_alarm_set_attach (CalComponentAlarm *alarm, struct icalattachtype } if (attach) { - alarm->attach = icalproperty_new_attach (*attach); + alarm->attach = icalproperty_new_attach (attach); icalcomponent_add_property (alarm->icalcomp, alarm->attach); } } |