aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-10-03 07:59:35 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-10-03 07:59:35 +0800
commit96439bc6fffe21b8359bd825aa89fc586d36380a (patch)
treedc5a71f7b8cfbe15af6721f9440ef4c6c75f57a4 /calendar/gui/gnome-cal.c
parente9a632c3c15bac86946af5f6d75a79517b4c6a07 (diff)
downloadgsoc2013-evolution-96439bc6fffe21b8359bd825aa89fc586d36380a.tar
gsoc2013-evolution-96439bc6fffe21b8359bd825aa89fc586d36380a.tar.gz
gsoc2013-evolution-96439bc6fffe21b8359bd825aa89fc586d36380a.tar.bz2
gsoc2013-evolution-96439bc6fffe21b8359bd825aa89fc586d36380a.tar.lz
gsoc2013-evolution-96439bc6fffe21b8359bd825aa89fc586d36380a.tar.xz
gsoc2013-evolution-96439bc6fffe21b8359bd825aa89fc586d36380a.tar.zst
gsoc2013-evolution-96439bc6fffe21b8359bd825aa89fc586d36380a.zip
Changed name from time_start_of_day() to be consistent with the other
1998-10-02 Federico Mena Quintero <federico@nuclecu.unam.mx> * timeutil.c (time_day_begin): Changed name from time_start_of_day() to be consistent with the other begin/end functions. (time_day_end): Likewise. * calobj.c (ical_object_get_first_weekday): New public function to get the first toggled day in a weekday mask. Since we do not support multiple weekdays in a monthly-by-pos rule, we just fetch the first toggled one. (ical_object_generate_events): Added a missing break statement. * timeutil.c (time_month_end): Made it consistent with the rest of the time begin/end functions -- now it returns the first second of the *next* month. (time_week_end): Actually implemented this function. It will be used when the week view is rewritten. * calobj.c (time_in_range): Fix off-by-one in the comparison of the time against the end time. * gncal-full-day.c (expand_space): Fixed bug where the columns not were being expanded due to a missing "slot + j". svn path=/trunk/; revision=425
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index fbbd5c2c19..979c6df667 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -94,7 +94,7 @@ gnome_calendar_goto (GnomeCalendar *gcal, time_t new_time)
g_return_if_fail (new_time != -1);
- new_time = time_start_of_day (new_time);
+ new_time = time_day_begin (new_time);
if (current == gcal->day_view)
gncal_day_panel_set (GNCAL_DAY_PANEL (gcal->day_view), new_time);
@@ -192,7 +192,7 @@ gnome_calendar_new (char *title)
gtk_window_set_title(GTK_WINDOW(retval), title);
- gcal->current_display = time_start_of_day (time (NULL));
+ gcal->current_display = time_day_begin (time (NULL));
gcal->cal = calendar_new (title);
setup_widgets (gcal);
return retval;
@@ -385,7 +385,7 @@ mark_gtk_calendar_day (iCalObject *obj, time_t start, time_t end, void *c)
time_t t, day_end;
tm_s = *localtime (&start);
- day_end = time_end_of_day (end);
+ day_end = time_day_end (end);
for (t = start; t <= day_end; t += 60*60*24){
time_t new = mktime (&tm_s);