diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-08-29 03:25:07 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2006-08-29 03:25:07 +0800 |
commit | 1eb8e0e58501d1eb230390e94c3ff789cee0ffd5 (patch) | |
tree | 0663a7e0e6df75d4c176a711aad9f4f292930404 | |
parent | f4f8f32f59cba8f56cc866c6bc2b359817ba7fba (diff) | |
download | gsoc2013-evolution-1eb8e0e58501d1eb230390e94c3ff789cee0ffd5.tar gsoc2013-evolution-1eb8e0e58501d1eb230390e94c3ff789cee0ffd5.tar.gz gsoc2013-evolution-1eb8e0e58501d1eb230390e94c3ff789cee0ffd5.tar.bz2 gsoc2013-evolution-1eb8e0e58501d1eb230390e94c3ff789cee0ffd5.tar.lz gsoc2013-evolution-1eb8e0e58501d1eb230390e94c3ff789cee0ffd5.tar.xz gsoc2013-evolution-1eb8e0e58501d1eb230390e94c3ff789cee0ffd5.tar.zst gsoc2013-evolution-1eb8e0e58501d1eb230390e94c3ff789cee0ffd5.zip |
Set dtstart while creating memos using quick add
svn path=/trunk/; revision=32692
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | calendar/gui/e-cal-model-memos.c | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 373889c7c0..0aec0df68b 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2006-08-29 Chenthill Palanisamy <pchenthill@novell.com> + + * gui/e-cal-model-memos.c: (ecmm_fill_component_from_model): + set dtstart while creating memos using quick add. + 2006-08-28 Chenthill Palanisamy <pchenthill@novell.com> * gui/migration.c: (is_groupwise_account), (add_gw_esource), diff --git a/calendar/gui/e-cal-model-memos.c b/calendar/gui/e-cal-model-memos.c index f32a12455e..ba5f8ab067 100644 --- a/calendar/gui/e-cal-model-memos.c +++ b/calendar/gui/e-cal-model-memos.c @@ -240,10 +240,17 @@ static void ecmm_fill_component_from_model (ECalModel *model, ECalModelComponent *comp_data, ETableModel *source_model, gint row) { + icaltimetype start; g_return_if_fail (E_IS_CAL_MODEL_MEMOS (model)); g_return_if_fail (comp_data != NULL); g_return_if_fail (E_IS_TABLE_MODEL (source_model)); + start = icalcomponent_get_dtstart (comp_data->icalcomp); + if (icaltime_compare_date_only (start, icaltime_null_time ()) == 0) { + start = icaltime_today (); + icalcomponent_set_dtstart (comp_data->icalcomp, start); + } + } /** |