summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsegfault <segfault@riseup.net>2019-04-04 11:04:04 +0200
committersegfault <segfault@riseup.net>2019-04-04 11:51:44 +0200
commit6341fbefb3ecf1d893607c37a8c7a4f482dd9cf3 (patch)
tree285af435a8045c0c39e3767ab5095ec914e08317
parente4e7f81288ff9723b94ec434bbc7006ce240cb0f (diff)
status-menu-helper: Fix order of buttons (refs: #14556)
-rw-r--r--config/chroot_local-includes/usr/share/gnome-shell/extensions/status-menu-helper@tails.boum.org/extension.js36
1 files changed, 18 insertions, 18 deletions
diff --git a/config/chroot_local-includes/usr/share/gnome-shell/extensions/status-menu-helper@tails.boum.org/extension.js b/config/chroot_local-includes/usr/share/gnome-shell/extensions/status-menu-helper@tails.boum.org/extension.js
index ca7a809..0ddeb4d 100644
--- a/config/chroot_local-includes/usr/share/gnome-shell/extensions/status-menu-helper@tails.boum.org/extension.js
+++ b/config/chroot_local-includes/usr/share/gnome-shell/extensions/status-menu-helper@tails.boum.org/extension.js
@@ -73,23 +73,23 @@ const Extension = new Lang.Class({
_createActions: function() {
this._lockScreenAction = this._createAction(_("Lock screen"),
- 'changes-prevent-symbolic',
+ 'changes-prevent-symbolic',
this._onLockClicked);
this._suspendAction = this._createAction(_("Suspend"),
- 'media-playback-pause-symbolic',
- this._onSuspendClicked);
-
- this._powerOffAction = this._createAction(_("Power Off"),
- 'system-shutdown-symbolic',
- this._onPowerOffClicked);
+ 'media-playback-pause-symbolic',
+ this._onSuspendClicked);
this._restartAction = this._createAction(_("Restart"),
- 'view-refresh-symbolic',
+ 'view-refresh-symbolic',
this._onRestartClicked);
+ this._powerOffAction = this._createAction(_("Power Off"),
+ 'system-shutdown-symbolic',
+ this._onPowerOffClicked);
+
this._actions = [this._lockScreenAction, this._suspendAction,
- this._powerOffAction, this._restartAction];
+ this._restartAction, this._powerOffAction];
},
_createAction: function(label, icon, onClickedFunction) {
@@ -127,25 +127,25 @@ const Extension = new Lang.Class({
}
},
- _onPowerOffClicked: function() {
+ _onLockClicked: function() {
this.statusMenu.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
- Util.spawn(['sudo', '-n', 'poweroff'])
+ Main.overview.hide();
+ Util.spawn(['tails-screen-locker']);
},
- _onRestartClicked: function() {
+ _onSuspendClicked: function() {
this.statusMenu.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
- Util.spawn(['sudo', '-n', 'reboot'])
+ Util.spawn(['systemctl', 'suspend'])
},
- _onLockClicked: function() {
+ _onRestartClicked: function() {
this.statusMenu.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
- Main.overview.hide();
- Util.spawn(['tails-screen-locker']);
+ Util.spawn(['sudo', '-n', 'reboot'])
},
- _onSuspendClicked: function() {
+ _onPowerOffClicked: function() {
this.statusMenu.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
- Util.spawn(['systemctl', 'suspend'])
+ Util.spawn(['sudo', '-n', 'poweroff'])
},
_update: function() {