diff --git a/2c28932c6266cbeddbe49d7aa6ca8d70d125e96f.patch b/2c28932c6266cbeddbe49d7aa6ca8d70d125e96f.patch new file mode 100644 index 0000000..b521915 --- /dev/null +++ b/2c28932c6266cbeddbe49d7aa6ca8d70d125e96f.patch @@ -0,0 +1,30 @@ +From 2c28932c6266cbeddbe49d7aa6ca8d70d125e96f Mon Sep 17 00:00:00 2001 +From: John Factotum <50942278+johnfactotum@users.noreply.github.com> +Date: Sat, 20 Mar 2021 22:52:23 +0800 +Subject: [PATCH] Don't write to construct only property after construction + +Fixes #689 +--- + src/window.js | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +diff --git a/src/window.js b/src/window.js +index 824781b..464edc0 100644 +--- a/src/window.js ++++ b/src/window.js +@@ -1022,8 +1022,14 @@ var Window = GObject.registerClass({ + this.loading = true + this._setTitle(_('Foliate')) + } ++ get file() { ++ return this._file || null ++ } ++ set file(file) { ++ this._file = file ++ } + open(file) { +- this.file = file ++ this._file = file + this._epub.open(file) + } + _connectEpub() { diff --git a/foliate.changes b/foliate.changes index 90d2e0c..0977a78 100644 --- a/foliate.changes +++ b/foliate.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Mar 21 15:03:26 UTC 2021 - Marcus Rueckert + +- Added https://github.com/johnfactotum/foliate/commit/2c28932c6266cbeddbe49d7aa6ca8d70d125e96f.patch + Make foliate work with GNOME 40 (gh:johnfactotum/foliate#689) + ------------------------------------------------------------------- Fri Nov 27 23:28:16 UTC 2020 - Bjørn Lie diff --git a/foliate.spec b/foliate.spec index 4f8dcde..3829e60 100644 --- a/foliate.spec +++ b/foliate.spec @@ -1,7 +1,7 @@ # # spec file for package foliate # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,7 @@ License: GPL-3.0-only Group: Productivity/Office/Other URL: https://johnfactotum.github.io/foliate/ Source: %{name}-%{version}.tar.gz +Patch: https://github.com/johnfactotum/foliate/commit/2c28932c6266cbeddbe49d7aa6ca8d70d125e96f.patch BuildRequires: fdupes BuildRequires: gcc-c++