[evince] document-model: Make dual mode and dual mode odd page left mutally exclusive
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] document-model: Make dual mode and dual mode odd page left mutally exclusive
- Date: Sat, 11 Feb 2012 15:42:57 +0000 (UTC)
commit 39106f4f491d10d89394b434d0e381ddf832f416
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sat Feb 11 16:38:13 2012 +0100
document-model: Make dual mode and dual mode odd page left mutally exclusive
The can't be set at the same time, but they can be both unset.
libview/ev-document-model.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/libview/ev-document-model.c b/libview/ev-document-model.c
index 3618667..ccf11d4 100644
--- a/libview/ev-document-model.c
+++ b/libview/ev-document-model.c
@@ -559,6 +559,11 @@ 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
@@ -583,6 +588,11 @@ 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]