summaryrefslogtreecommitdiff
path: root/libview
diff options
context:
space:
mode:
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-document-model.c10
-rw-r--r--libview/ev-view.c9
2 files changed, 2 insertions, 17 deletions
diff --git a/libview/ev-document-model.c b/libview/ev-document-model.c
index 572f5526..856ee36e 100644
--- a/libview/ev-document-model.c
+++ b/libview/ev-document-model.c
@@ -559,11 +559,6 @@ ev_document_model_set_dual_page (EvDocumentModel *model,
model->dual_page = dual_page;
g_object_notify (G_OBJECT (model), "dual-page");
-
- if (dual_page && model->dual_page_odd_left) {
- model->dual_page_odd_left = FALSE;
- g_object_notify (G_OBJECT (model), "dual-odd-left");
- }
}
gboolean
@@ -588,11 +583,6 @@ ev_document_model_set_dual_page_odd_pages_left (EvDocumentModel *model,
model->dual_page_odd_left = odd_left;
g_object_notify (G_OBJECT (model), "dual-odd-left");
-
- if (odd_left && model->dual_page) {
- model->dual_page = FALSE;
- g_object_notify (G_OBJECT (model), "dual-page");
- }
}
gboolean
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 80f1df48..72abcb86 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -5708,9 +5708,7 @@ ev_view_dual_page_changed_cb (EvDocumentModel *model,
GParamSpec *pspec,
EvView *view)
{
- gboolean dual_page = ev_document_model_get_dual_page (model);
-
- view->dual_page = dual_page || ev_document_model_get_dual_page_odd_pages_left (model);
+ view->dual_page = ev_document_model_get_dual_page (model);
view->pending_scroll = SCROLL_TO_PAGE_POSITION;
/* FIXME: if we're keeping the pixbuf cache around, we should extend the
* preload_cache_size to be 2 if dual_page is set.
@@ -5723,10 +5721,7 @@ ev_view_dual_odd_left_changed_cb (EvDocumentModel *model,
GParamSpec *pspec,
EvView *view)
{
- gboolean dual_odd_left = ev_document_model_get_dual_page_odd_pages_left (model);
-
- view->dual_page = dual_odd_left || ev_document_model_get_dual_page (model);
- view->dual_even_left = !dual_odd_left;
+ view->dual_even_left = !ev_document_model_get_dual_page_odd_pages_left (model);
view->pending_scroll = SCROLL_TO_PAGE_POSITION;
gtk_widget_queue_resize (GTK_WIDGET (view));