[empathy] use champlain_view_ensure_layers_visible()



commit 7c0535692bcdc2c3cc0614ebd06e2bf24cdfd921
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Feb 21 10:17:13 2011 +0100

    use champlain_view_ensure_layers_visible()

 libempathy-gtk/empathy-individual-widget.c |    4 +---
 src/empathy-map-view.c                     |    4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c
index 5ff293f..51e6a53 100644
--- a/libempathy-gtk/empathy-individual-widget.c
+++ b/libempathy-gtk/empathy-individual-widget.c
@@ -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);
     }
diff --git a/src/empathy-map-view.c b/src/empathy-map-view.c
index 675f7c4..b7a2e19 100644
--- a/src/empathy-map-view.c
+++ b/src/empathy-map-view.c
@@ -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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]