From 1a3df0d9bbd62710ebb6d78d053a211ca0f5b734 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Mon, 21 Aug 2000 16:12:54 +0000 Subject: Update prototypes 2000-08-21 JP Rosevear * gui/e-day-view.h: Update prototypes * gui/e-day-view.c (e_day_view_on_unrecur_appointment): Remove commented out portions. * gui/e-week-view.c (e_week_view_on_unrecur_appointment): Tidy. svn path=/trunk/; revision=4901 --- calendar/gui/e-day-view.c | 12 +++++++----- calendar/gui/e-week-view.c | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index a5d6e410d6..ea1f541791 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -2528,16 +2528,14 @@ e_day_view_on_unrecur_appointment (GtkWidget *widget, gpointer data) date = g_new0 (CalComponentDateTime, 1); date->value = g_new (struct icaltimetype, 1); + *date->value = icaltimetype_from_timet (event->start, FALSE); cal_component_set_dtstart (new_comp, date); *date->value = icaltimetype_from_timet (event->end, FALSE); cal_component_set_dtend (new_comp, date); - g_free (date->value); - g_free (date); - - //new_ico->dtstart = event->start; - //new_ico->dtend = event->end; + cal_component_free_datetime (date); + /* Now update both CalComponents. Note that we do this last since at * present the updates happen synchronously so our event may disappear. */ @@ -5712,3 +5710,7 @@ e_day_view_on_main_canvas_drag_data_received (GtkWidget *widget, gtk_drag_finish (context, FALSE, FALSE, time); } + + + + diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index adf23e0971..98a52c4039 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -2846,6 +2846,7 @@ e_week_view_on_unrecur_appointment (GtkWidget *widget, gpointer data) CalComponent *comp, *new_comp; CalComponentDateTime *date; GSList *list; + week_view = E_WEEK_VIEW (data); if (week_view->popup_event_num == -1) -- cgit v1.2.3