[gnome-shell/eos3.8: 113/255] appDisplay: Allow removing desktop icons via the contextual menu
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/eos3.8: 113/255] appDisplay: Allow removing desktop icons via the contextual menu
- Date: Wed, 10 Jun 2020 19:07:28 +0000 (UTC)
commit b9548436d8c7139f08f7200919acd8cf7c7c0e04
Author: Mario Sanchez Prada <mario endlessm com>
Date: Fri Jun 30 15:39:02 2017 +0100
appDisplay: Allow removing desktop icons via the contextual menu
This change will add a "Remove from desktop" entry to the contextual
menu of both apps and folders (App Center icon excluded), so that we
can remove then regardless of having access to the bin or not, which
might be problematic in paginated scenarios.
https://phabricator.endlessm.com/T18013
js/ui/appDisplay.js | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 56a876204a..e712719973 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -2386,6 +2386,13 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu {
});
}
}
+
+ // Add the "Remove from desktop" menu item at the end.
+ let item = this._appendMenuItem(_("Remove from desktop"));
+ item.connect('activate', () => {
+ const iconGridLayout = IconGridLayout.getDefault();
+ iconGridLayout.removeIcon(this._source.id, true);
+ });
}
_appendSeparator() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]