[gnome-shell/user-status-update: 5/12] status-menu: Make user icon activatable



commit 5a505db96e1e5eb6ed0a7afa131f7d5fb32f76b6
Author: Florian MÃllner <fmuellner gnome org>
Date:   Tue Jul 26 20:58:09 2011 +0200

    status-menu: Make user icon activatable

 data/theme/gnome-shell.css |    4 ++++
 js/ui/statusMenu.js        |    8 +++++++-
 2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 65c2b0d..a442750 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -365,6 +365,10 @@ StTooltip StLabel {
     height: 64px;
 }
 
+.status-chooser-user-icon:hover {
+    border: 2px solid #bbbbbb;
+}
+
 .status-chooser-user-name {
     font-weight: bold;
 }
diff --git a/js/ui/statusMenu.js b/js/ui/statusMenu.js
index a250f33..bd3a9ca 100644
--- a/js/ui/statusMenu.js
+++ b/js/ui/statusMenu.js
@@ -71,9 +71,14 @@ IMStatusChooserItem.prototype = {
                                                           { reactive: false,
                                                             style_class: 'status-chooser' });
 
-        this._iconBin = new St.Bin({ style_class: 'status-chooser-user-icon' });
+        this._iconBin = new St.Button({ style_class: 'status-chooser-user-icon' });
         this.addActor(this._iconBin);
 
+        this._iconBin.connect('clicked', Lang.bind(this,
+            function() {
+                this.activate();
+            }));
+
         this._section = new PopupMenu.PopupMenuSection();
         this.addActor(this._section.actor);
 
@@ -485,6 +490,7 @@ StatusMenuButton.prototype = {
         let item;
 
         item = new IMStatusChooserItem();
+        item.connect('activate', Lang.bind(this, this._onMyAccountActivate));
         this.menu.addMenuItem(item);
 
         item = new PopupMenu.PopupSwitchMenuItem(_("Do Not Disturb"));



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