[emerillon] Reset zoom actions after changing the map-source



commit ca4ea8582c413049fe2a600bc5c82f27e887fe94
Author: Pierre-Luc Beaudoin <pierre-luc beaudoin novopia com>
Date:   Fri Oct 16 16:44:07 2009 -0400

    Reset zoom actions after changing the map-source
    
    This change will only work with libchamplain 0.4.1 as the map-source change
    is not notified in 0.4.0.

 emerillon/window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/emerillon/window.c b/emerillon/window.c
index 4b0e226..4a7c824 100644
--- a/emerillon/window.c
+++ b/emerillon/window.c
@@ -743,6 +743,8 @@ build_ui (EmerillonWindow *self)
   self->priv->view = gtk_champlain_embed_get_view (GTK_CHAMPLAIN_EMBED (embed_view));
   g_signal_connect (self->priv->view, "notify::zoom-level",
       G_CALLBACK (zoom_changed_cb), self);
+  g_signal_connect (self->priv->view, "notify::map-source",
+      G_CALLBACK (zoom_changed_cb), self);
   g_signal_connect (self->priv->view, "notify::state",
       G_CALLBACK (state_changed_cb), self);
   g_object_set (self->priv->view, "zoom-level", 1,



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