[gnome-books/wip/hadess/remove-ev_view_find_changed: 1/2] evinceview: Remove use of ev_view_find_changed() wrapper
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-books/wip/hadess/remove-ev_view_find_changed: 1/2] evinceview: Remove use of ev_view_find_changed() wrapper
- Date: Tue, 9 Apr 2019 11:54:22 +0000 (UTC)
commit bbc32bbcdf072158c720485531a089b73f7f9e64
Author: Jason Crain <jason inspiresomeone us>
Date: Mon Apr 8 23:08:47 2019 -0600
evinceview: Remove use of ev_view_find_changed() wrapper
Using ev_view_find_started() removes the need to use the
gd_ev_view_find_changed() wrapper.
src/evinceview.js | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/evinceview.js b/src/evinceview.js
index 0d18e0ec..8f61123e 100644
--- a/src/evinceview.js
+++ b/src/evinceview.js
@@ -454,15 +454,12 @@ var EvinceView = new Lang.Class({
this._jobFind = EvView.JobFind.new(evDoc, this._model.get_page(), evDoc.get_n_pages(),
str, false);
this._jobFind.connect('updated', Lang.bind(this, this._onSearchJobUpdated));
+ this._evView.find_started(this._jobFind);
this._jobFind.scheduler_push_job(EvView.JobPriority.PRIORITY_NONE);
},
_onSearchJobUpdated: function(job, page) {
- // FIXME: ev_job_find_get_results() returns a GList **
- // and thus is not introspectable
- GdPrivate.ev_view_find_changed(this._evView, job, page);
-
let hasResults = job.has_results();
this.getAction('find-prev').enabled = hasResults;
this.getAction('find-next').enabled = hasResults;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]