[gnome-documents/wip/cosimoc/view-rework: 9/28] preview: fix signature for onLoadStarted
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/cosimoc/view-rework: 9/28] preview: fix signature for onLoadStarted
- Date: Mon, 8 Aug 2016 15:10:23 +0000 (UTC)
commit a8b14ea6ce63b3bc1eeb436d4ef99f4010c04beb
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Jul 31 15:42:14 2016 -0700
preview: fix signature for onLoadStarted
We don't have a docModel here anymore. Also, don't forget to chain up.
src/evinceview.js | 2 ++
src/preview.js | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/evinceview.js b/src/evinceview.js
index fbad10a..2dad441 100644
--- a/src/evinceview.js
+++ b/src/evinceview.js
@@ -232,6 +232,8 @@ const EvinceView = new Lang.Class({
},
onLoadStarted: function(manager, doc) {
+ this.parent(manager, doc);
+
if (doc.viewType != Documents.ViewType.EV)
return;
diff --git a/src/preview.js b/src/preview.js
index 1284c3c..d00bf76 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -132,7 +132,7 @@ const Preview = new Lang.Class({
onLoadStarted: function(manager, doc) {
},
- onLoadFinished: function(manager, doc, docModel) {
+ onLoadFinished: function(manager, doc) {
this.getAction('open-current').enabled = (doc.defaultApp != null);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]