diff options
author | Damon Chaplin <damon@helixcode.com> | 2000-05-01 08:27:17 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2000-05-01 08:27:17 +0800 |
commit | c4f6855cebd5b13deca8109e79f0beb7dabdd0ce (patch) | |
tree | 95937961c0290907b5a469618c1b137f97c94480 /calendar/cal-util/calobj.h | |
parent | 165bf85c4d07928acf01c43c49c7e65c16b28ac8 (diff) | |
download | gsoc2013-evolution-c4f6855cebd5b13deca8109e79f0beb7dabdd0ce.tar.gz gsoc2013-evolution-c4f6855cebd5b13deca8109e79f0beb7dabdd0ce.tar.zst gsoc2013-evolution-c4f6855cebd5b13deca8109e79f0beb7dabdd0ce.zip |
new function to see if the event dates have changed (including any
2000-05-01 Damon Chaplin <damon@helixcode.com>
* cal-util/calobj.c (ical_object_compare_dates): new function to see
if the event dates have changed (including any recurrence rules).
It is used for optimization when we get the "object_changed" signal.
We have to do far less work if the dates are unchanged.
* gui/e-week-view.c:
* gui/e-day-view.c: only draw the selection when we have the keyboard
focus, since the user expects to be able to type in a new event when
the selection is shown. Also keep the selection when we lose focus,
but just don't show it.
Also quite a few changes to cope with the new client/server
architecture.
* gui/e-day-view-top-item.c (e_day_view_top_item_draw):
* gui/e-day-view-main-item.c (e_day_view_main_item_draw):
* gui/e-week-view-main-item.c (e_week_view_main_item_draw_day):
only draw the selection if the widget has the keyboard focus.
* gui/gnome-cal.c (mark_gtk_calendar_day): fixed so it works with
events longer than one day. And changed the code for updating events
in the new views.
svn path=/trunk/; revision=2701
Diffstat (limited to 'calendar/cal-util/calobj.h')
-rw-r--r-- | calendar/cal-util/calobj.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/calendar/cal-util/calobj.h b/calendar/cal-util/calobj.h index cb0e22f741..0fa82ee36e 100644 --- a/calendar/cal-util/calobj.h +++ b/calendar/cal-util/calobj.h @@ -258,6 +258,11 @@ int ical_object_get_first_weekday (int weekday_mask); /* Returns the number of seconds configured to trigger the alarm in advance to an event */ int alarm_compute_offset (CalendarAlarm *a); + +/* Returns TRUE if the dates of both objects match, including any recurrence + rules. */ +gboolean ical_object_compare_dates (iCalObject *ico1, iCalObject *ico2); + END_GNOME_DECLS #endif |