[gnome-calendar] year-view: wrap add_class in save/restore block



commit d32b9435f22fdafe451b26c0d165a94d5060dcd6
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Fri Jan 30 12:40:22 2015 -0500

    year-view: wrap add_class in save/restore block

 src/gcal-year-view.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
index 8a243ab..4efc04d 100644
--- a/src/gcal-year-view.c
+++ b/src/gcal-year-view.c
@@ -640,12 +640,13 @@ draw_month_grid (GcalYearView *year_view,
         }
       else if (column == sunday_idx)
         {
+          gtk_style_context_save (context);
           gtk_style_context_add_class (context, "sunday");
           gtk_render_layout (context, cr,
                              box_side * (column + 0.5 + priv->k) + x + sw * box_padding_start - priv->k * 
layout_width,
                              box_side * (row + 1) + y + box_padding_top,
                              layout);
-          gtk_style_context_remove_class (context, "sunday");
+          gtk_style_context_restore (context);
         }
       else
         {


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