Blame SOURCES/0001-panel-add-an-icon-to-the-ActivitiesButton.patch

21e770
From aadb0e19999c339ac1d6501a2e52b363e57e26ef Mon Sep 17 00:00:00 2001
c7fac9
From: Ray Strode <rstrode@redhat.com>
c7fac9
Date: Wed, 15 Jan 2014 16:45:34 -0500
c7fac9
Subject: [PATCH] panel: add an icon to the ActivitiesButton
c7fac9
c7fac9
Requested by brand
c7fac9
---
c7fac9
 data/theme/gnome-shell-sass/_common.scss | 5 +++++
c7fac9
 js/ui/panel.js                           | 9 ++++++++-
c7fac9
 2 files changed, 13 insertions(+), 1 deletion(-)
c7fac9
c7fac9
diff --git a/data/theme/gnome-shell-sass/_common.scss b/data/theme/gnome-shell-sass/_common.scss
21e770
index a382ce561..3b0d2bf04 100644
c7fac9
--- a/data/theme/gnome-shell-sass/_common.scss
c7fac9
+++ b/data/theme/gnome-shell-sass/_common.scss
21e770
@@ -769,6 +769,11 @@ StScrollBar {
c7fac9
       //dimensions of the icon are hardcoded
c7fac9
     }
c7fac9
 
c7fac9
+    .panel-logo-icon {
c7fac9
+      padding-right: .4em;
c7fac9
+      icon-size: 1em;
c7fac9
+    }
c7fac9
+
21e770
     &:hover {
21e770
       color: lighten($fg_color, 10%);
21e770
     }
c7fac9
diff --git a/js/ui/panel.js b/js/ui/panel.js
21e770
index 16484850a..ede1c2b82 100644
c7fac9
--- a/js/ui/panel.js
c7fac9
+++ b/js/ui/panel.js
21e770
@@ -465,11 +465,18 @@ class ActivitiesButton extends PanelMenu.Button {
c7fac9
 
c7fac9
         this.actor.name = 'panelActivities';
c7fac9
 
c7fac9
+        let box = new St.BoxLayout();
c7fac9
+        this.actor.add_actor(box);
c7fac9
+        let iconFile = Gio.File.new_for_path('/usr/share/icons/hicolor/scalable/apps/start-here.svg');
c7fac9
+        this._icon = new St.Icon({ gicon: new Gio.FileIcon({ file: iconFile }),
c7fac9
+                                   style_class: 'panel-logo-icon' });
c7fac9
+        box.add_actor(this._icon);
c7fac9
+
c7fac9
         /* Translators: If there is no suitable word for "Activities"
c7fac9
            in your language, you can use the word for "Overview". */
c7fac9
         this._label = new St.Label({ text: _("Activities"),
c7fac9
                                      y_align: Clutter.ActorAlign.CENTER });
c7fac9
-        this.actor.add_actor(this._label);
c7fac9
+        box.add_actor(this._label);
c7fac9
 
c7fac9
         this.actor.label_actor = this._label;
c7fac9
 
c7fac9
-- 
21e770
2.21.0
c7fac9