From 147db949b1e422ce3e4fc2c948efbd74581bc311 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Sun, 25 Dec 2005 21:40:07 +0000 Subject: Delay scroll until allocation to correctly position page. Fix for the bug * shell/ev-view-private.h: * shell/ev-view.c: (scroll_to_current_page), (view_set_adjustment_values), (goto_fitr_link), (goto_fitv_link), (goto_fith_link), (goto_fit_link), (goto_xyz_link), (page_changed_cb), (ev_view_set_continuous), (ev_view_set_dual_page), (ev_view_set_presentation): Delay scroll until allocation to correctly position page. Fix for the bug #317334. --- (limited to 'shell/ev-view-private.h') diff --git a/shell/ev-view-private.h b/shell/ev-view-private.h index ef48e0b..91f4315 100644 --- a/shell/ev-view-private.h +++ b/shell/ev-view-private.h @@ -43,8 +43,8 @@ typedef struct { typedef enum { SCROLL_TO_KEEP_POSITION, - SCROLL_TO_CURRENT_PAGE, - SCROLL_TO_CENTER + SCROLL_TO_PAGE_POSITION, + SCROLL_TO_CENTER, } PendingScroll; typedef enum { @@ -78,7 +78,8 @@ struct _EvView { gint scroll_y; PendingScroll pending_scroll; - gboolean pending_resize; + gboolean pending_resize; + EvPoint pending_point; /* Current geometry */ -- cgit v0.9.1