aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc.beaudoin@collabora.co.uk>2009-06-12 13:19:26 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-06-15 21:28:36 +0800
commit0b23d0983acb95ced196c766ee112143ec314c22 (patch)
treea87e08a00750f068876d799feb8637dde2e48b18 /libempathy-gtk
parent909f3e3d892afc61e42143bf9182d6dec9f3ccb9 (diff)
downloadgsoc2013-empathy-0b23d0983acb95ced196c766ee112143ec314c22.tar
gsoc2013-empathy-0b23d0983acb95ced196c766ee112143ec314c22.tar.gz
gsoc2013-empathy-0b23d0983acb95ced196c766ee112143ec314c22.tar.bz2
gsoc2013-empathy-0b23d0983acb95ced196c766ee112143ec314c22.tar.lz
gsoc2013-empathy-0b23d0983acb95ced196c766ee112143ec314c22.tar.xz
gsoc2013-empathy-0b23d0983acb95ced196c766ee112143ec314c22.tar.zst
gsoc2013-empathy-0b23d0983acb95ced196c766ee112143ec314c22.zip
Use libchamplain 0.3.3 new Gtk embed API
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-contact-widget.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c
index 6c1015364..12a139303 100644
--- a/libempathy-gtk/empathy-contact-widget.c
+++ b/libempathy-gtk/empathy-contact-widget.c
@@ -105,7 +105,7 @@ typedef struct
#if HAVE_LIBCHAMPLAIN
GtkWidget *viewport_map;
GtkWidget *map_view_embed;
- ClutterActor *map_view;
+ ChamplainView *map_view;
#endif
/* Groups */
@@ -1420,9 +1420,9 @@ contact_widget_location_update (EmpathyContactWidget *information)
ClutterActor *marker;
ChamplainLayer *layer;
- information->map_view = champlain_view_new ();
- information->map_view_embed = champlain_view_embed_new (
- CHAMPLAIN_VIEW (information->map_view));
+ information->map_view_embed = gtk_champlain_embed_new ();
+ information->map_view = gtk_champlain_embed_get_view (
+ GTK_CHAMPLAIN_EMBED (information->map_view_embed));
gtk_container_add (GTK_CONTAINER (information->viewport_map),
information->map_view_embed);
@@ -1431,14 +1431,14 @@ contact_widget_location_update (EmpathyContactWidget *information)
NULL);
layer = champlain_layer_new ();
- champlain_view_add_layer (CHAMPLAIN_VIEW (information->map_view), layer);
+ champlain_view_add_layer (information->map_view, layer);
marker = champlain_marker_new_with_text (
empathy_contact_get_name (information->contact), NULL, NULL, NULL);
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);
+ champlain_view_center_on (information->map_view, lat, lon);
gtk_widget_show_all (information->viewport_map);
}
#endif