[libgweather/ebassi/gtk4: 5/56] Ignore internal deprecations




commit 5fe85b2792eed5810899ee54d433a5a5ff35a29f
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Oct 5 17:35:41 2021 +0100

    Ignore internal deprecations
    
    We know we're using deprecated API.

 libgweather/gweather-timezone-menu.c | 4 ++++
 libgweather/test_weather.c           | 4 ++++
 2 files changed, 8 insertions(+)
---
diff --git a/libgweather/gweather-timezone-menu.c b/libgweather/gweather-timezone-menu.c
index c4559bba..c33e6d23 100644
--- a/libgweather/gweather-timezone-menu.c
+++ b/libgweather/gweather-timezone-menu.c
@@ -234,9 +234,13 @@ insert_locations (GtkTreeStore *store, GWeatherLocation *loc)
     if (gweather_location_get_level (loc) < GWEATHER_LOCATION_COUNTRY) {
        GWeatherLocation **children;
 
+        G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
        children = gweather_location_get_children (loc);
        for (i = 0; children[i]; i++)
            insert_locations (store, children[i]);
+
+        G_GNUC_END_IGNORE_DEPRECATIONS
     } else {
        GWeatherTimezone **zones;
        GtkTreeIter iter;
diff --git a/libgweather/test_weather.c b/libgweather/test_weather.c
index 289f9707..7773462f 100644
--- a/libgweather/test_weather.c
+++ b/libgweather/test_weather.c
@@ -19,6 +19,8 @@ find_loc_children (GWeatherLocation  *location,
     GWeatherLocation **children;
     guint i;
 
+    G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
     children = gweather_location_get_children (location);
     for (i = 0; children[i] != NULL; i++) {
         if (gweather_location_get_level (children[i]) == GWEATHER_LOCATION_WEATHER_STATION) {
@@ -35,6 +37,8 @@ find_loc_children (GWeatherLocation  *location,
         }
     }
 
+    G_GNUC_END_IGNORE_DEPRECATIONS
+
     return FALSE;
 }
 


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