[libchamplain/libchamplain-0-4] Update the scale when recent
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libchamplain/libchamplain-0-4] Update the scale when recent
- Date: Tue, 5 Jan 2010 19:02:36 +0000 (UTC)
commit 02c071e975a847f42cafff5ef0ebd73c18e649ec
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date: Tue Dec 15 16:02:01 2009 -0500
Update the scale when recent
champlain/champlain-view.c | 2 +-
demos/launcher-gtk.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c
index 4593bbc..2d370a9 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -1691,6 +1691,7 @@ champlain_view_center_on (ChamplainView *view,
view_load_visible_tiles (view);
view_tiles_reposition (view);
view_update_polygons (view);
+ update_scale (view);
marker_reposition (view);
}
@@ -2744,7 +2745,6 @@ view_set_zoom_level_at (ChamplainView *view,
clutter_container_add_actor (CLUTTER_CONTAINER (priv->map_layer),
new_group);
champlain_view_center_on (view, lat2, lon2);
- update_scale (view);
g_object_notify (G_OBJECT (view), "zoom-level");
return TRUE;
diff --git a/demos/launcher-gtk.c b/demos/launcher-gtk.c
index 0ff94ef..ce4a5be 100644
--- a/demos/launcher-gtk.c
+++ b/demos/launcher-gtk.c
@@ -212,7 +212,7 @@ main (int argc,
view = gtk_champlain_embed_get_view (GTK_CHAMPLAIN_EMBED (widget));
g_object_set (G_OBJECT (view), "scroll-mode", CHAMPLAIN_SCROLL_MODE_KINETIC,
- "zoom-level", 5, NULL);
+ "zoom-level", 5, "show-scale", TRUE, NULL);
layer = create_marker_layer (view);
champlain_view_add_layer(view, layer);
champlain_layer_hide_all_markers (CHAMPLAIN_LAYER (layer));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]