diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c index 4b9d606a..4a2f73c2 100644 --- a/src/gcal-month-view.c +++ b/src/gcal-month-view.c @@ -911,7 +911,7 @@ gcal_month_view_draw_header (GcalMonthView *view, gtk_style_context_restore (context); /* Here translators should put the widgest letter in their alphabet, this - * taken to make it align with week-view header */ + * taken to make it align with week-view header, which is the larger for now */ pango_layout_set_text (layout, _("WWW 99 - WWW 99"), -1); pango_cairo_update_layout (cr, layout); pango_layout_get_pixel_size (layout, &layout_width, &layout_height); @@ -1329,15 +1329,9 @@ gcal_month_view_contains (GcalView *view, if (priv->date == NULL) return FALSE; - if (priv->date->month == date->month && - priv->date->year == date->year) - { - return TRUE; - } - else - { - return FALSE; - } + + return (priv->date->month == date->month && + priv->date->year == date->year); } static void diff --git a/src/gcal-week-view.c b/src/gcal-week-view.c index 15c1ef9b..97ee526c 100644 --- a/src/gcal-week-view.c +++ b/src/gcal-week-view.c @@ -1076,7 +1076,7 @@ gcal_week_view_draw_header (GcalWeekView *view, gtk_style_context_get_font (context, state)); /* Here translators should put the widgest letter in their alphabet, this - * taken to make it align with week-view header */ + * taken to make it align with week-view header, which is the larger for now */ pango_layout_set_text (layout, _("WWW 99 - WWW 99"), -1); pango_cairo_update_layout (cr, layout); pango_layout_get_pixel_size (layout, &layout_width, &layout_height);