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

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