[gnome-shell-extensions/wip/rstrode/heads-up-display: 1/62] apps-menu: add logo icon to Applications menu




commit d757cf6200ea0d9090e82ddb48db6ccdc4180ad6
Author: Ray Strode <rstrode redhat com>
Date:   Tue Jan 21 16:48:17 2014 -0500

    apps-menu: add logo icon to Applications menu
    
    Brand requested it.

 extensions/apps-menu/extension.js | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js
index d7ba570..d62e3d7 100644
--- a/extensions/apps-menu/extension.js
+++ b/extensions/apps-menu/extension.js
@@ -390,6 +390,14 @@ class ApplicationsButton extends PanelMenu.Button {
 
         let hbox = new St.BoxLayout({ style_class: 'panel-status-menu-box' });
 
+        let iconFile = Gio.File.new_for_path(
+            '/usr/share/icons/hicolor/scalable/apps/start-here.svg');
+        this._icon = new St.Icon({
+            gicon: new Gio.FileIcon({ file: iconFile }),
+            style_class: 'panel-logo-icon'
+        });
+        hbox.add_actor(this._icon);
+
         this._label = new St.Label({
             text: _('Applications'),
             y_expand: true,


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