libtimezonemap/0012-Ignore-deprecation-warnings.patch
David Shea 51a02b6c80 Update the map data and improve behavior:
- Render the map directly from SVG (#1335158)
- Fix memory leaks in tz.c
- Fix an invalid memory access
- Do not modify TZ in the process environment
- Move all data files to /usr/share/libtimezonemap from .../libtimezonemap/ui
- Add extra city data so all timezone offsets are clickable
- Move Venezuela from -04:30 to -04:00
- Fix the conversion of points just west of 180 longitude
- Remove the out-of-date Olson map data
- Update the "backward" file
- Improve the location selected when setting the timezone by name (#1322648)
- Remove an extra line in the +10:00 layer
- Move Chile back an hour
2016-06-29 14:56:01 -04:00

48 lines
1.4 KiB
Diff

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