diff options
author | iain <iain@sleepfive.com> | 2012-02-24 12:15:52 +0000 |
---|---|---|
committer | iain <iain@sleepfive.com> | 2012-02-24 12:15:52 +0000 |
commit | 91754f55dde35a054cd34bcee34f3dd1c06e85c3 (patch) | |
tree | 2cf302f166f7b4e867975fd6dc0ea1b7061bab32 | |
parent | 1269cfe54bdfb6ffefa7e1f26150ae755de163b7 (diff) |
Undo the previous patch
-rw-r--r-- | gypsy/gypsy-satellite.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gypsy/gypsy-satellite.c b/gypsy/gypsy-satellite.c index f9ce028..b6b7399 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; - GArray *vals = sats->pdata[i]; + GValueArray *vals = sats->pdata[i]; details = g_slice_new (GypsySatelliteDetails); - 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); + 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)); g_ptr_array_add (satellites, details); } |