[gnome-calendar/ui-rewrite] build: remove calls to deprecated methods



commit f66a284d5790825fd83ad48ace9e35574b352f13
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Wed Sep 24 10:20:30 2014 -0400

    build: remove calls to deprecated methods

 src/gcal-month-view.c |    5 -----
 src/gcal-year-view.c  |    5 -----
 2 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index bb8846c..97adfd9 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -559,13 +559,8 @@ gcal_month_view_draw (GtkWidget *widget,
 
   pango_layout_set_font_description (layout, font);
 
-  gtk_style_context_save (context);
-  gtk_style_context_add_region (context, "header", 0);
-
   gtk_style_context_get_padding (context, state, &header_padding);
 
-  gtk_style_context_restore (context);
-
   /* calculations */
   days = priv->days_delay + icaltime_days_in_month (priv->date->month,
                                                     priv->date->year);
diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
index 52716d4..87aa406 100644
--- a/src/gcal-year-view.c
+++ b/src/gcal-year-view.c
@@ -755,13 +755,8 @@ gcal_year_view_draw_grid (GcalYearView *view,
 
   pango_layout_set_font_description (layout, font);
 
-  gtk_style_context_save (context);
-  gtk_style_context_add_region (context, "header", 0);
-
   gtk_style_context_get_padding (context, state, &header_padding);
 
-  gtk_style_context_restore (context);
-
   /* drawing new-event mark */
   if (priv->start_mark_cell != -1 &&
       priv->end_mark_cell != -1)


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