]> git.0d.be Git - empathy.git/commitdiff
use champlain_view_ensure_layers_visible()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 21 Feb 2011 09:17:13 +0000 (10:17 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 21 Feb 2011 09:17:49 +0000 (10:17 +0100)
libempathy-gtk/empathy-individual-widget.c
src/empathy-map-view.c

index 5ff293fd2633700751b60fb50c9daf2a0d9f3b06..51e6a534ea26d8ec0db8ccbb0ba8fcec321f2e7e 100644 (file)
@@ -729,7 +729,6 @@ location_update (EmpathyIndividualWidget *self)
   if (display_map == TRUE)
     {
       ChamplainMarkerLayer *layer;
-      ChamplainBoundingBox *bbox;
 
       priv->map_view_embed = gtk_champlain_embed_new ();
       priv->map_view = gtk_champlain_embed_get_view (
@@ -804,8 +803,7 @@ location_update (EmpathyIndividualWidget *self)
         }
 
       /* Zoom to show all of the markers */
-      bbox = champlain_layer_get_bounding_box (CHAMPLAIN_LAYER (layer));
-      champlain_view_ensure_visible (priv->map_view, bbox, FALSE);
+      champlain_view_ensure_layers_visible (priv->map_view, FALSE);
 
       gtk_widget_show_all (priv->viewport_map);
     }
index 675f7c4d7deab78febd46b2b5502aa6c60a12c24..b7a2e1975cc091d6c39e65d4adfa9854728d7c61 100644 (file)
@@ -178,10 +178,8 @@ map_view_zoom_fit_cb (GtkWidget *widget,
     EmpathyMapView *self)
 {
   EmpathyMapViewPriv *priv = GET_PRIV (self);
-  ChamplainBoundingBox *bbox;
 
-  bbox = champlain_layer_get_bounding_box (CHAMPLAIN_LAYER (priv->layer));
-  champlain_view_ensure_visible (priv->map_view, bbox, TRUE);
+  champlain_view_ensure_layers_visible (priv->map_view, TRUE);
 }
 
 static gboolean