Blob Blame History Raw
From 6d8c4482fe9f423dceb9671958ed388778ff62a8 Mon Sep 17 00:00:00 2001
From: Ray Strode <rstrode@redhat.com>
Date: Tue, 21 Jan 2014 16:48:17 -0500
Subject: [PATCH] apps-menu: add logo icon to Applications menu

Brand requested it.
---
 extensions/apps-menu/extension.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js
index f8438fd..2d198c1 100644
--- a/extensions/apps-menu/extension.js
+++ b/extensions/apps-menu/extension.js
@@ -1,6 +1,7 @@
 /* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
 
 const Atk = imports.gi.Atk;
+const Gio = imports.gi.Gio;
 const GMenu = imports.gi.GMenu;
 const Lang = imports.lang;
 const Shell = imports.gi.Shell;
@@ -280,6 +281,11 @@ const ApplicationsButton = new Lang.Class({
 
         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,
                                      y_align: Clutter.ActorAlign.CENTER });
-- 
2.3.3