diff options
author | JP Rosevear <jpr@helixcode.com> | 2000-08-24 06:03:46 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2000-08-24 06:03:46 +0800 |
commit | b29fc16e4b9130c44ec5702851166466164fbbf8 (patch) | |
tree | 234c8e0c3f41fa657b805453f9b70cbc0ea06754 /calendar/gui/e-week-view.c | |
parent | aaedfc462856ab8c6f4601931150aae518ae0ab5 (diff) | |
download | gsoc2013-evolution-b29fc16e4b9130c44ec5702851166466164fbbf8.tar.gz gsoc2013-evolution-b29fc16e4b9130c44ec5702851166466164fbbf8.tar.zst gsoc2013-evolution-b29fc16e4b9130c44ec5702851166466164fbbf8.zip |
Set vtype of new CalComponent (e_week_view_on_new_appointment): ditto
2000-08-23 JP Rosevear <jpr@helixcode.com>
* gui/e-week-view.c (e_week_view_key_press): Set vtype of new
CalComponent
(e_week_view_on_new_appointment): ditto
* gui/e-day-view.c (e_day_view_on_new_appointment): ditto
svn path=/trunk/; revision=4990
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r-- | calendar/gui/e-week-view.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index faf78db567..4a84aed29e 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -2626,6 +2626,7 @@ e_week_view_key_press (GtkWidget *widget, GdkEventKey *event) /* Add a new event covering the selected range. */ comp = cal_component_new (); + cal_component_set_new_vtype (comp, CAL_COMPONENT_EVENT); dtstart = week_view->day_starts[week_view->selection_start_day]; dtend = week_view->day_starts[week_view->selection_end_day + 1]; @@ -2742,7 +2743,8 @@ e_week_view_on_new_appointment (GtkWidget *widget, gpointer data) week_view = E_WEEK_VIEW (data); comp = cal_component_new (); - + cal_component_set_new_vtype (comp, CAL_COMPONENT_EVENT); + date.value = g_new0 (struct icaltimetype, 1); *date.value = |