Update to 43.0
This commit is contained in:
parent
7554dea0ba
commit
8cfabd74df
35
0001-Evince-Don-t-use-GFile-for-file-paths.patch
Normal file
35
0001-Evince-Don-t-use-GFile-for-file-paths.patch
Normal file
@ -0,0 +1,35 @@
|
||||
From 3f50da04fe4f224f28c3146b3ecb512fef58449f Mon Sep 17 00:00:00 2001
|
||||
From: "FeRD (Frank Dana)" <ferdnyc@gmail.com>
|
||||
Date: Thu, 8 Dec 2022 11:52:57 -0500
|
||||
Subject: [PATCH] Evince: Don't use GFile for file:/// paths.
|
||||
|
||||
Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
|
||||
|
||||
Evince: Use file.has_uri_scheme()
|
||||
---
|
||||
src/viewers/evince.js | 9 ++++++++-
|
||||
1 file changed, 8 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/viewers/evince.js b/src/viewers/evince.js
|
||||
index 4257870..79ad339 100644
|
||||
--- a/src/viewers/evince.js
|
||||
+++ b/src/viewers/evince.js
|
||||
@@ -79,7 +79,14 @@ var Klass = GObject.registerClass({
|
||||
}
|
||||
|
||||
_loadFile(file) {
|
||||
- let job = EvinceView.JobLoadGFile.new(file, EvinceDocument.DocumentLoadFlags.NONE);
|
||||
+ let job;
|
||||
+ if (file.has_uri_scheme("file")) {
|
||||
+ job = EvinceView.JobLoad.new(file.get_uri());
|
||||
+ } else {
|
||||
+ job = EvinceView.JobLoadGFile.new(
|
||||
+ file, EvinceDocument.DocumentLoadFlags.NONE);
|
||||
+ }
|
||||
+
|
||||
job.connect('finished', this._onLoadJobFinished.bind(this));
|
||||
job.scheduler_push_job(EvinceView.JobPriority.PRIORITY_NONE);
|
||||
}
|
||||
--
|
||||
2.38.1
|
||||
|
||||
Binary file not shown.
BIN
sushi-43.0.tar.xz
Normal file
BIN
sushi-43.0.tar.xz
Normal file
Binary file not shown.
16
sushi.spec
16
sushi.spec
@ -1,17 +1,22 @@
|
||||
%global __provides_exclude_from ^%{_libdir}/%{name}/.*\\.so.*$
|
||||
|
||||
Name: sushi
|
||||
Version: 41.2
|
||||
Version: 43.0
|
||||
Release: 1
|
||||
Summary: Quick Previewer for Nautilus
|
||||
License: GPLv2+
|
||||
URL: https://gitlab.gnome.org/GNOME/sushi
|
||||
Source0: https://download.gnome.org/sources/%{name}/41/%{name}-%{version}.tar.xz
|
||||
Source0: https://download.gnome.org/sources/%{name}/43/%{name}-%{version}.tar.xz
|
||||
# Submitted upstream: https://gitlab.gnome.org/GNOME/sushi/-/merge_requests/39
|
||||
Patch0: 0001-Evince-Don-t-use-GFile-for-file-paths.patch
|
||||
|
||||
BuildRequires: intltool gjs-devel gettext meson
|
||||
BuildRequires: gjs-devel gettext meson
|
||||
BuildRequires: pkgconfig(evince-document-3.0) pkgconfig(gobject-2.0) pkgconfig(gtk+-3.0)
|
||||
BuildRequires: pkgconfig(gtksourceview-4) pkgconfig(libmusicbrainz5) pkgconfig(webkit2gtk-4.0)
|
||||
BuildRequires: pkgconfig(gtksourceview-4) pkgconfig(webkit2gtk-4.1)
|
||||
BuildRequires: pkgconfig(gstreamer-audio-1.0)
|
||||
|
||||
Obsoletes: sushi-devel < 0.5.1
|
||||
Requires: gtksourceview4
|
||||
|
||||
%description
|
||||
Sushi is a quick previewer for Nautilus, the GNOME desktop file manager.
|
||||
@ -40,6 +45,9 @@ Sushi is a quick previewer for Nautilus, the GNOME desktop file manager.
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jan 2 2023 lin.zhang <lin.zhang@turbolinux.com.cn> - 43.0-1
|
||||
- Upgrade to 43.0
|
||||
|
||||
* Mon Jun 6 2022 lin.zhang <lin.zhang@turbolinux.com.cn> - 41.2-1
|
||||
- Upgrade to 41.2
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user