diff options
author | Federico Mena Quintero <federico@nuclecu.unam.mx> | 1998-04-01 12:51:04 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-01 12:51:04 +0800 |
commit | 26c91c237c336ddcd05e2c3179a159b18e6f1cfb (patch) | |
tree | ad2e5ffb51091ee493370b2d51bc6e1be5362ba0 /calendar/calendar.c | |
parent | 8a5a6f0d159014504eef07d1a4439885b5552280 (diff) | |
download | gsoc2013-evolution-26c91c237c336ddcd05e2c3179a159b18e6f1cfb.tar gsoc2013-evolution-26c91c237c336ddcd05e2c3179a159b18e6f1cfb.tar.gz gsoc2013-evolution-26c91c237c336ddcd05e2c3179a159b18e6f1cfb.tar.bz2 gsoc2013-evolution-26c91c237c336ddcd05e2c3179a159b18e6f1cfb.tar.lz gsoc2013-evolution-26c91c237c336ddcd05e2c3179a159b18e6f1cfb.tar.xz gsoc2013-evolution-26c91c237c336ddcd05e2c3179a159b18e6f1cfb.tar.zst gsoc2013-evolution-26c91c237c336ddcd05e2c3179a159b18e6f1cfb.zip |
Removed #include "gtkcalendar.h", because it now comes from libgnomeui.
1998-03-31 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal.c: Removed #include "gtkcalendar.h", because it now comes
from libgnomeui.
* Makefile.am (gncal_SOURCES): Added new source files to the rules.
svn path=/trunk/; revision=84
Diffstat (limited to 'calendar/calendar.c')
-rw-r--r-- | calendar/calendar.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/calendar/calendar.c b/calendar/calendar.c index 8725d96081..b7cf72d47d 100644 --- a/calendar/calendar.c +++ b/calendar/calendar.c @@ -11,7 +11,7 @@ * Federico Mena (federico@gimp.org) * */ -#include "calobj.h" + #include "calendar.h" Calendar * @@ -68,13 +68,13 @@ calendar_remove_object (Calendar *cal, iCalObject *obj) void calendar_destroy (Calendar *cal) { - g_list_foreach (cal->events, ical_object_destroy, NULL); + g_list_foreach (cal->events, (GFunc) ical_object_destroy, NULL); g_list_free (cal->events); - g_list_foreach (cal->todo, ical_object_destroy, NULL); + g_list_foreach (cal->todo, (GFunc) ical_object_destroy, NULL); g_list_free (cal->todo); - g_list_foreach (cal->journal, ical_object_destroy, NULL); + g_list_foreach (cal->journal, (GFunc) ical_object_destroy, NULL); g_list_free (cal->journal); if (cal->title) @@ -96,21 +96,23 @@ calendar_get_objects_in_range (GList *objects, time_t start, time_t end) if ((start <= object->dtstart) && (end >= object->dtend)) new_events = g_list_prepend (new_events, object); } + + return new_events; } GList * calendar_get_events_in_range (Calendar *cal, time_t start, time_t end) { - calendar_get_objects_in_range (cal->events, start, end); + return calendar_get_objects_in_range (cal->events, start, end); } GList * calendar_get_todo_in_range (Calendar *cal, time_t start, time_t end) { - calendar_get_objects_in_range (cal->todo, start, end); + return calendar_get_objects_in_range (cal->todo, start, end); } GList * calendar_get_journal_in_range (Calendar *cal, time_t start, time_t end) { - calendar_get_objects_in_range (cal->journal, start, end); + return calendar_get_objects_in_range (cal->journal, start, end); } |