diff options
author | Pierre-Luc Beaudoin <pierre-luc@pierlux.com> | 2009-01-01 05:17:49 +0800 |
---|---|---|
committer | Pierre-Luc Beaudoin <pierre-luc@pierlux.com> | 2009-05-28 00:52:04 +0800 |
commit | f84dfa1e04ea5283d09ca03dd9416a93f005b5fb (patch) | |
tree | 35d053c83b607e0cc64c485d2f215fc561577a17 /src/empathy-map-view.c | |
parent | afebe6eb1adc4dac3ac1f0b4610096fbceb627b4 (diff) | |
download | gsoc2013-empathy-f84dfa1e04ea5283d09ca03dd9416a93f005b5fb.tar gsoc2013-empathy-f84dfa1e04ea5283d09ca03dd9416a93f005b5fb.tar.gz gsoc2013-empathy-f84dfa1e04ea5283d09ca03dd9416a93f005b5fb.tar.bz2 gsoc2013-empathy-f84dfa1e04ea5283d09ca03dd9416a93f005b5fb.tar.lz gsoc2013-empathy-f84dfa1e04ea5283d09ca03dd9416a93f005b5fb.tar.xz gsoc2013-empathy-f84dfa1e04ea5283d09ca03dd9416a93f005b5fb.tar.zst gsoc2013-empathy-f84dfa1e04ea5283d09ca03dd9416a93f005b5fb.zip |
Show contacts without an avatar
Diffstat (limited to 'src/empathy-map-view.c')
-rw-r--r-- | src/empathy-map-view.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/empathy-map-view.c b/src/empathy-map-view.c index 6ec67f953..a0ca3f5b5 100644 --- a/src/empathy-map-view.c +++ b/src/empathy-map-view.c @@ -337,23 +337,22 @@ map_view_contacts_foreach (GtkTreeModel *model, g_object_set_data (G_OBJECT (contact), "map-view-handle", GINT_TO_POINTER (handle_id)); - texture = clutter_texture_new (); - avatar = empathy_pixbuf_avatar_from_contact_scaled (contact, 32, 32); - - if (!avatar) - goto cleanup; - - gtk_clutter_texture_set_from_pixbuf (CLUTTER_TEXTURE (texture), avatar); - clutter_actor_set_position (CLUTTER_ACTOR (texture), 5, 5); - clutter_container_add (CLUTTER_CONTAINER (marker), texture, NULL); - clutter_actor_set_anchor_point (marker, 25, 50); + clutter_actor_set_anchor_point (marker, 16, 16); + + avatar = empathy_pixbuf_avatar_from_contact_scaled (contact, 32, 32); + if (avatar) + { + texture = clutter_texture_new (); + gtk_clutter_texture_set_from_pixbuf (CLUTTER_TEXTURE (texture), avatar); + clutter_actor_set_position (CLUTTER_ACTOR (texture), 5, 5); + clutter_container_add (CLUTTER_CONTAINER (marker), texture, NULL); + } map_view_marker_update (CHAMPLAIN_MARKER (marker), contact); clutter_container_add (CLUTTER_CONTAINER (window->layer), marker, NULL); -cleanup: g_object_unref (contact); return FALSE; } |