From: "Pacho Ramos" <pacho@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-shell-extension-bing-wallpaper/, ...
Date: Wed, 16 Jun 2021 09:21:21 +0000 (UTC) [thread overview]
Message-ID: <1623835211.770fbeebf64a0cc6b3d03803b46f5b9e4050fb0a.pacho@gentoo> (raw)
commit: 770fbeebf64a0cc6b3d03803b46f5b9e4050fb0a
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 16 09:20:11 2021 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Wed Jun 16 09:20:11 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=770fbeeb
gnome-extra/gnome-shell-extension-bing-wallpaper: Bump to v34
Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
.../gnome-shell-extension-bing-wallpaper/Manifest | 1 +
...nsion-bing-wallpaper-34-blur-enable-check.patch | 49 +++++++++++++++++++
.../gnome-shell-extension-bing-wallpaper-34.ebuild | 55 ++++++++++++++++++++++
3 files changed, 105 insertions(+)
diff --git a/gnome-extra/gnome-shell-extension-bing-wallpaper/Manifest b/gnome-extra/gnome-shell-extension-bing-wallpaper/Manifest
index 6dd77343231..204a599047f 100644
--- a/gnome-extra/gnome-shell-extension-bing-wallpaper/Manifest
+++ b/gnome-extra/gnome-shell-extension-bing-wallpaper/Manifest
@@ -1,2 +1,3 @@
DIST gnome-shell-extension-bing-wallpaper-32.tar.gz 4186897 BLAKE2B 2d8d119ef61c426be5e1ad3070fa038fe34f1cedf706a748a9943eaa2ef9bb0ce75a8df99abad38d48fd8f25ae532ae9dd425ca00d7165c06b177580cbed89a3 SHA512 c72473df4b5882ee5964c74fa42d270097526337230e538c1fcfc6e7bee5ab492857ca0f48e019ba7cd3ce6808b22c7751333275dd074b057fa4e09030afb609
DIST gnome-shell-extension-bing-wallpaper-33.tar.gz 4218373 BLAKE2B e5f7c9845a20eded7dfa56865ce145751b88f92c5c0c89bf305e863aa03e1ea8e305355d34833387a60b26e75aafa4739ddf4a13dac871835d604bade2f8ce5e SHA512 8de4f4a721cd8ca905212a9ebb3e4d26d90832353fca7641eb240ebe12f3fa4cd10acf257823a4a986b18b98216786daf46f3570dd87f2f17e6bfdd6507a687f
+DIST gnome-shell-extension-bing-wallpaper-34.tar.gz 4308799 BLAKE2B 5c14895fbb42fb726e1b6d93924eebfd7b93ccea893075bfd698476579962a88f8e0008d7e935304d56caba1db1f8afc8fee3498f63044e4a9da13f568025e84 SHA512 7e1e26b5494a9e66d74c3d1045827445935d1a0ed20b095cb72b3b06b622ae5fda7980313dcddedf25c5ed3b40717a8e322bc80764f502c5eb7fe7155ec84ca7
diff --git a/gnome-extra/gnome-shell-extension-bing-wallpaper/files/gnome-shell-extension-bing-wallpaper-34-blur-enable-check.patch b/gnome-extra/gnome-shell-extension-bing-wallpaper/files/gnome-shell-extension-bing-wallpaper-34-blur-enable-check.patch
new file mode 100644
index 00000000000..64f72f388de
--- /dev/null
+++ b/gnome-extra/gnome-shell-extension-bing-wallpaper/files/gnome-shell-extension-bing-wallpaper-34-blur-enable-check.patch
@@ -0,0 +1,49 @@
+From d6350119bccb896744e574d0f10e34c1309bc1b1 Mon Sep 17 00:00:00 2001
+From: Michael Carroll <ineffable@gmail.com>
+Date: Wed, 16 Jun 2021 00:11:26 +1000
+Subject: [PATCH] dont reset blur on disable() if never enabled #113
+
+---
+ blur.js | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/blur.js b/blur.js
+index 613e301..c16af6f 100644
+--- a/blur.js
++++ b/blur.js
+@@ -27,6 +27,7 @@ var blur_strength = 2;
+ var blur_brightness = 55;
+ var debug = false;
+
++let blurEnabled = false;
+ var blurMode = whichVersion();
+
+ function log(msg) {
+@@ -63,6 +64,7 @@ var Blur = class Blur {
+ let effect = new Shell.BlurEffect({ brightness: blur_brightness * 0.01, sigma: blur_strength * themeContext.scale_factor / 5 }); // fix me, should this be /5?
+ this._scaleChangedId = themeContext.connect('notify::scale-factor', () => { effect.sigma = blur_strength * themeContext.scale_factor / 5; });
+ widget.add_effect(effect);
++ blurEnabled = true;
+ }
+
+ _do_blur_v2(monitorIndex) {
+@@ -74,8 +76,8 @@ var Blur = class Blur {
+ brightness: blur_brightness * 0.01,
+ sigma: blur_strength * themeContext.scale_factor,
+ });
+- }
+-
++ }
++ blurEnabled = true;
+ }
+
+ set_blur_strength(value) {
+@@ -119,6 +121,8 @@ var Blur = class Blur {
+ }
+
+ _disable() {
++ if (blurEnabled == false) // nothing to do, don't clash without other extensions that do the same
++ return;
+ log("_lockscreen_blur_disable() called");
+ if (blurMode == 1) {
+ UnlockDialog.prototype._createBackground = _createBackground;
diff --git a/gnome-extra/gnome-shell-extension-bing-wallpaper/gnome-shell-extension-bing-wallpaper-34.ebuild b/gnome-extra/gnome-shell-extension-bing-wallpaper/gnome-shell-extension-bing-wallpaper-34.ebuild
new file mode 100644
index 00000000000..a1b25a62c8c
--- /dev/null
+++ b/gnome-extra/gnome-shell-extension-bing-wallpaper/gnome-shell-extension-bing-wallpaper-34.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit gnome2-utils
+
+DESCRIPTION="Changes your wallpaper daily to the bing.com background image"
+HOMEPAGE="https://github.com/neffo/bing-wallpaper-gnome-extension"
+SRC_URI="https://github.com/neffo/bing-wallpaper-gnome-extension/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-libs/glib:2
+ app-eselect/eselect-gnome-shell-extensions
+ >=gnome-base/gnome-shell-3.28
+"
+DEPEND=""
+BDEPEND=""
+
+S="${WORKDIR}/bing-wallpaper-gnome-extension-${PV}"
+extension_uuid="BingWallpaper@ineffable-gmail.com"
+
+PATCHES=(
+ # https://github.com/neffo/bing-wallpaper-gnome-extension/issues/113
+ "${FILESDIR}/${P}-blur-enable-check.patch"
+)
+
+src_install() {
+ einstalldocs
+ rm -f README.md LICENSE || die
+ insinto /usr/share/glib-2.0/schemas
+ doins schemas/*.xml
+ rm -rf schemas
+ insinto /usr/share/gnome-shell/extensions/"${extension_uuid}"
+ doins -r *
+}
+
+pkg_preinst() {
+ gnome2_schemas_savelist
+}
+
+pkg_postinst() {
+ gnome2_schemas_update
+ ebegin "Updating list of installed extensions"
+ eselect gnome-shell-extensions update
+ eend $?
+}
+
+pkg_postrm() {
+ gnome2_schemas_update
+}
next reply other threads:[~2021-06-16 9:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-16 9:21 Pacho Ramos [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-01-24 17:26 [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-shell-extension-bing-wallpaper/, Pacho Ramos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1623835211.770fbeebf64a0cc6b3d03803b46f5b9e4050fb0a.pacho@gentoo \
--to=pacho@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox