diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-08-28 12:12:02 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-09-10 14:19:32 (GMT) |
commit | b57794402e9be371601032ae2f5a757f4744cf50 (patch) | |
tree | 5860a26233d4c77b08716aa5f91882a7a80c013f /evinceadapter.py | |
parent | e97c0375b931cb85fb6493eac6d4056c4469b92b (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): |