From ae7d6b989bc349c0e017f84245467ccf71809efb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 20 Feb 2020 14:56:14 +0100 Subject: [PATCH] Adjust to gnome-shell changes --- 0001-Adjust-to-gnome-shell-changes.patch | 29 ++++++++++++++++++ ...te-sharpness-compatibility-property-.patch | 30 +++++++++++++++++++ gnome-shell-extension-background-logo.spec | 8 ++++- 3 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 0001-Adjust-to-gnome-shell-changes.patch create mode 100644 0001-Make-sure-vignette-sharpness-compatibility-property-.patch diff --git a/0001-Adjust-to-gnome-shell-changes.patch b/0001-Adjust-to-gnome-shell-changes.patch new file mode 100644 index 0000000..a794b9c --- /dev/null +++ b/0001-Adjust-to-gnome-shell-changes.patch @@ -0,0 +1,29 @@ +From 8696912871d9db88c8d81c8c7dde72f5926b70c1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Florian=20M=C3=BCllner?= +Date: Tue, 26 Nov 2019 01:22:20 +0100 +Subject: [PATCH] Adjust to gnome-shell changes + +gnome-shell got mostly rid of the delegate pattern this cycle, +adjust to that. + +https://pagure.io/background-logo-extension/issue/22 +--- + extension.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/extension.js b/extension.js +index 4a6cc69..f651432 100644 +--- a/extension.js ++++ b/extension.js +@@ -207,7 +207,7 @@ var BackgroundLogo = GObject.registerClass({ + } + + _updateVisibility() { +- let background = this._bgManager.backgroundActor.background._delegate; ++ let { background } = this._bgManager.backgroundActor; + let defaultUri = background._settings.get_default_value('picture-uri'); + let file = Gio.File.new_for_commandline_arg(defaultUri.deep_unpack()); + +-- +2.24.1 + diff --git a/0001-Make-sure-vignette-sharpness-compatibility-property-.patch b/0001-Make-sure-vignette-sharpness-compatibility-property-.patch new file mode 100644 index 0000000..c22eb7d --- /dev/null +++ b/0001-Make-sure-vignette-sharpness-compatibility-property-.patch @@ -0,0 +1,30 @@ +From dfd48c8eec2cc29c92c5548cf1aed6764ddce98f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Florian=20M=C3=BCllner?= +Date: Tue, 26 Nov 2019 01:25:41 +0100 +Subject: [PATCH] Make sure :vignette-sharpness compatibility property is + initialized + +Otherwise the overview's attempt to animate the property will result +in warnings. + +https://pagure.io/background-logo-extension/pull-request/21 +--- + extension.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/extension.js b/extension.js +index 540e182..4a6cc69 100644 +--- a/extension.js ++++ b/extension.js +@@ -55,7 +55,7 @@ var BackgroundLogo = GObject.registerClass({ + 0, 1, 1), + 'vignette-sharpness': GObject.ParamSpec.double( + 'vignette-sharpness', 'vignette-sharpness', 'vignette-sharpness', +- GObject.ParamFlags.READWRITE, ++ GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT, + 0, 1, 0), + }, + }, class BackgroundLogo extends St.Widget { +-- +2.24.1 + diff --git a/gnome-shell-extension-background-logo.spec b/gnome-shell-extension-background-logo.spec index fa01682..80bfdc5 100644 --- a/gnome-shell-extension-background-logo.spec +++ b/gnome-shell-extension-background-logo.spec @@ -2,7 +2,7 @@ Name: gnome-shell-extension-background-logo Version: 3.34.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Background logo extension for GNOME Shell License: GPLv2+ @@ -10,6 +10,9 @@ URL: https://pagure.io/background-logo-extension Source0: https://releases.pagure.org/background-logo-extension/background-logo-extension-%{version}.tar.xz BuildArch: noarch +Patch0: 0001-Make-sure-vignette-sharpness-compatibility-property-.patch +Patch1: 0001-Adjust-to-gnome-shell-changes.patch + BuildRequires: meson BuildRequires: glib2-devel @@ -34,6 +37,9 @@ Show your pride! Display the Fedora logo (or any other graphic) in the corner of %{_datadir}/gnome-shell/extensions/background-logo@fedorahosted.org/ %changelog +* Thu Feb 20 2020 Florian Müllner - 3.34.0-3 +- Adjust to gnome-shell changes + shut up some warnings + * Tue Jan 28 2020 Fedora Release Engineering - 3.34.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild