From: Pierre-Luc Beaudoin Date: Wed, 26 Aug 2009 04:00:46 +0000 (-0400) Subject: Fix a bug where tiles were not loaded if resized vertically X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1c5771b773731b410e02cbde5d56f8a469cebb0;p=libchamplain Fix a bug where tiles were not loaded if resized vertically This was particularly visible in EOG when a higher image was loaded. --- diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c index 4d2276f..9fa7d19 100644 --- a/champlain/champlain-view.c +++ b/champlain/champlain-view.c @@ -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) {