aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-08-22 00:12:54 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-08-22 00:12:54 +0800
commit1a3df0d9bbd62710ebb6d78d053a211ca0f5b734 (patch)
tree68d04f31d731b8454baf89a7e43e62aa78bbac2a /calendar
parent03ce36a2553d738c6dabacc42a463d2c2dd251bc (diff)
downloadgsoc2013-evolution-1a3df0d9bbd62710ebb6d78d053a211ca0f5b734.tar.gz
gsoc2013-evolution-1a3df0d9bbd62710ebb6d78d053a211ca0f5b734.tar.zst
gsoc2013-evolution-1a3df0d9bbd62710ebb6d78d053a211ca0f5b734.zip
Update prototypes
2000-08-21 JP Rosevear <jpr@helixcode.com> * 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
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/e-day-view.c12
-rw-r--r--calendar/gui/e-week-view.c1
2 files changed, 8 insertions, 5 deletions
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)