diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-08-28 12:12:02 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-08-31 12:59:32 (GMT) |
commit | 60e40c3e3838af19a2b55547ec62602cdbdd4f3f (patch) | |
tree | d20e50ab533e52ec89a8b8bd9ad15fba595448c0 /evinceadapter.py | |
parent | 99384878c4b0d85aa0a6d0b85e856dd9bec459ea (diff) |
Fix port of search functionality in pdf backend.
Is not working because of [1].
We need a change in the binding to solve it.
[1] https://bugzilla.gnome.org/show_bug.cgi?id=682875
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'evinceadapter.py')
-rw-r--r-- | evinceadapter.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/evinceadapter.py b/evinceadapter.py index 5c46e4f..45f9dd3 100644 --- a/evinceadapter.py +++ b/evinceadapter.py @@ -228,13 +228,14 @@ class EvinceViewer(): return self._view_notify_zoom_handler def setup_find_job(self, text, updated_cb): - self._find_job = evince.JobFind(document=self._document, start_page=0, + self._find_job = EvinceView.JobFind.new(document=self._document, + start_page=0, n_pages=self._document.get_n_pages(), text=text, case_sensitive=False) self._find_updated_handler = self._find_job.connect('updated', updated_cb) - evince.Job.scheduler_push_job(self._find_job, - evince.JOB_PRIORITY_NONE) + EvinceView.Job.scheduler_push_job(self._find_job, + EvinceView.JobPriority.PRIORITY_NONE) return self._find_job, self._find_updated_handler def connect_page_changed_handler(self, handler): |