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 BC0B413933E for ; Fri, 16 Jul 2021 08:17:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B9493E09C2; Fri, 16 Jul 2021 08:17:34 +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 8FF97E09C2 for ; Fri, 16 Jul 2021 08:17:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 809C2342A68 for ; Fri, 16 Jul 2021 08:17:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DDBFA63F for ; Fri, 16 Jul 2021 08:17:31 +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: <1626422481.a8ed912e69534cfc85801b6188bfecbb2ad29f4a.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-shell-extensions/files/, gnome-extra/gnome-shell-extensions/ X-VCS-Repository: repo/gentoo X-VCS-Files: gnome-extra/gnome-shell-extensions/files/40.3-drive-menu-hide-items.patch gnome-extra/gnome-shell-extensions/files/40.3-drive-menu-indicator-visibility.patch gnome-extra/gnome-shell-extensions/gnome-shell-extensions-40.3-r1.ebuild X-VCS-Directories: gnome-extra/gnome-shell-extensions/files/ gnome-extra/gnome-shell-extensions/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: a8ed912e69534cfc85801b6188bfecbb2ad29f4a X-VCS-Branch: master Date: Fri, 16 Jul 2021 08:17:31 +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: 100fba03-22d4-40a5-8440-8b77afc6c2ad X-Archives-Hash: c8796da17af61f52723447293942d5db commit: a8ed912e69534cfc85801b6188bfecbb2ad29f4a Author: Pacho Ramos gentoo org> AuthorDate: Fri Jul 16 08:01:21 2021 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Fri Jul 16 08:01:21 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8ed912e gnome-extra/gnome-shell-extensions: Fix drive-menu hiding Apply upstream fixes to properly hide remote filesystems Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Pacho Ramos gentoo.org> .../files/40.3-drive-menu-hide-items.patch | 43 +++++++++++++ .../40.3-drive-menu-indicator-visibility.patch | 32 ++++++++++ .../gnome-shell-extensions-40.3-r1.ebuild | 72 ++++++++++++++++++++++ 3 files changed, 147 insertions(+) diff --git a/gnome-extra/gnome-shell-extensions/files/40.3-drive-menu-hide-items.patch b/gnome-extra/gnome-shell-extensions/files/40.3-drive-menu-hide-items.patch new file mode 100644 index 00000000000..c69dd5fd357 --- /dev/null +++ b/gnome-extra/gnome-shell-extensions/files/40.3-drive-menu-hide-items.patch @@ -0,0 +1,43 @@ +From d421bbfa609426032f07f27934eefb214d59012f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Florian=20M=C3=BCllner?= +Date: Tue, 13 Jul 2021 11:54:21 +0200 +Subject: [PATCH] drive-menu: Hide items initially + +Now that the check for network mounts is non-blocking, the initial +sync doesn't take effect immediately. We don't want hidden items +to briefly flash the indicator, so create them initially hidden. + +Part-of: +--- + extensions/drive-menu/extension.js | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/extensions/drive-menu/extension.js b/extensions/drive-menu/extension.js +index 6c6fd76..f60dab7 100644 +--- a/extensions/drive-menu/extension.js ++++ b/extensions/drive-menu/extension.js +@@ -41,6 +41,8 @@ class MountMenuItem extends PopupMenu.PopupBaseMenuItem { + ejectButton.connect('clicked', this._eject.bind(this)); + this.add(ejectButton); + ++ this.hide(); ++ + this._changedId = mount.connect('changed', this._syncVisibility.bind(this)); + this._syncVisibility(); + } +@@ -155,10 +157,8 @@ class DriveMenu extends PanelMenu.Button { + this.add_child(icon); + + this._monitor = Gio.VolumeMonitor.get(); +- this._addedId = this._monitor.connect('mount-added', (monitor, mount) => { +- this._addMount(mount); +- this._updateMenuVisibility(); +- }); ++ this._addedId = this._monitor.connect('mount-added', ++ (monitor, mount) => this._addMount(mount)); + this._removedId = this._monitor.connect('mount-removed', (monitor, mount) => { + this._removeMount(mount); + this._updateMenuVisibility(); +-- +GitLab + diff --git a/gnome-extra/gnome-shell-extensions/files/40.3-drive-menu-indicator-visibility.patch b/gnome-extra/gnome-shell-extensions/files/40.3-drive-menu-indicator-visibility.patch new file mode 100644 index 00000000000..f76335d4596 --- /dev/null +++ b/gnome-extra/gnome-shell-extensions/files/40.3-drive-menu-indicator-visibility.patch @@ -0,0 +1,32 @@ +From 3539ce113907ffda813e1a990891b0911c9702ef Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Florian=20M=C3=BCllner?= +Date: Tue, 13 Jul 2021 11:40:31 +0200 +Subject: [PATCH] drive-menu: Fix indicator visibility + +Commit 519269be9d made the check for network mounts non-blocking, and +we now update the indicator's visibility before a newly-added network +mount is hidden. + +Address this by monitoring the item itself for visibility changes. + +Part-of: +--- + extensions/drive-menu/extension.js | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/extensions/drive-menu/extension.js b/extensions/drive-menu/extension.js +index 3fac236..6c6fd76 100644 +--- a/extensions/drive-menu/extension.js ++++ b/extensions/drive-menu/extension.js +@@ -189,6 +189,8 @@ class DriveMenu extends PanelMenu.Button { + let item = new MountMenuItem(mount); + this._mounts.unshift(item); + this.menu.addMenuItem(item, 0); ++ ++ item.connect('notify::visible', () => this._updateMenuVisibility()); + } + + _removeMount(mount) { +-- +GitLab + diff --git a/gnome-extra/gnome-shell-extensions/gnome-shell-extensions-40.3-r1.ebuild b/gnome-extra/gnome-shell-extensions/gnome-shell-extensions-40.3-r1.ebuild new file mode 100644 index 00000000000..f879892a324 --- /dev/null +++ b/gnome-extra/gnome-shell-extensions/gnome-shell-extensions-40.3-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit gnome.org readme.gentoo-r1 meson xdg + +DESCRIPTION="JavaScript extensions for GNOME Shell" +HOMEPAGE="https://wiki.gnome.org/Projects/GnomeShell/Extensions" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" + +DEPEND=" + >=dev-libs/glib-2.26:2 + >=gnome-base/libgtop-2.28.3[introspection] + >=app-eselect/eselect-gnome-shell-extensions-20111211 +" +RDEPEND="${DEPEND} + >=dev-libs/gjs-1.29 + dev-libs/gobject-introspection:= + dev-libs/atk[introspection] + gnome-base/gnome-menus:3[introspection] + =gnome-base/gnome-shell-$(ver_cut 1-2)* + media-libs/clutter:1.0[introspection] + net-libs/telepathy-glib[introspection] + x11-libs/gdk-pixbuf:2[introspection] + x11-libs/gtk+:3[introspection] + x11-libs/pango[introspection] + x11-themes/adwaita-icon-theme + >=x11-wm/mutter-3.32[introspection] +" +BDEPEND=" + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig +" + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS="Installed extensions installed are initially disabled by default. +To change the system default and enable some extensions, you can use +# eselect gnome-shell-extensions + +Alternatively, to enable/disable extensions on a per-user basis, +you can use the https://extensions.gnome.org/ web interface, the +gnome-extra/gnome-tweaks GUI, or modify the org.gnome.shell +enabled-extensions gsettings key from the command line or a script." + +PATCHES=( + "${FILESDIR}/${PV}-drive-menu-indicator-visibility.patch" + "${FILESDIR}/${PV}-drive-menu-hide-items.patch" +) + +src_configure() { + meson_src_configure \ + -Dextension_set=all \ + -Dclassic_mode=true +} + +src_install() { + meson_src_install + readme.gentoo_create_doc +} + +pkg_postinst() { + xdg_pkg_postinst + + ebegin "Updating list of installed extensions" + eselect gnome-shell-extensions update + eend $? + + readme.gentoo_print_elog +}