aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view-main-item.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/e-week-view-main-item.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/e-week-view-main-item.c')
-rw-r--r--calendar/gui/e-week-view-main-item.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/calendar/gui/e-week-view-main-item.c b/calendar/gui/e-week-view-main-item.c
index 1d7203acb2..85bcc0224a 100644
--- a/calendar/gui/e-week-view-main-item.c
+++ b/calendar/gui/e-week-view-main-item.c
@@ -224,8 +224,8 @@ e_week_view_main_item_draw_day (EWeekViewMainItem *wvmitem,
g_return_if_fail (gc != NULL);
- month = g_date_month (date);
- day_of_month = g_date_day (date);
+ month = g_date_get_month (date);
+ day_of_month = g_date_get_day (date);
line_y = y + E_WEEK_VIEW_DATE_T_PAD +
PANGO_PIXELS (pango_font_metrics_get_ascent (font_metrics)) +
PANGO_PIXELS (pango_font_metrics_get_descent (font_metrics)) +
@@ -341,9 +341,9 @@ e_week_view_main_item_draw_day (EWeekViewMainItem *wvmitem,
/* Check if we are drawing today */
tt = icaltime_from_timet_with_zone (time (NULL), FALSE,
e_calendar_view_get_timezone (E_CALENDAR_VIEW (week_view)));
- if (g_date_year (date) == tt.year
- && g_date_month (date) == tt.month
- && g_date_day (date) == tt.day) {
+ if (g_date_get_year (date) == tt.year
+ && g_date_get_month (date) == tt.month
+ && g_date_get_day (date) == tt.day) {
gdk_gc_set_foreground (gc, &week_view->colors[E_WEEK_VIEW_COLOR_TODAY]);
today = TRUE;
}
@@ -428,8 +428,8 @@ e_week_view_main_item_draw_day (EWeekViewMainItem *wvmitem,
g_return_if_fail (gc != NULL);
- month = g_date_month (date);
- day_of_month = g_date_day (date);
+ month = g_date_get_month (date);
+ day_of_month = g_date_get_day (date);
line_y = y + E_WEEK_VIEW_DATE_T_PAD +
PANGO_PIXELS (pango_font_metrics_get_ascent (font_metrics)) +
PANGO_PIXELS (pango_font_metrics_get_descent (font_metrics)) +
@@ -556,9 +556,9 @@ e_week_view_main_item_draw_day (EWeekViewMainItem *wvmitem,
/* Check if we are drawing today */
tt = icaltime_from_timet_with_zone (time (NULL), FALSE,
e_calendar_view_get_timezone (E_CALENDAR_VIEW (week_view)));
- if (g_date_year (date) == tt.year
- && g_date_month (date) == tt.month
- && g_date_day (date) == tt.day) {
+ if (g_date_get_year (date) == tt.year
+ && g_date_get_month (date) == tt.month
+ && g_date_get_day (date) == tt.day) {
gdk_cairo_set_source_color (cr, &week_view->colors[E_WEEK_VIEW_COLOR_TODAY]);
today = TRUE;
}