Minor fixes and comments review.

This commit is contained in:
Erick Pérez Castellanos
2012-12-01 15:28:53 -05:00
committed by Rene A. Viant Moran
parent a00ec9edc2
commit 1b0312f653
2 changed files with 5 additions and 11 deletions
+4 -10
View File
@@ -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
+1 -1
View File
@@ -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);