[gnome-documents/wip/lokdocview-rebase: 19/29] Start loading LO docs when load-started is emitted
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/lokdocview-rebase: 19/29] Start loading LO docs when load-started is emitted
- Date: Mon, 4 Jan 2016 11:58:03 +0000 (UTC)
commit cf4f8aecb46c6c34368db4030da1edd0ca65d926
Author: Bastien Nocera <hadess hadess net>
Date: Sun Dec 6 15:36:06 2015 +0100
Start loading LO docs when load-started is emitted
Note that this will break the Evince view because of the way signals are
handled.
src/lokview.js | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/src/lokview.js b/src/lokview.js
index c7806da..d133bd5 100644
--- a/src/lokview.js
+++ b/src/lokview.js
@@ -146,7 +146,12 @@ const LOKView = new Lang.Class({
}));
},
- _onLoadStarted: function() {
+ _onLoadStarted: function(manager, doc) {
+ let file = Gio.File.new_for_uri (doc.uri);
+ let location = file.get_path();
+ this._doc = doc;
+ this.view.open_document(location, "{}", null, Lang.bind(this, this.open_document_cb));
+ this._progressBar.show();
},
_onLoadError: function(manager, doc, message, exception) {
@@ -171,13 +176,6 @@ const LOKView = new Lang.Class({
},
_onLoadFinished: function(manager, doc, docModel) {
- if (docModel == null && doc != null) {
- let file = Gio.File.new_for_uri (doc.uri);
- let location = file.get_path();
- this._doc = doc;
- this.view.open_document(location, "{}", null, Lang.bind(this, this.open_document_cb));
- this._progressBar.show();
- }
},
reset: function () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]