aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-10-17 06:19:12 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-10-17 06:19:12 +0800
commit66701930a9995d48335f8cc28796bd36680d0e89 (patch)
tree3bbfd5b619c65e1360bdeb9e4b9e7144e516068b /calendar/gui/calendar.c
parent4627acaf00c285354a823d612ca1c365f8c8e79d (diff)
downloadgsoc2013-evolution-66701930a9995d48335f8cc28796bd36680d0e89.tar
gsoc2013-evolution-66701930a9995d48335f8cc28796bd36680d0e89.tar.gz
gsoc2013-evolution-66701930a9995d48335f8cc28796bd36680d0e89.tar.bz2
gsoc2013-evolution-66701930a9995d48335f8cc28796bd36680d0e89.tar.lz
gsoc2013-evolution-66701930a9995d48335f8cc28796bd36680d0e89.tar.xz
gsoc2013-evolution-66701930a9995d48335f8cc28796bd36680d0e89.tar.zst
gsoc2013-evolution-66701930a9995d48335f8cc28796bd36680d0e89.zip
Changed a lot of stuff not to use the layout code -- the month view's days
1998-10-16 Federico Mena Quintero <federico@nuclecu.unam.mx> * month-view.c: Changed a lot of stuff not to use the layout code -- the month view's days are too small to display layout usefully. Now they display a little list of the events in each day. We also have a popup menu for the days in the month view. * calendar.c (calendar_get_objects_in_range): Reverse the list so that it is returned in increasing order. * eventedit.c (event_editor_new_whole_day): New public function to create an event for the complete span of day_begin to day_end. * year-view.c (new_appointment): Use event_editor_new_whole_day(). * year-view.c (yv_popup_menu): Mark strings for i18n. svn path=/trunk/; revision=452
Diffstat (limited to 'calendar/gui/calendar.c')
-rw-r--r--calendar/gui/calendar.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/calendar/gui/calendar.c b/calendar/gui/calendar.c
index bacd7c9291..963f91be06 100644
--- a/calendar/gui/calendar.c
+++ b/calendar/gui/calendar.c
@@ -201,6 +201,11 @@ calendar_get_objects_in_range (GList *objects, time_t start, time_t end, GCompar
}
}
+ /* Put the list in increasing order if no sort function was specified */
+
+ if (!sort_func)
+ new_events = g_list_reverse (new_events);
+
return new_events;
}