From fba8692c75c362bc4fa2c0f872cfdf4fb80b1e5c Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Wed, 26 Apr 2000 00:02:43 +0000 Subject: compare iCalObjects by their UIDs instead of by their pointers. * gui/e-day-view.c (e_day_view_find_event_from_ico): compare iCalObjects by their UIDs instead of by their pointers. svn path=/trunk/; revision=2617 --- calendar/ChangeLog | 3 +++ calendar/cal-util/calobj.c | 3 ++- calendar/gui/e-day-view.c | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index beb21064d6..ec34110476 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,8 @@ 2000-04-25 Seth Alves + * gui/e-day-view.c (e_day_view_find_event_from_ico): compare + iCalObjects by their UIDs instead of by their pointers. + * pcs/cal-backend.c (cal_backend_destroy): don't save on destroy. 2000-04-25 Ettore Perazzoli diff --git a/calendar/cal-util/calobj.c b/calendar/cal-util/calobj.c index 53be88f362..9b66e5795b 100644 --- a/calendar/cal-util/calobj.c +++ b/calendar/cal-util/calobj.c @@ -1,3 +1,4 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Calendar objects implementations. * Copyright (C) 1998 the Free Software Foundation @@ -1011,7 +1012,7 @@ ical_object_to_vobject (iCalObject *ical) if (strchr (ical->summary, '\n')) addProp (s, VCQuotedPrintableProp); } else { - addPropValue (o, VCSummaryProp, _("Appointment")); + //addPropValue (o, VCSummaryProp, _("Snark")); } /* status */ diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index e47cbed34b..65151e49a6 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -1234,7 +1234,10 @@ e_day_view_find_event_from_ico (EDayView *day_view, event_num++) { event = &g_array_index (day_view->events[day], EDayViewEvent, event_num); - if (event->ico == ico) { + //if (event->ico == ico) { + if (ico && ico->uid && + event && event->ico && event->ico->uid && + (strcmp (ico->uid, event->ico->uid) == 0)) { *day_return = day; *event_num_return = event_num; return TRUE; -- cgit v1.2.3