Minor fixes and comments review.
This commit is contained in:
committed by
Rene A. Viant Moran
parent
a00ec9edc2
commit
1b0312f653
+4
-10
@@ -911,7 +911,7 @@ gcal_month_view_draw_header (GcalMonthView *view,
|
|||||||
gtk_style_context_restore (context);
|
gtk_style_context_restore (context);
|
||||||
|
|
||||||
/* Here translators should put the widgest letter in their alphabet, this
|
/* 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_layout_set_text (layout, _("WWW 99 - WWW 99"), -1);
|
||||||
pango_cairo_update_layout (cr, layout);
|
pango_cairo_update_layout (cr, layout);
|
||||||
pango_layout_get_pixel_size (layout, &layout_width, &layout_height);
|
pango_layout_get_pixel_size (layout, &layout_width, &layout_height);
|
||||||
@@ -1329,15 +1329,9 @@ gcal_month_view_contains (GcalView *view,
|
|||||||
|
|
||||||
if (priv->date == NULL)
|
if (priv->date == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
if (priv->date->month == date->month &&
|
|
||||||
priv->date->year == date->year)
|
return (priv->date->month == date->month &&
|
||||||
{
|
priv->date->year == date->year);
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
@@ -1076,7 +1076,7 @@ gcal_week_view_draw_header (GcalWeekView *view,
|
|||||||
gtk_style_context_get_font (context, state));
|
gtk_style_context_get_font (context, state));
|
||||||
|
|
||||||
/* Here translators should put the widgest letter in their alphabet, this
|
/* 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_layout_set_text (layout, _("WWW 99 - WWW 99"), -1);
|
||||||
pango_cairo_update_layout (cr, layout);
|
pango_cairo_update_layout (cr, layout);
|
||||||
pango_layout_get_pixel_size (layout, &layout_width, &layout_height);
|
pango_layout_get_pixel_size (layout, &layout_width, &layout_height);
|
||||||
|
|||||||
Reference in New Issue
Block a user