diff options
author | Pierre-Luc Beaudoin <pierre-luc@pierlux.com> | 2009-05-12 12:10:34 +0800 |
---|---|---|
committer | Pierre-Luc Beaudoin <pierre-luc@pierlux.com> | 2009-05-28 00:52:05 +0800 |
commit | 28107b1f3fc85df86d1325791804b27e9059d1d7 (patch) | |
tree | 985103cde836959516a2d3380d6f643f343a0b1a /libempathy-gtk/empathy-contact-widget.c | |
parent | 3967ad986cf0a678f5fa918e7e995267ed71fa07 (diff) | |
download | gsoc2013-empathy-28107b1f3fc85df86d1325791804b27e9059d1d7.tar gsoc2013-empathy-28107b1f3fc85df86d1325791804b27e9059d1d7.tar.gz gsoc2013-empathy-28107b1f3fc85df86d1325791804b27e9059d1d7.tar.bz2 gsoc2013-empathy-28107b1f3fc85df86d1325791804b27e9059d1d7.tar.lz gsoc2013-empathy-28107b1f3fc85df86d1325791804b27e9059d1d7.tar.xz gsoc2013-empathy-28107b1f3fc85df86d1325791804b27e9059d1d7.tar.zst gsoc2013-empathy-28107b1f3fc85df86d1325791804b27e9059d1d7.zip |
Update to use libchamplain 0.3's API
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.c')
-rw-r--r-- | libempathy-gtk/empathy-contact-widget.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c index 6555854c8..08284553f 100644 --- a/libempathy-gtk/empathy-contact-widget.c +++ b/libempathy-gtk/empathy-contact-widget.c @@ -1353,21 +1353,22 @@ contact_widget_location_update (EmpathyContactWidget *information) ClutterActor *marker; ChamplainLayer *layer; - information->map_view = champlain_view_new (CHAMPLAIN_VIEW_MODE_KINETIC); + information->map_view = champlain_view_new (); information->map_view_embed = champlain_view_embed_new ( CHAMPLAIN_VIEW (information->map_view)); gtk_container_add (GTK_CONTAINER (information->viewport_map), information->map_view_embed); g_object_set (G_OBJECT (information->map_view), "show-license", FALSE, + "scroll-mode", CHAMPLAIN_SCROLL_MODE_KINETIC, NULL); layer = champlain_layer_new (); champlain_view_add_layer (CHAMPLAIN_VIEW (information->map_view), layer); - marker = champlain_marker_new_with_label ( + marker = champlain_marker_new_with_text ( empathy_contact_get_name (information->contact), NULL, NULL, NULL); - champlain_marker_set_position (CHAMPLAIN_MARKER (marker), lat, lon); + champlain_base_marker_set_position (CHAMPLAIN_BASE_MARKER (marker), lat, lon); clutter_container_add (CLUTTER_CONTAINER (layer), marker, NULL); champlain_view_center_on (CHAMPLAIN_VIEW(information->map_view), lat, lon); |