[gnome-shell] [statusMenu] Use user status icons from icon theme



commit e6a70e4676a29bbd2f1eb640060e07c8ddd5f483
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Jun 8 15:01:27 2010 +0200

    [statusMenu] Use user status icons from icon theme
    
    Currently, we use 'gtk-yes', 'gtk-no' and 'gtk-media-pause' as
    user status icons. It seems more logical to use the dedicated
    icons from gnome-icon-theme instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=620374

 js/ui/statusMenu.js |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)
---
diff --git a/js/ui/statusMenu.js b/js/ui/statusMenu.js
index ac095dd..40d97be 100644
--- a/js/ui/statusMenu.js
+++ b/js/ui/statusMenu.js
@@ -40,11 +40,10 @@ StatusMenuButton.prototype = {
         box.add(this._iconBox, { y_align: St.Align.MIDDLE, y_fill: false });
 
         let textureCache = St.TextureCache.get_default();
-        // FIXME: these icons are all wrong (likewise in createSubMenu)
-        this._availableIcon = textureCache.load_icon_name('gtk-yes', 16);
-        this._busyIcon = textureCache.load_icon_name('gtk-no', 16);
-        this._invisibleIcon = textureCache.load_icon_name('gtk-close', 16);
-        this._idleIcon = textureCache.load_icon_name('gtk-media-pause', 16);
+        this._availableIcon = textureCache.load_icon_name('user-available', 16);
+        this._busyIcon = textureCache.load_icon_name('user-busy', 16);
+        this._invisibleIcon = textureCache.load_icon_name('user-invisible', 16);
+        this._idleIcon = textureCache.load_icon_name('user-idle', 16);
 
         this._presence.connect('StatusChanged', Lang.bind(this, this._updatePresenceIcon));
         this._presence.getStatus(Lang.bind(this, this._updatePresenceIcon));
@@ -89,15 +88,15 @@ StatusMenuButton.prototype = {
     _createSubMenu: function() {
         let item;
 
-        item = new PopupMenu.PopupImageMenuItem(_("Available"), 'gtk-yes', true);
+        item = new PopupMenu.PopupImageMenuItem(_("Available"), 'user-available', true);
         item.connect('activate', Lang.bind(this, this._setPresenceStatus, GnomeSession.PresenceStatus.AVAILABLE));
         this.menu.addMenuItem(item);
 
-        item = new PopupMenu.PopupImageMenuItem(_("Busy"), 'gtk-no', true);
+        item = new PopupMenu.PopupImageMenuItem(_("Busy"), 'user-busy', true);
         item.connect('activate', Lang.bind(this, this._setPresenceStatus, GnomeSession.PresenceStatus.BUSY));
         this.menu.addMenuItem(item);
 
-        item = new PopupMenu.PopupImageMenuItem(_("Invisible"), 'gtk-close', true);
+        item = new PopupMenu.PopupImageMenuItem(_("Invisible"), 'user-invisible', true);
         item.connect('activate', Lang.bind(this, this._setPresenceStatus, GnomeSession.PresenceStatus.INVISIBLE));
         this.menu.addMenuItem(item);
 



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