Get month names and weekdays from locale.

Added modification to extract month names from locale instead
of localization files.
This commit is contained in:
Erick Pérez Castellanos
2012-12-01 15:28:53 -05:00
committed by Rene A. Viant Moran
parent 1062d3e435
commit cc14e10d36
4 changed files with 52 additions and 17 deletions
+4 -1
View File
@@ -1122,10 +1122,13 @@ gcal_month_view_draw_grid (GcalMonthView *view,
pango_font_description_set_weight (bold_font, PANGO_WEIGHT_SEMIBOLD);
for (i = 0; i < 7; i++)
{
gchar *weekday;
weekday = gcal_get_weekday (i);
cairo_set_source_rgb (cr, color.red, color.green, color.blue);
pango_layout_set_font_description (layout, bold_font);
pango_layout_set_text (layout, gcal_get_weekday (i), -1);
pango_layout_set_text (layout, weekday, -1);
pango_cairo_update_layout (cr, layout);
pango_layout_get_pixel_size (layout, &font_width, &font_height);