[libgweather/ebassi/gtk4: 1/28] Ignore internal deprecations
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/ebassi/gtk4: 1/28] Ignore internal deprecations
- Date: Mon, 11 Oct 2021 14:26:19 +0000 (UTC)
commit 724a4a3456ddf53e46167e7270cce1b34ef903a3
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]