]> err.no Git - libchamplain/commitdiff
Fix a bug where tiles were not loaded if resized vertically
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 26 Aug 2009 04:00:46 +0000 (00:00 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Wed, 26 Aug 2009 04:00:46 +0000 (00:00 -0400)
This was particularly visible in EOG when a higher image
was loaded.

champlain/champlain-view.c

index 4d2276f4c6a994e35d5cf8f017a032601177bec4..9fa7d198320ab03873d740c8bb636bd9916987a8 100644 (file)
@@ -184,7 +184,7 @@ static void champlain_view_set_property (GObject *object, guint prop_id,
 static void champlain_view_dispose (GObject *object);
 static void champlain_view_class_init (ChamplainViewClass *champlainViewClass);
 static void champlain_view_init (ChamplainView *view);
-static void viewport_x_changed_cb (GObject *gobject, GParamSpec *arg1,
+static void viewport_pos_changed_cb (GObject *gobject, GParamSpec *arg1,
     ChamplainView *view);
 static void notify_marker_reposition_cb (ChamplainMarker *marker,
     GParamSpec *arg1, ChamplainView *view);
@@ -964,7 +964,9 @@ champlain_view_init (ChamplainView *view)
   g_object_set (G_OBJECT (priv->viewport), "sync-adjustments", FALSE, NULL);
 
   g_signal_connect (priv->viewport, "notify::x-origin",
-      G_CALLBACK (viewport_x_changed_cb), view);
+      G_CALLBACK (viewport_pos_changed_cb), view);
+  g_signal_connect (priv->viewport, "notify::y-origin",
+      G_CALLBACK (viewport_pos_changed_cb), view);
 
   /* Setup finger scroll */
   priv->finger_scroll = g_object_ref (tidy_finger_scroll_new (priv->scroll_mode));
@@ -1017,7 +1019,7 @@ champlain_view_init (ChamplainView *view)
 }
 
 static void
-viewport_x_changed_cb (GObject *gobject,
+viewport_pos_changed_cb (GObject *gobject,
     GParamSpec *arg1,
     ChamplainView *view)
 {