aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-12 12:19:05 +0800
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-28 00:52:06 +0800
commit7b8f1908a67e9adc40674ee2c6b0fd00c658c606 (patch)
treef2da1a4b89b7135cf84b1587a83a67151fde4a10
parent28107b1f3fc85df86d1325791804b27e9059d1d7 (diff)
downloadgsoc2013-empathy-7b8f1908a67e9adc40674ee2c6b0fd00c658c606.tar
gsoc2013-empathy-7b8f1908a67e9adc40674ee2c6b0fd00c658c606.tar.gz
gsoc2013-empathy-7b8f1908a67e9adc40674ee2c6b0fd00c658c606.tar.bz2
gsoc2013-empathy-7b8f1908a67e9adc40674ee2c6b0fd00c658c606.tar.lz
gsoc2013-empathy-7b8f1908a67e9adc40674ee2c6b0fd00c658c606.tar.xz
gsoc2013-empathy-7b8f1908a67e9adc40674ee2c6b0fd00c658c606.tar.zst
gsoc2013-empathy-7b8f1908a67e9adc40674ee2c6b0fd00c658c606.zip
Remove dead code and update function name
-rw-r--r--src/empathy-map-view.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/empathy-map-view.c b/src/empathy-map-view.c
index 6f89d7492..977956607 100644
--- a/src/empathy-map-view.c
+++ b/src/empathy-map-view.c
@@ -214,8 +214,8 @@ get_dup_string (GHashTable *location, gchar *key)
}
static void
-map_view_marker_update (ChamplainMarker *marker,
- EmpathyContact *contact)
+map_view_marker_update_position (ChamplainMarker *marker,
+ EmpathyContact *contact)
{
gdouble lon, lat;
GValue *value;
@@ -279,7 +279,7 @@ map_view_contact_location_notify (GObject *gobject,
{
ChamplainMarker *marker = CHAMPLAIN_MARKER (user_data);
EmpathyContact *contact = EMPATHY_CONTACT (gobject);
- map_view_marker_update (marker, contact);
+ map_view_marker_update_position (marker, contact);
}
@@ -296,7 +296,6 @@ map_view_contacts_foreach (GtkTreeModel *model,
GHashTable *location;
GValue *value;
GdkPixbuf *avatar;
- guint handle_id;
const gchar *name;
gtk_tree_model_get (model, iter, EMPATHY_CONTACT_LIST_STORE_COL_CONTACT,
@@ -306,13 +305,6 @@ map_view_contacts_foreach (GtkTreeModel *model,
marker = champlain_marker_new ();
- handle_id = g_signal_connect (contact, "notify::location",
- G_CALLBACK (map_view_contact_location_notify), marker);
- g_object_set_data (G_OBJECT (contact), "map-view-handle",
- GINT_TO_POINTER (handle_id));
-
- clutter_actor_set_anchor_point (marker, 16, 16);
-
avatar = empathy_pixbuf_avatar_from_contact_scaled (contact, 32, 32);
if (avatar)
{
@@ -326,10 +318,13 @@ map_view_contacts_foreach (GtkTreeModel *model,
name = empathy_contact_get_name (contact);
champlain_marker_set_text (CHAMPLAIN_MARKER (marker), name);
- map_view_marker_update (CHAMPLAIN_MARKER (marker), contact);
+ map_view_marker_update_position (CHAMPLAIN_MARKER (marker), contact);
clutter_container_add (CLUTTER_CONTAINER (window->layer), marker, NULL);
+ g_signal_connect (contact, "notify::location",
+ G_CALLBACK (map_view_contact_location_notify), marker);
+
g_object_unref (contact);
return FALSE;
}