aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-07-03 12:48:06 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-07-03 12:48:06 +0800
commiteb52ee5a862b132e6c0655cd44b5887d64ead3ca (patch)
treea2ff41b231aaa8c630e0df8c37e34fe8cde15d1c /calendar/cal-util
parent5847ef85662adc9158efa2780ff251b572a63dc1 (diff)
downloadgsoc2013-evolution-eb52ee5a862b132e6c0655cd44b5887d64ead3ca.tar
gsoc2013-evolution-eb52ee5a862b132e6c0655cd44b5887d64ead3ca.tar.gz
gsoc2013-evolution-eb52ee5a862b132e6c0655cd44b5887d64ead3ca.tar.bz2
gsoc2013-evolution-eb52ee5a862b132e6c0655cd44b5887d64ead3ca.tar.lz
gsoc2013-evolution-eb52ee5a862b132e6c0655cd44b5887d64ead3ca.tar.xz
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')
-rw-r--r--calendar/cal-util/cal-component.c9
-rw-r--r--calendar/cal-util/cal-component.h2
2 files changed, 8 insertions, 3 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);
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);