[gnome-shell/eos3.8: 32/255] status/system: Remove the Settings entry
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/eos3.8: 32/255] status/system: Remove the Settings entry
- Date: Wed, 10 Jun 2020 19:00:38 +0000 (UTC)
commit 8007de7f4bc580bde643677122836235d07da343
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Mar 13 14:15:41 2020 -0300
status/system: Remove the Settings entry
It is now handled by the User menu.
js/ui/status/system.js | 26 --------------------------
1 file changed, 26 deletions(-)
---
diff --git a/js/ui/status/system.js b/js/ui/status/system.js
index 279ebcf0cf..a3e3e009da 100644
--- a/js/ui/status/system.js
+++ b/js/ui/status/system.js
@@ -38,13 +38,6 @@ class Indicator extends PanelMenu.SystemIndicator {
this._systemActions.forceUpdate();
});
this._updateSessionSubMenu();
-
- Main.sessionMode.connect('updated', this._sessionUpdated.bind(this));
- this._sessionUpdated();
- }
-
- _sessionUpdated() {
- this._settingsItem.visible = Main.sessionMode.allowSettings;
}
_updateSessionSubMenu() {
@@ -81,25 +74,6 @@ class Indicator extends PanelMenu.SystemIndicator {
this._orientationLockItem.label.text = labelText;
});
- let app = this._settingsApp = Shell.AppSystem.get_default().lookup_app(
- 'gnome-control-center.desktop'
- );
- if (app) {
- let [icon, name] = [app.app_info.get_icon().names[0],
- app.get_name()];
- item = new PopupMenu.PopupImageMenuItem(name, icon);
- item.connect('activate', () => {
- this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
- Main.overview.hide();
- this._settingsApp.activate();
- });
- this.menu.addMenuItem(item);
- this._settingsItem = item;
- } else {
- log('Missing required core component Settings, expect troubleā¦');
- this._settingsItem = new St.Widget();
- }
-
item = new PopupMenu.PopupImageMenuItem(_('Lock'), 'changes-prevent-symbolic');
item.connect('activate', () => {
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]