]> git.0d.be Git - empathy.git/commitdiff
use tp_asv_set_double
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 8 Apr 2010 13:18:43 +0000 (15:18 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 8 Apr 2010 13:51:51 +0000 (15:51 +0200)
libempathy/empathy-contact.c

index c2bdc6a7a8b649cdf7c48ca3c8863735728e367d..ef47fb3803d2bb7ac8c94a50d026a3bf7f90373e 100644 (file)
@@ -1267,8 +1267,8 @@ geocode_cb (GeoclueGeocode *geocode,
   if (fields & GEOCLUE_POSITION_FIELDS_ALTITUDE &&
       g_hash_table_lookup (new_location, EMPATHY_LOCATION_LAT) == NULL)
     {
-      g_hash_table_insert (new_location, g_strdup (EMPATHY_LOCATION_ALT),
-          tp_g_value_slice_new_double (altitude));
+      tp_asv_set_double (new_location, g_strdup (EMPATHY_LOCATION_ALT),
+          altitude);
       DEBUG ("\t - Altitude: %f", altitude);
     }