diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-07-03 12:48:06 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-07-03 12:48:06 +0800 |
commit | eb52ee5a862b132e6c0655cd44b5887d64ead3ca (patch) | |
tree | a2ff41b231aaa8c630e0df8c37e34fe8cde15d1c /calendar/cal-util/cal-component.c | |
parent | 5847ef85662adc9158efa2780ff251b572a63dc1 (diff) | |
download | gsoc2013-evolution-eb52ee5a862b132e6c0655cd44b5887d64ead3ca.tar.gz gsoc2013-evolution-eb52ee5a862b132e6c0655cd44b5887d64ead3ca.tar.zst gsoc2013-evolution-eb52ee5a862b132e6c0655cd44b5887d64ead3ca.zip |
New files with the alarm options dialog; this configures the
2001-07-02 Federico Mena Quintero <federico@ximian.com>
* 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
Diffstat (limited to 'calendar/cal-util/cal-component.c')
-rw-r--r-- | calendar/cal-util/cal-component.c | 9 |
1 files changed, 7 insertions, 2 deletions
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); |