summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriain <iain@sleepfive.com>2012-02-24 12:03:13 +0000
committeriain <iain@sleepfive.com>2012-02-24 12:03:13 +0000
commit1269cfe54bdfb6ffefa7e1f26150ae755de163b7 (patch)
tree3cd09cc62e3fc9f5da7b6fcaa592c40134608167
parent754ac3bdf53d7fc3f9383f0e009c71f2b2e26381 (diff)
The new glib 2.32 deprecated GValueArray, use the replacements instead
patch from Andreas Moog <amoog@ubuntu.com> Closes: https://bugs.freedesktop.org/show_bug.cgi?id=45909
-rw-r--r--gypsy/gypsy-satellite.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gypsy/gypsy-satellite.c b/gypsy/gypsy-satellite.c
index b6b7399..f9ce028 100644
--- a/gypsy/gypsy-satellite.c
+++ b/gypsy/gypsy-satellite.c
@@ -191,15 +191,15 @@ make_satellite_array (GPtrArray *sats)
for (i = 0; i < sats->len; i++) {
GypsySatelliteDetails *details;
- GValueArray *vals = sats->pdata[i];
+ GArray *vals = sats->pdata[i];
details = g_slice_new (GypsySatelliteDetails);
- details->satellite_id = g_value_get_uint (g_value_array_get_nth (vals, 0));
- details->in_use = g_value_get_boolean (g_value_array_get_nth (vals, 1));
- details->elevation = g_value_get_uint (g_value_array_get_nth (vals, 2));
- details->azimuth = g_value_get_uint (g_value_array_get_nth (vals, 3));
- details->snr = g_value_get_uint (g_value_array_get_nth (vals, 4));
+ details->satellite_id = g_array_index(vals,guint,0);
+ details->in_use = g_array_index(vals,gboolean,1);
+ details->elevation = g_array_index(vals,guint,2);
+ details->azimuth = g_array_index(vals,guint,3);
+ details->snr = g_array_index(vals,guint,4);
g_ptr_array_add (satellites, details);
}