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

0999a2
From b5db4d318546654f4e9c1e4999fa00456441f105 Mon Sep 17 00:00:00 2001
0999a2
From: Ray Strode <rstrode@redhat.com>
0999a2
Date: Wed, 15 Jan 2014 16:45:34 -0500
0999a2
Subject: [PATCH] panel: add an icon to the ActivitiesButton
0999a2
0999a2
Requested by brand
0999a2
---
0999a2
 data/theme/gnome-shell-sass/widgets/_panel.scss |  5 +++++
0999a2
 js/ui/panel.js                                  | 11 ++++++++++-
0999a2
 2 files changed, 15 insertions(+), 1 deletion(-)
0999a2
0999a2
diff --git a/data/theme/gnome-shell-sass/widgets/_panel.scss b/data/theme/gnome-shell-sass/widgets/_panel.scss
0999a2
index 1f4650773..5f323cbc8 100644
0999a2
--- a/data/theme/gnome-shell-sass/widgets/_panel.scss
0999a2
+++ b/data/theme/gnome-shell-sass/widgets/_panel.scss
0999a2
@@ -85,6 +85,11 @@ $panel_transition_duration: 250ms; // same as the overview transition duration
0999a2
       // dimensions of the icon are hardcoded
0999a2
     }
0999a2
 
0999a2
+    .panel-logo-icon {
0999a2
+      padding-right: .4em;
0999a2
+      icon-size: 1em;
0999a2
+    }
0999a2
+
0999a2
     &#panelActivities {
0999a2
       -natural-hpadding: $base_padding * 3;
0999a2
     }
0999a2
diff --git a/js/ui/panel.js b/js/ui/panel.js
0999a2
index 1474886ef..ad11f4ba2 100644
0999a2
--- a/js/ui/panel.js
0999a2
+++ b/js/ui/panel.js
0999a2
@@ -390,11 +390,20 @@ class ActivitiesButton extends PanelMenu.Button {
0999a2
 
0999a2
         this.name = 'panelActivities';
0999a2
 
0999a2
+        const box = new St.BoxLayout();
0999a2
+        this.add_child(box);
0999a2
+        const iconFile = Gio.File.new_for_path('/usr/share/icons/hicolor/scalable/apps/start-here.svg');
0999a2
+        this._icon = new St.Icon({
0999a2
+            gicon: new Gio.FileIcon({ file: iconFile }),
0999a2
+            style_class: 'panel-logo-icon',
0999a2
+        });
0999a2
+        box.add_child(this._icon);
0999a2
+
0999a2
         /* Translators: If there is no suitable word for "Activities"
0999a2
            in your language, you can use the word for "Overview". */
0999a2
         this._label = new St.Label({ text: _("Activities"),
0999a2
                                      y_align: Clutter.ActorAlign.CENTER });
0999a2
-        this.add_actor(this._label);
0999a2
+        box.add_child(this._label);
0999a2
 
0999a2
         this.label_actor = this._label;
0999a2
 
0999a2
-- 
0999a2
2.31.1
0999a2