diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-07-29 09:01:08 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-07-29 09:33:01 +0800 |
commit | 41569bb778e228d4f5a04cb1e15bfa5b49bb044b (patch) | |
tree | 3cd61379dbfcca4a9998800bbe9680b87fcb9692 /calendar/gui/e-day-view-time-item.c | |
parent | 7bebc31932e74db65e3720f32ab2f6664fd9e58b (diff) | |
download | gsoc2013-evolution-41569bb778e228d4f5a04cb1e15bfa5b49bb044b.tar.gz gsoc2013-evolution-41569bb778e228d4f5a04cb1e15bfa5b49bb044b.tar.zst gsoc2013-evolution-41569bb778e228d4f5a04cb1e15bfa5b49bb044b.zip |
Trimming redundancy.
Diffstat (limited to 'calendar/gui/e-day-view-time-item.c')
-rw-r--r-- | calendar/gui/e-day-view-time-item.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/calendar/gui/e-day-view-time-item.c b/calendar/gui/e-day-view-time-item.c index 2c17e4e7d1..6d5f80062a 100644 --- a/calendar/gui/e-day-view-time-item.c +++ b/calendar/gui/e-day-view-time-item.c @@ -279,6 +279,7 @@ edvti_draw_zone (GnomeCanvasItem *canvas_item, { EDayView *day_view; EDayViewTimeItem *dvtmitem; + ECalModel *model; GtkStyle *style; const gchar *suffix; gchar buffer[64], *midnight_day = NULL, *midnight_month = NULL; @@ -302,6 +303,8 @@ edvti_draw_zone (GnomeCanvasItem *canvas_item, day_view = dvtmitem->day_view; g_return_if_fail (day_view != NULL); + model = e_calendar_view_get_model (E_CALENDAR_VIEW (day_view)); + style = gtk_widget_get_style (GTK_WIDGET (day_view)); small_font_desc = style->font_desc; @@ -485,7 +488,7 @@ edvti_draw_zone (GnomeCanvasItem *canvas_item, strcpy (buffer, midnight_day); strcat (buffer, " "); strcat (buffer, midnight_month); - } else if (e_calendar_view_get_use_24_hour_format (E_CALENDAR_VIEW (day_view))) { + } else if (e_cal_model_get_use_24_hour_format (model)) { g_snprintf (buffer, sizeof (buffer), "%i:%02i", display_hour, minute); } else { @@ -565,7 +568,7 @@ edvti_draw_zone (GnomeCanvasItem *canvas_item, if (show_midnight_date) strcpy (buffer, midnight_month); else if (minute == 0 - && !e_calendar_view_get_use_24_hour_format (E_CALENDAR_VIEW (day_view))) { + && !e_cal_model_get_use_24_hour_format (model)) { strcpy (buffer, suffix); } else { g_snprintf (buffer, sizeof (buffer), |