From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F166C138350 for ; Sun, 5 Apr 2020 16:17:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 49705E0ACC; Sun, 5 Apr 2020 16:17:40 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 234C0E0ACC for ; Sun, 5 Apr 2020 16:17:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0E14834EEAC for ; Sun, 5 Apr 2020 16:17:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 28135162 for ; Sun, 5 Apr 2020 16:17:36 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1586103443.a38a8c4791ffa48c43b264c0a85e2d2cffcb5d4a.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-shell-extension-gsconnect/, ... X-VCS-Repository: repo/gentoo X-VCS-Files: gnome-extra/gnome-shell-extension-gsconnect/files/gnome-shell-extension-gsconnect-33-notifications-limit.patch gnome-extra/gnome-shell-extension-gsconnect/gnome-shell-extension-gsconnect-33-r1.ebuild X-VCS-Directories: gnome-extra/gnome-shell-extension-gsconnect/files/ gnome-extra/gnome-shell-extension-gsconnect/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: a38a8c4791ffa48c43b264c0a85e2d2cffcb5d4a X-VCS-Branch: master Date: Sun, 5 Apr 2020 16:17:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 79f968be-d159-4344-a73a-87f4abe13ab0 X-Archives-Hash: c8c044de7f2e8a261a4f529769825a22 commit: a38a8c4791ffa48c43b264c0a85e2d2cffcb5d4a Author: Pacho Ramos gentoo org> AuthorDate: Sun Apr 5 16:17:23 2020 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Sun Apr 5 16:17:23 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a38a8c47 gnome-extra/gnome-shell-extension-gsconnect: Upstream fix to limit sent notifications Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Pacho Ramos gentoo.org> ...xtension-gsconnect-33-notifications-limit.patch | 39 ++++++++++++ .../gnome-shell-extension-gsconnect-33-r1.ebuild | 69 ++++++++++++++++++++++ 2 files changed, 108 insertions(+) diff --git a/gnome-extra/gnome-shell-extension-gsconnect/files/gnome-shell-extension-gsconnect-33-notifications-limit.patch b/gnome-extra/gnome-shell-extension-gsconnect/files/gnome-shell-extension-gsconnect-33-notifications-limit.patch new file mode 100644 index 00000000000..8c2846c5ecb --- /dev/null +++ b/gnome-extra/gnome-shell-extension-gsconnect/files/gnome-shell-extension-gsconnect-33-notifications-limit.patch @@ -0,0 +1,39 @@ +From 641ccb70724f8967439495e2356b2d7a654053cf Mon Sep 17 00:00:00 2001 +From: Andy Holmes +Date: Sat, 4 Apr 2020 17:37:41 -0700 +Subject: [PATCH] Shell Notifications: set a limit of 10 notifications from + GSConnect + +Re-apply the notification limit from GSConnect, set to 10. This should +stop notifications from growing indefinitely, with the consequence that +the notifications that end up in the message tray is non-deterministic. + +cc #364 + +Backported to v33 +--- + src/shell/notification.js | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/shell/notification.js b/src/shell/notification.js +index dc93de955..f345cdde9 100644 +--- a/src/shell/notification.js ++++ b/src/shell/notification.js +@@ -246,13 +246,16 @@ + } + + /** +- * Override to lift the usual notification limit (3) ++ * Override to raise the usual notification limit (3) + * See: https://gitlab.gnome.org/GNOME/gnome-shell/blob/master/js/ui/messageTray.js#L773-L786 + */ + pushNotification(notification) { + if (this.notifications.includes(notification)) + return; + ++ while (this.notifications.length >= 10) ++ this.notifications.shift().destroy(MessageTray.NotificationDestroyedReason.EXPIRED); ++ + notification.connect('destroy', this._onNotificationDestroy.bind(this)); + notification.connect('acknowledged-changed', this.countUpdated.bind(this)); + this.notifications.push(notification); diff --git a/gnome-extra/gnome-shell-extension-gsconnect/gnome-shell-extension-gsconnect-33-r1.ebuild b/gnome-extra/gnome-shell-extension-gsconnect/gnome-shell-extension-gsconnect-33-r1.ebuild new file mode 100644 index 00000000000..680156b1810 --- /dev/null +++ b/gnome-extra/gnome-shell-extension-gsconnect/gnome-shell-extension-gsconnect-33-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit gnome2-utils meson readme.gentoo-r1 + +DESCRIPTION="KDE Connect implementation for Gnome Shell" +HOMEPAGE="https://github.com/andyholmes/gnome-shell-extension-gsconnect" +SRC_URI="https://github.com/andyholmes/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nautilus" + +COMMON_DEPEND="dev-libs/glib:2" +RDEPEND="${COMMON_DEPEND} + app-eselect/eselect-gnome-shell-extensions + >=dev-libs/gjs-1.48 + =gnome-base/gnome-shell-3.34* + gnome-base/gvfs + gnome-extra/evolution-data-server + || ( media-libs/libcanberra media-libs/gsound ) + nautilus? ( + dev-python/nautilus-python + gnome-base/nautilus[introspection] ) +" +DEPEND="${COMMON_DEPEND}" +BDEPEND=" + virtual/pkgconfig +" + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS="For knowing more about how to do the setup, please visit: +https://github.com/andyholmes/gnome-shell-extension-gsconnect/wiki/Installation" + +PATCHES=( + # Shell Notifications: set a limit of 10 notifications from GSConnect + "${FILESDIR}/${P}-notifications-limit.patch" +) + +src_configure() { + # nemo support relies on nemo-python from https://github.com/linuxmint/nemo-extensions + # https://bugs.gentoo.org/694388 + meson_src_configure \ + -Dnemo=false \ + $(meson_use nautilus) +} + +src_install() { + meson_src_install + readme.gentoo_create_doc +} + +pkg_preinst() { + gnome2_schemas_savelist +} + +pkg_postinst() { + gnome2_schemas_update + ebegin "Updating list of installed extensions" + eselect gnome-shell-extensions update + eend $? + readme.gentoo_print_elog +} + +pkg_postrm() { + gnome2_schemas_update +}