[gnome-shell/wip/message-tray-menu: 10/20] status: Remove settings actions



commit 465c90819e49c10d2b967c7a60244a40ac16c56f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Apr 23 16:43:51 2013 -0400

    status: Remove settings actions
    
    These won't be used in the new combined panel menu

 js/ui/status/accessibility.js |    3 ---
 js/ui/status/bluetooth.js     |   18 ------------------
 js/ui/status/keyboard.js      |    2 --
 js/ui/status/network.js       |    2 --
 js/ui/status/power.js         |    3 ---
 js/ui/status/volume.js        |    3 ---
 6 files changed, 0 insertions(+), 31 deletions(-)
---
diff --git a/js/ui/status/accessibility.js b/js/ui/status/accessibility.js
index 479a15a..e6be115 100644
--- a/js/ui/status/accessibility.js
+++ b/js/ui/status/accessibility.js
@@ -68,9 +68,6 @@ const ATIndicator = new Lang.Class({
         let mouseKeys = this._buildItem(_("Mouse Keys"), A11Y_SCHEMA, KEY_MOUSE_KEYS_ENABLED);
         this.menu.addMenuItem(mouseKeys);
 
-        this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
-        this.menu.addSettingsAction(_("Universal Access Settings"), 'gnome-universal-access-panel.desktop');
-
         this._syncMenuVisibility();
     },
 
diff --git a/js/ui/status/bluetooth.js b/js/ui/status/bluetooth.js
index 001f8d4..0b7b89a 100644
--- a/js/ui/status/bluetooth.js
+++ b/js/ui/status/bluetooth.js
@@ -81,8 +81,6 @@ const Indicator = new Lang.Class({
         this._applet.connect('notify::show-full-menu', Lang.bind(this, this._updateFullMenu));
         this._updateFullMenu();
 
-        this.menu.addSettingsAction(_("Bluetooth Settings"), 'gnome-bluetooth-panel.desktop');
-
         this._applet.connect('pincode-request', Lang.bind(this, this._pinRequest));
         this._applet.connect('confirm-request', Lang.bind(this, this._confirmRequest));
         this._applet.connect('auth-request', Lang.bind(this, this._authRequest));
@@ -240,22 +238,6 @@ const Indicator = new Lang.Class({
                 this._applet.send_to_address(device.bdaddr, device.alias);
             }));
         }
-
-        switch (device.type) {
-        case GnomeBluetoothApplet.Type.KEYBOARD:
-            item.menu.addSettingsAction(_("Keyboard Settings"), 'gnome-keyboard-panel.desktop');
-            break;
-        case GnomeBluetoothApplet.Type.MOUSE:
-            item.menu.addSettingsAction(_("Mouse Settings"), 'gnome-mouse-panel.desktop');
-            break;
-        case GnomeBluetoothApplet.Type.HEADSET:
-        case GnomeBluetoothApplet.Type.HEADPHONES:
-        case GnomeBluetoothApplet.Type.OTHER_AUDIO:
-            item.menu.addSettingsAction(_("Sound Settings"), 'gnome-sound-panel.desktop');
-            break;
-        default:
-            break;
-        }
     },
 
     _updateFullMenu: function() {
diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js
index 4880fd2..35befe4 100644
--- a/js/ui/status/keyboard.js
+++ b/js/ui/status/keyboard.js
@@ -370,8 +370,6 @@ const InputSourceIndicator = new Lang.Class({
         Main.sessionMode.connect('updated', Lang.bind(this, this._sessionUpdated));
         this._sessionUpdated();
 
-        this.menu.addSettingsAction(_("Region & Language Settings"), 'gnome-region-panel.desktop');
-
         this._sourcesPerWindow = false;
         this._focusWindowNotifyId = 0;
         this._overviewShowingId = 0;
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 60c164b..a8885c6 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1786,8 +1786,6 @@ const NMApplet = new Lang.Class({
         this._vpnSection = new NMVPNSection(this._client, this._connections);
         this._vpnSection.connect('activation-failed', Lang.bind(this, this._onActivationFailed));
         this.menu.addMenuItem(this._vpnSection.section);
-        this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
-        this.menu.addSettingsAction(_("Network Settings"), 'gnome-network-panel.desktop');
 
         this._readConnections();
         this._readDevices();
diff --git a/js/ui/status/power.js b/js/ui/status/power.js
index c88700a..22400a3 100644
--- a/js/ui/status/power.js
+++ b/js/ui/status/power.js
@@ -76,9 +76,6 @@ const Indicator = new Lang.Class({
 
         this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
         this._otherDevicePosition = 2;
-
-        this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
-        this.menu.addSettingsAction(_("Power Settings"), 'gnome-power-panel.desktop');
     },
 
     _readPrimaryDevice: function() {
diff --git a/js/ui/status/volume.js b/js/ui/status/volume.js
index 8075496..6478103 100644
--- a/js/ui/status/volume.js
+++ b/js/ui/status/volume.js
@@ -312,9 +312,6 @@ const Indicator = new Lang.Class({
 
         this.menu.addMenuItem(this._volumeMenu);
 
-        this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
-        this.menu.addSettingsAction(_("Sound Settings"), 'gnome-sound-panel.desktop');
-
         this.actor.connect('scroll-event', Lang.bind(this, this._onScrollEvent));
     },
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]