[sushi] evince: use EvinceView.JobLoadGFile



commit 952a935d5a0dcbaf3a01eeecbf189520c4b29b3e
Author: vtq <18895-vtq users noreply gitlab gnome org>
Date:   Mon Apr 25 09:04:40 2022 +0000

    evince: use EvinceView.JobLoadGFile
    
    Sushi was unable to preview PDF files over SFTP because it was using
    EvinceView.JobLoad() which expected a local file URI.
    
    Using EvinceView.JobLoadGFile we can handle files that aren't local.
    
    Fixes #78

 src/viewers/evince.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/viewers/evince.js b/src/viewers/evince.js
index 9eb36a9..4257870 100644
--- a/src/viewers/evince.js
+++ b/src/viewers/evince.js
@@ -79,7 +79,7 @@ var Klass = GObject.registerClass({
     }
 
     _loadFile(file) {
-        let job = EvinceView.JobLoad.new(file.get_uri());
+        let job = EvinceView.JobLoadGFile.new(file, EvinceDocument.DocumentLoadFlags.NONE);
         job.connect('finished', this._onLoadJobFinished.bind(this));
         job.scheduler_push_job(EvinceView.JobPriority.PRIORITY_NONE);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]