[libchamplain] Remove extra function calls in champlain_view_set_map_source()
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] Remove extra function calls in champlain_view_set_map_source()
- Date: Tue, 23 Mar 2010 14:40:50 +0000 (UTC)
commit 05664077cb6fa94fde06305a75beb48ceb30246a
Author: JiÅ?Ã Techet <techet gmail com>
Date: Sat Mar 13 23:51:30 2010 +0100
Remove extra function calls in champlain_view_set_map_source()
Most of the update functions are already called by
champlain_view_center_on() - don't do the same work twice
Signed-off-by: JiÅ?Ã Techet <techet gmail com>
champlain/champlain-view.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c
index 80847f3..7fe6cbf 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -2468,17 +2468,13 @@ champlain_view_set_map_source (ChamplainView *view,
champlain_zoom_level_zoom_to (priv->map_zoom_level, priv->map_source, priv->zoom_level);
- view_load_visible_tiles (view);
-
- g_object_notify (G_OBJECT (view), "map-source");
-
update_license (view);
- g_idle_add (marker_reposition, view);
- view_tiles_reposition (view);
champlain_view_center_on (view, priv->latitude, priv->longitude);
g_signal_connect (priv->map_source, "reload-tiles",
G_CALLBACK (view_reload_tiles_cb), view);
+
+ g_object_notify (G_OBJECT (view), "map-source");
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]