aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar.h
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-08-28 08:29:59 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-08-28 08:29:59 +0800
commit21e41f438e4761587b0ea42db80b23dde1eb59e3 (patch)
treebf8fed6dc79bd0df6121f757e5f91afd699f645f /calendar/gui/calendar.h
parente4a4179f9d2226b1420e73ae894221502bfd7209 (diff)
downloadgsoc2013-evolution-21e41f438e4761587b0ea42db80b23dde1eb59e3.tar
gsoc2013-evolution-21e41f438e4761587b0ea42db80b23dde1eb59e3.tar.gz
gsoc2013-evolution-21e41f438e4761587b0ea42db80b23dde1eb59e3.tar.bz2
gsoc2013-evolution-21e41f438e4761587b0ea42db80b23dde1eb59e3.tar.lz
gsoc2013-evolution-21e41f438e4761587b0ea42db80b23dde1eb59e3.tar.xz
gsoc2013-evolution-21e41f438e4761587b0ea42db80b23dde1eb59e3.tar.zst
gsoc2013-evolution-21e41f438e4761587b0ea42db80b23dde1eb59e3.zip
Today: fixed calculation of day indexes when weeks start on Monday. The
Today: fixed calculation of day indexes when weeks start on Monday. The year view now marks days (and fixed bugs in day marking as well). Next step: make a generic month-marker routine and use that all over the place. 1998-08-27 Federico Mena Quintero <federico@nuclecu.unam.mx> * gnome-month-item.c (build_month): Now does the correct thing when the user wants weeks to start on Monday. Now all the Monday special casing, as far as day numbering is concerned, is only in this function. * year-view.c (mark_days): This function marks the days that have events in them. It also fixes a memory leak in the old implementation (it was leaking the whole list). (unmark_days): New function used to unmark all the days in the year view. (mark_event): New function that marks all the days that are spanned by a time range. It also fixes the bug in the old implementation where it could possibly mark days past the ends of the year (if the event crosses year boundaries, for example). * timeutil.c (time_year_begin): Take the year parameter since year 1, not 1900. (time_year_end): Likewise. * year-view.c (year_view_size_allocate): Now changing the size of the calendars is done in the idle loop. (idle_handler): This function actually does the resizing of the items. * year-view.h (struct _YearView): Added idle_id and need_resize fields. svn path=/trunk/; revision=346
Diffstat (limited to 'calendar/gui/calendar.h')
-rw-r--r--calendar/gui/calendar.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/calendar/gui/calendar.h b/calendar/gui/calendar.h
index 0a0e949d92..c12ce639b7 100644
--- a/calendar/gui/calendar.h
+++ b/calendar/gui/calendar.h
@@ -48,15 +48,17 @@ gint calendar_compare_by_dtstart (gpointer a, gpointer b);
void calendar_iterate_on_objects (GList *objects, time_t start, time_t end, calendarfn cb, void *closure);
void calendar_iterate (Calendar *cal, time_t start, time_t end, calendarfn cb, void *closure);
-/* Note this routine returns a GList with CalendarObjects */
-GList *calendar_get_events_in_range (Calendar *cal, time_t start, time_t end);
+/* Returns a list of CalendarObject structures. These represent the events in the calendar that are
+ * in the specified range.
+ */
+GList *calendar_get_events_in_range (Calendar *cal, time_t start, time_t end);
+
+/* Destroy list returned by calendar_get_events_in_range() with this function */
+void calendar_destroy_event_list (GList *l);
/* Informs the calendar that obj information has changed */
void calendar_object_changed (Calendar *cal, iCalObject *obj, int flags);
-/* Destroy the above list with this method */
-void calendar_destroy_event_list (GList *l);
-
void calendar_notify (time_t, void *data);
END_GNOME_DECLS