aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-02-06 07:58:50 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-02-06 07:58:50 +0800
commit08b789cec1c3a110da0e1ec0e829015334715ca0 (patch)
tree0039b7ca15673ec2bf2a7adbb73bf8c0c6f6e1dc
parentc854c40b396fe9a07a55c05ba0c173d1fd628bad (diff)
downloadgsoc2013-evolution-08b789cec1c3a110da0e1ec0e829015334715ca0.tar.gz
gsoc2013-evolution-08b789cec1c3a110da0e1ec0e829015334715ca0.tar.zst
gsoc2013-evolution-08b789cec1c3a110da0e1ec0e829015334715ca0.zip
Set the time and duration values in the trigger to null by default
2001-02-05 JP Rosevear <jpr@ximian.com> * cal-util/cal-component.c (cal_component_alarm_set_trigger): Set the time and duration values in the trigger to null by default (cal_component_free_alarm_uids): properly free the list of alarm uids svn path=/trunk/; revision=8005
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/cal-util/cal-component.c4
2 files changed, 10 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index b3f5f5023d..c4f1824877 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,12 @@
2001-02-05 JP Rosevear <jpr@ximian.com>
+ * cal-util/cal-component.c (cal_component_alarm_set_trigger): Set
+ the time and duration values in the trigger to null by default
+ (cal_component_free_alarm_uids): properly free the list of alarm
+ uids
+
+2001-02-05 JP Rosevear <jpr@ximian.com>
+
* gui/event-editor.c (get_widgets): get the new reminder widgets
(sync_entries): different callback data
(summary_changed_cb): take different data and handle various cases
diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c
index 5cba22a635..de7a768a17 100644
--- a/calendar/cal-util/cal-component.c
+++ b/calendar/cal-util/cal-component.c
@@ -3647,7 +3647,7 @@ cal_component_get_alarm (CalComponent *comp, const char *auid)
void
cal_component_free_alarm_uids (GList *alarm_uids)
{
-
+ g_list_foreach (alarm_uids, (GFunc)g_free, NULL);
}
/**
@@ -3918,6 +3918,8 @@ cal_component_alarm_set_trigger (CalComponentAlarm *alarm, CalAlarmTrigger trigg
related = ICAL_RELATED_START; /* Keep GCC happy */
+ t.time = icaltime_null_time ();
+ t.duration = icaldurationtype_null_duration ();
switch (trigger.type) {
case CAL_ALARM_TRIGGER_RELATIVE_START:
t.duration = trigger.u.rel_duration;
curen2015-03-237-24/+78 |\ \ | * \ Merge pull request #537 from Gustav-Simonsson/blocktests2Jeffrey Wilcke2015-03-235-15/+56 | |\ \ | | * | Correct difficulty calculation to use new difficulty minimumGustav Simonsson2015-03-231-2/+4 | | * | Fix new types for blocktests and comment out non-working log level setterGustav Simonsson2015-03-232-5/+5 | | * | gofmtGustav Simonsson2015-03-232-5/+3 | | * | Add validation of post state accounts to block testsGustav Simonsson2015-03-232-6/+40 | | * | In blocktest cmd, disable network and add RPC flagGustav Simonsson2015-03-232-5/+12 | * | | "pending" convention should be -2 instead of 0Taylor Gerring2015-03-232-2/+15 | * | | Rename blockAge to blockHeightTaylor Gerring2015-03-231-7/+7 | |/ / * | | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-03-234-15/+181 |\| | | * | db_putHex/db_getHex + testsTaylor Gerring2015-03-234-15/+181 | |/ * | Fixed issues with stalled remote minerobscuren2015-03-232-4/+9 * | logging for possible unclesobscuren2015-03-234-25/+44 * | added some nil checks for cache (testing specific)obscuren2015-03-231-6/+19 * | Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-03-237-94/+94 |\| | * Merge pull request #548 from tgerring/typescleanupJeffrey Wilcke2015-03-234-10/+10 | |\ | | * Fix Mist types build errorsTaylor Gerring2015-03-224-10/+10 | * | Move RemoteAgent to miner pkgTaylor Gerring2015-03-232-8/+7 | * | Rename Agent to RemoteAgentTaylor Gerring2015-03-232-14/+14 | * | Add DAG seed hash and difficulty to GetWorkTaylor Gerring2015-03-231-5/+6 * | | finally merged *the missing*obscuren2015-03-233-15/+52 |/ / * | go away!Taylor Gerring2015-03-231-81/+0 * | Move remote mining agent to XEthTaylor Gerring2015-03-233-9/+93 * | Consistent var namesTaylor Gerring2015-03-231-60/+60 * | Always return 3 stringsTaylor Gerring2015-03-231-6/+5 * | Stub corrected getWork responseTaylor Gerring2015-03-232-4/+9 * | Rename for filename typoTaylor Gerring2015-03-231-0/+0 * | Cleanup get/submitWorkTaylor Gerring2015-03-233-12/+54 * | Merge pull request #547 from tgerring/commoncleanupJeffrey Wilcke2015-03-239-265/+250 |\ \ | * | Remove common.goTaylor Gerring2015-03-221-12/+0 | * | Move Big* vars to big.goTaylor Gerring2015-03-222-14/+13 | * | Move MakeName to pathTaylor Gerring2015-03-222-8/+8 | * | Move OS-specific funcs to path.goTaylor Gerring2015-03-224-98/+91 | * | Move CurrencyToString to sizeTaylor Gerring2015-03-224-91/+95 | * | Move ToHex/FromHex into bytesTaylor Gerring2015-03-224-42/+43 | |/ * | Merge pull request #536 from zsfelfoldi/developJeffrey Wilcke2015-03-23144-13116/+4986 |\ \ | * | fixed jsre testzsfelfoldi2015-03-201-1/+1 | * | using robertkrimen/otto, godeps updatedzsfelfoldi2015-03-20144-13116/+4986 * | | Merge branch 'ethersphere-jsonlog' into developobscuren2015-03-239-110/+105 |\ \ \ | * | | Merge branch 'jsonlog' of https://github.com/ethersphere/go-ethereum into eth...obscuren2015-03-23