From eb52ee5a862b132e6c0655cd44b5887d64ead3ca Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 3 Jul 2001 04:48:06 +0000 Subject: New files with the alarm options dialog; this configures the 2001-07-02 Federico Mena Quintero * gui/dialogs/alarm-options.[ch]: New files with the alarm options dialog; this configures the repeat/duration properties and the options specific to each alarm action type. * gui/dialogs/alarm-page.c (AlarmPagePrivate): Added the alarm options button. Also, keep an alarm structure which we are editing and an alarm options dialog. (init_widgets): Connect to the options button. (add_clicked_cb): Clone the component we are editing instead of creating a new one so that we preserve the data from the alarm options dialog. (button_options_clicked_cb): Pop up the alarm options dialog. * cal-util/cal-component.c (cal_component_alarm_new): Doh, initialize the other fields in the new alarm. svn path=/trunk/; revision=10731 --- calendar/cal-util/cal-component.c | 9 +++++++-- calendar/cal-util/cal-component.h | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'calendar/cal-util') diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c index 2669dc5562..86b949dfed 100644 --- a/calendar/cal-util/cal-component.c +++ b/calendar/cal-util/cal-component.c @@ -4337,6 +4337,11 @@ cal_component_alarm_new (void) g_free (new_auid); alarm->action = NULL; + alarm->attach = NULL; + alarm->description.prop = NULL; + alarm->description.altrep_param = NULL; + alarm->duration = NULL; + alarm->repeat = NULL; alarm->trigger = NULL; return alarm; @@ -4532,14 +4537,14 @@ cal_component_alarm_get_attach (CalComponentAlarm *alarm, struct icalattachtype } /** - * cal_copmonent_alarm_set_attach: + * cal_component_alarm_set_attach: * @alarm: An alarm. * @attach: Attachment property or NULL to remove an existing property. * * Sets the attachment property of an alarm. **/ void -cal_copmonent_alarm_set_attach (CalComponentAlarm *alarm, struct icalattachtype *attach) +cal_component_alarm_set_attach (CalComponentAlarm *alarm, struct icalattachtype *attach) { g_return_if_fail (alarm != NULL); diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h index 4b3bdfaae4..2dcc06ce61 100644 --- a/calendar/cal-util/cal-component.h +++ b/calendar/cal-util/cal-component.h @@ -434,7 +434,7 @@ void cal_component_alarm_get_action (CalComponentAlarm *alarm, CalAlarmAction *a void cal_component_alarm_set_action (CalComponentAlarm *alarm, CalAlarmAction action); void cal_component_alarm_get_attach (CalComponentAlarm *alarm, struct icalattachtype **attach); -void cal_copmonent_alarm_set_attach (CalComponentAlarm *alarm, struct icalattachtype *attach); +void cal_component_alarm_set_attach (CalComponentAlarm *alarm, struct icalattachtype *attach); void cal_component_alarm_get_description (CalComponentAlarm *alarm, CalComponentText *description); void cal_component_alarm_set_description (CalComponentAlarm *alarm, CalComponentText *description); -- cgit v1.2.3