summaryrefslogtreecommitdiff
path: root/libview/ev-view-private.h
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-24 18:46:52 +0200
committerraveit65 <[email protected]>2016-06-29 16:23:03 +0200
commit6bf223cbbfcfa6b42c019a45fb96c1236b88cdc5 (patch)
treef3b19d6e590514798024baf2984a3c8ea06fc15a /libview/ev-view-private.h
parent71b018f93891bcb414c72d956b4b5601045c5937 (diff)
downloadatril-6bf223cbbfcfa6b42c019a45fb96c1236b88cdc5.tar.bz2
atril-6bf223cbbfcfa6b42c019a45fb96c1236b88cdc5.tar.xz
libview: Add an option to show odd pages on the left in dual mode
Added a dual_even_left flag to EvView. When this flag is false, odd pages appear left instead of even ones. All the logic has been added to get_dual_even_left(). The patch is a bit more involved because build_height_to_page() was computing dual_even_left directly instead of calling get_dual_even_left(). Rather than implementing the logic twice, we replaced its EvDocument argument by its enclosing EvView in order to be able to call get_dual_even_left() directly. This function was renamed into ev_view_build_height_to_page_cache() to reflect it is now a view method. See http://bugzilla.gnome.org/show_bug.cgi?id=444587 taken from: https://git.gnome.org/browse/evince/commit/?id=f065e36
Diffstat (limited to 'libview/ev-view-private.h')
-rw-r--r--libview/ev-view-private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libview/ev-view-private.h b/libview/ev-view-private.h
index 68189432..161ede79 100644
--- a/libview/ev-view-private.h
+++ b/libview/ev-view-private.h
@@ -159,6 +159,7 @@ struct _EvView {
gboolean loading;
gboolean continuous;
gboolean dual_page;
+ gboolean dual_even_left;
gboolean fullscreen;
EvSizingMode sizing_mode;
GtkWidget *loading_window;