[gnome-shell-extensions] alternative-status-menu: update for current mockups
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] alternative-status-menu: update for current mockups
- Date: Fri, 8 Jun 2012 12:07:44 +0000 (UTC)
commit 279dd348e42f57ad03501e134b90052e279eedcc
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Fri Jun 8 13:59:50 2012 +0200
alternative-status-menu: update for current mockups
Core shell changed the user menu so that Power Off is no longer at
the end, and it's no longer hidden by Alt. Update the extension
so that it blends nicely with the core behavior, while still exposing
Suspend/Hibernate/Power Off as separate menu items.
extensions/alternative-status-menu/extension.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/extensions/alternative-status-menu/extension.js b/extensions/alternative-status-menu/extension.js
index 94d35a4..1cd6e44 100644
--- a/extensions/alternative-status-menu/extension.js
+++ b/extensions/alternative-status-menu/extension.js
@@ -75,8 +75,7 @@ function enable() {
hibernate_signal_id = statusMenu._upClient.connect('notify::can-hibernate', Lang.bind(statusMenu, updateHibernate, hibernate_item));
updateHibernate(statusMenu._upClient, null, hibernate_item);
- poweroff_item = new PopupMenu.PopupMenuItem(_("Power Off..."), { style_class: 'popup-alternating-menu-item' });
- poweroff_item.actor.add_style_pseudo_class('alternate');
+ poweroff_item = new PopupMenu.PopupMenuItem(_("Power Off"));
poweroff_item.connect('activate', Lang.bind(statusMenu, function() {
this._session.ShutdownRemote();
}));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]