[libchamplain] Fix a bug where tiles were not loaded if resized vertically
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libchamplain] Fix a bug where tiles were not loaded if resized vertically
- Date: Wed, 26 Aug 2009 04:06:59 +0000 (UTC)
commit e1c5771b773731b410e02cbde5d56f8a469cebb0
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date: Wed Aug 26 00:00:46 2009 -0400
Fix a bug where tiles were not loaded if resized vertically
This was particularly visible in EOG when a higher image
was loaded.
champlain/champlain-view.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]