[gnome-calendar/wip/pandusonu/week-view: 13/21] week-header: redraw the whole background on draw()



commit e474ac190263393dd472a090d797fafd8c987772
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Dec 8 16:21:08 2016 -0200

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

 src/views/gcal-week-header.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/views/gcal-week-header.c b/src/views/gcal-week-header.c
index af7dfbf..6ab3b7d 100644
--- a/src/views/gcal-week-header.c
+++ b/src/views/gcal-week-header.c
@@ -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++)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]