Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-10-15 12:59:05 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-10-15 13:01:16 (GMT)
commit2e67253b0c13d380cddb4df15e1961e4ef92a8c8 (patch)
tree480008cf5c1db7b62eca7650d492ce70e857a5cd
parent7d9fe2b48e581fe26e6d89c706a2f94af68e193d (diff)
Fix check evince version - SL #4033
A error in the control of evince version disable the display of index in pdf backend Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
-rw-r--r--evinceadapter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/evinceadapter.py b/evinceadapter.py
index 597b656..3a1f263 100644
--- a/evinceadapter.py
+++ b/evinceadapter.py
@@ -284,9 +284,9 @@ class EvinceViewer():
"""
Check if Evince version is at major or equal than the requested
"""
- return EvinceDocument.MAJOR_VERSION >= major and \
- EvinceDocument.MINOR_VERSION >= minor and \
- EvinceDocument.MICRO_VERSION >= micro
+ evince_version = [EvinceDocument.MAJOR_VERSION,
+ EvinceDocument.MINOR_VERSION, EvinceDocument.MICRO_VERSION]
+ return evince_version >= [major, minor, micro]
def __index_loaded_cb(self, job, activity):
self._index_model = job.get_model()