Accepting request 880399 from home:darix:branches:GNOME:Apps
- Added 2c28932c62
.patch
Make foliate work with GNOME 40 (gh:johnfactotum/foliate#689)
OBS-URL: https://build.opensuse.org/request/show/880399
OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/foliate?expand=0&rev=40
This commit is contained in:
parent
9e7bd06647
commit
77e420b89c
30
2c28932c6266cbeddbe49d7aa6ca8d70d125e96f.patch
Normal file
30
2c28932c6266cbeddbe49d7aa6ca8d70d125e96f.patch
Normal file
@ -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() {
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 21 15:03:26 UTC 2021 - Marcus Rueckert <mrueckert@suse.de>
|
||||||
|
|
||||||
|
- 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 <bjorn.lie@gmail.com>
|
Fri Nov 27 23:28:16 UTC 2020 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package foliate
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -26,6 +26,7 @@ License: GPL-3.0-only
|
|||||||
Group: Productivity/Office/Other
|
Group: Productivity/Office/Other
|
||||||
URL: https://johnfactotum.github.io/foliate/
|
URL: https://johnfactotum.github.io/foliate/
|
||||||
Source: %{name}-%{version}.tar.gz
|
Source: %{name}-%{version}.tar.gz
|
||||||
|
Patch: https://github.com/johnfactotum/foliate/commit/2c28932c6266cbeddbe49d7aa6ca8d70d125e96f.patch
|
||||||
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
Loading…
Reference in New Issue
Block a user