Blob Blame History Raw
From f6f42da8e0e5d4733ed2e703eb7000e2bea9879a Mon Sep 17 00:00:00 2001
From: David Shea <dshea@redhat.com>
Date: Mon, 27 Jun 2016 17:59:16 -0400
Subject: [PATCH 12/24] Ignore deprecation warnings

---
 src/cc-timezone-map.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/cc-timezone-map.c b/src/cc-timezone-map.c
index e0bf774..1e53eec 100644
--- a/src/cc-timezone-map.c
+++ b/src/cc-timezone-map.c
@@ -759,7 +759,9 @@ cc_timezone_map_realize (GtkWidget *widget)
 
   gdk_window_set_user_data (window, widget);
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   cursor = gdk_cursor_new (GDK_HAND2);
+G_GNUC_END_IGNORE_DEPRECATIONS
   gdk_window_set_cursor (window, cursor);
 
   gtk_widget_set_window (widget, window);
@@ -818,14 +820,20 @@ cc_timezone_map_draw (GtkWidget *widget,
 
   gtk_widget_get_allocation (widget, &alloc);
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   style = gtk_widget_get_style (widget);
+G_GNUC_END_IGNORE_DEPRECATIONS
 
   /* Check if insensitive */
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   if (gtk_widget_get_state (widget) == GTK_STATE_INSENSITIVE)
     alpha = 0.5;
+G_GNUC_END_IGNORE_DEPRECATIONS
 
   /* paint background */
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   gdk_cairo_set_source_color (cr, &style->bg[gtk_widget_get_state (widget)]);
+G_GNUC_END_IGNORE_DEPRECATIONS
   cairo_paint (cr);
   cairo_set_source (cr, priv->background);
   cairo_paint_with_alpha (cr, alpha);
-- 
2.5.5