aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-27 04:09:37 +0800
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-28 00:52:09 +0800
commit5bdfd49c15348d8d9ae3ca7f24ab942e052e3a3f (patch)
treeef9057003d7177ce3c56ec978c508436e46efc12 /src
parentc40737394bff5c27daea7e4ee08f240224475904 (diff)
downloadgsoc2013-empathy-5bdfd49c15348d8d9ae3ca7f24ab942e052e3a3f.tar
gsoc2013-empathy-5bdfd49c15348d8d9ae3ca7f24ab942e052e3a3f.tar.gz
gsoc2013-empathy-5bdfd49c15348d8d9ae3ca7f24ab942e052e3a3f.tar.bz2
gsoc2013-empathy-5bdfd49c15348d8d9ae3ca7f24ab942e052e3a3f.tar.lz
gsoc2013-empathy-5bdfd49c15348d8d9ae3ca7f24ab942e052e3a3f.tar.xz
gsoc2013-empathy-5bdfd49c15348d8d9ae3ca7f24ab942e052e3a3f.tar.zst
gsoc2013-empathy-5bdfd49c15348d8d9ae3ca7f24ab942e052e3a3f.zip
Don't need to set back if it is the same hashtable
This code was ugly, by removing the ref, unref and the set call, the code is much simpler. The other objects will still be notified of the changes.
Diffstat (limited to 'src')
-rw-r--r--src/empathy-map-view.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/empathy-map-view.c b/src/empathy-map-view.c
index 8c6dc54e6..17d73d67f 100644
--- a/src/empathy-map-view.c
+++ b/src/empathy-map-view.c
@@ -216,11 +216,7 @@ map_view_geocode_cb (GeoclueGeocode *geocode,
/* Don't change the accuracy as we used an address to get this position */
- /* Ref the location hash table as it will be unref'd in set_location,
- * and we are only updating it */
- g_hash_table_ref (location);
- empathy_contact_set_location (EMPATHY_CONTACT (userdata), location);
- g_hash_table_unref (location);
+ g_object_notify (userdata, "location");
}
#endif