aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2006-12-04 23:41:30 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2006-12-04 23:41:30 +0800
commit79f8ecbd0d28dfb399e2275a3a18d8ed96415232 (patch)
treee6275d5b92d89797b43bf24c7abfa07dac9f0aa4 /calendar/gui/gnome-cal.c
parentf2db40b45db31c41660bb692bc91f90c49c6939e (diff)
downloadgsoc2013-evolution-79f8ecbd0d28dfb399e2275a3a18d8ed96415232.tar
gsoc2013-evolution-79f8ecbd0d28dfb399e2275a3a18d8ed96415232.tar.gz
gsoc2013-evolution-79f8ecbd0d28dfb399e2275a3a18d8ed96415232.tar.bz2
gsoc2013-evolution-79f8ecbd0d28dfb399e2275a3a18d8ed96415232.tar.lz
gsoc2013-evolution-79f8ecbd0d28dfb399e2275a3a18d8ed96415232.tar.xz
gsoc2013-evolution-79f8ecbd0d28dfb399e2275a3a18d8ed96415232.tar.zst
gsoc2013-evolution-79f8ecbd0d28dfb399e2275a3a18d8ed96415232.zip
Fixes bug #357970
2006-12-04 Matthew Barnes <mbarnes@redhat.com> Fixes bug #357970 * gui/e-alarm-list.c: * gui/e-calendar-table.c: * gui/e-day-view.c: * gui/e-meeting-attendee.c: * gui/e-meeting-store.c: * gui/e-meeting-time-sel-item.c: * gui/e-meeting-time-sel.c: * gui/e-week-view-main-item.c: * gui/e-week-view.c: * gui/gnome-cal.c: * gui/goto.c: * gui/dialogs/event-page.c: * gui/dialogs/task-page.c: Don't call deprecated GLib / GDK functions. svn path=/trunk/; revision=33045
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 5b80084fc2..c400cc1ec2 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -604,7 +604,7 @@ get_times_for_views (GnomeCalendar *gcal, GnomeCalendarViewType view_type, time_
week start day. */
/* Get the weekday corresponding to start_time, 0 (Sun) to 6 (Sat). */
- weekday = g_date_weekday (&date) % 7;
+ weekday = g_date_get_weekday (&date) % 7;
/* Find the first working day in the week, 0 (Sun) to 6 (Sat). */
first_day = (E_DAY_VIEW (priv->views[view_type])->week_start_day + 1) % 7;
@@ -641,9 +641,9 @@ get_times_for_views (GnomeCalendar *gcal, GnomeCalendarViewType view_type, time_
g_date_subtract_days (&date, offset);
}
- tt.year = g_date_year (&date);
- tt.month = g_date_month (&date);
- tt.day = g_date_day (&date);
+ tt.year = g_date_get_year (&date);
+ tt.month = g_date_get_month (&date);
+ tt.day = g_date_get_day (&date);
*start_time = icaltime_as_timet_with_zone (tt, priv->zone);
*end_time = time_add_day_with_zone (*start_time, days_shown, priv->zone);
@@ -1342,17 +1342,17 @@ update_adjustment (GnomeCalendar *gcal, GtkAdjustment *adjustment, EWeekView *we
g_date_add_days (&date, week_offset * 7);
/* Convert the old & new first days shown to julian values. */
- old_first_day_julian = g_date_julian (&week_view->first_day_shown);
- new_first_day_julian = g_date_julian (&date);
+ old_first_day_julian = g_date_get_julian (&week_view->first_day_shown);
+ new_first_day_julian = g_date_get_julian (&date);
/* If we are already showing the date, just return. */
if (old_first_day_julian == new_first_day_julian)
return;
/* Convert it to a time_t. */
- start_tt.year = g_date_year (&date);
- start_tt.month = g_date_month (&date);
- start_tt.day = g_date_day (&date);
+ start_tt.year = g_date_get_year (&date);
+ start_tt.month = g_date_get_month (&date);
+ start_tt.day = g_date_get_day (&date);
lower = icaltime_as_timet_with_zone (start_tt, gcal->priv->zone);
@@ -3300,20 +3300,20 @@ gnome_calendar_on_date_navigator_selection_changed (ECalendarItem *calitem, Gnom
&& !g_date_compare (&end_date, &new_end_date))
return;
- new_days_shown = g_date_julian (&new_end_date) - g_date_julian (&new_start_date) + 1;
+ new_days_shown = g_date_get_julian (&new_end_date) - g_date_get_julian (&new_start_date) + 1;
/* If a complete week is selected we show the Week view.
Note that if weekends are compressed and the week start day is set
to Sunday we don't actually show complete weeks in the Week view,
so this may need tweaking. */
- if (g_date_weekday (&new_start_date) % 7 == priv->week_start)
+ if (g_date_get_weekday (&new_start_date) % 7 == priv->week_start)
starts_on_week_start_day = TRUE;
/* Update selection to be in the new time range */
tt = icaltime_null_time ();
- tt.year = g_date_year (&new_start_date);
- tt.month = g_date_month (&new_start_date);
- tt.day = g_date_day (&new_start_date);
+ tt.year = g_date_get_year (&new_start_date);
+ tt.month = g_date_get_month (&new_start_date);
+ tt.day = g_date_get_day (&new_start_date);
new_time = icaltime_as_timet_with_zone (tt, priv->zone);
/* Switch views as appropriate, and change the number of days or weeks