week-header: redraw the whole background on draw()

This commit is contained in:
Georges Basile Stavracas Neto
2016-12-08 16:21:08 -02:00
parent 6e3b4a5f04
commit e474ac1902
+8
View File
@@ -1029,6 +1029,14 @@ gcal_week_header_draw (GtkWidget *widget,
cell_width = (alloc.width - start_x) / 7.0;
/* Start by redrawing the entire background */
gtk_render_background (context,
cr,
alloc.x,
alloc.y,
alloc.width,
alloc.height);
pango_layout_get_pixel_size (layout, NULL, &font_height);
for (i = 0; i < 7; i++)