diff options
author | Pierre-Luc Beaudoin <pierre-luc.beaudoin@collabora.co.uk> | 2009-06-12 13:19:26 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-06-15 21:28:36 +0800 |
commit | 0b23d0983acb95ced196c766ee112143ec314c22 (patch) | |
tree | a87e08a00750f068876d799feb8637dde2e48b18 /src/empathy-map-view.c | |
parent | 909f3e3d892afc61e42143bf9182d6dec9f3ccb9 (diff) | |
download | gsoc2013-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 'src/empathy-map-view.c')
-rw-r--r-- | src/empathy-map-view.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/empathy-map-view.c b/src/empathy-map-view.c index 05f5291d2..3a2210fa2 100644 --- a/src/empathy-map-view.c +++ b/src/empathy-map-view.c @@ -142,14 +142,13 @@ empathy_map_view_show (void) window->list_store = list_store; /* Set up map view */ - window->map_view = CHAMPLAIN_VIEW (champlain_view_new ()); + embed = gtk_champlain_embed_new (); + window->map_view = gtk_champlain_embed_get_view (GTK_CHAMPLAIN_EMBED (embed)); g_object_set (G_OBJECT (window->map_view), "zoom-level", 1, "scroll-mode", CHAMPLAIN_SCROLL_MODE_KINETIC, NULL); champlain_view_center_on (window->map_view, 36, 0); - embed = champlain_view_embed_new (window->map_view); - gtk_container_add (GTK_CONTAINER (sw), - GTK_WIDGET (embed)); + gtk_container_add (GTK_CONTAINER (sw), embed); gtk_widget_show_all (embed); window->layer = g_object_ref (champlain_layer_new ()); |