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

f3cbb9
From ea91b6c39c1c17abca0a5f34b3047a5cd5314127 Mon Sep 17 00:00:00 2001
4c1248
From: Ray Strode <rstrode@redhat.com>
4c1248
Date: Wed, 15 Jan 2014 16:45:34 -0500
4c1248
Subject: [PATCH] panel: add an icon to the ActivitiesButton
4c1248
4c1248
Requested by brand
4c1248
---
f3cbb9
 data/theme/gnome-shell-high-contrast.css | 3 +++
f3cbb9
 data/theme/gnome-shell.css               | 3 +++
f3cbb9
 js/ui/panel.js                           | 9 ++++++++-
f3cbb9
 3 files changed, 14 insertions(+), 1 deletion(-)
4c1248
f3cbb9
diff --git a/data/theme/gnome-shell-high-contrast.css b/data/theme/gnome-shell-high-contrast.css
f3cbb9
index 28922be77..3ce5278e1 100644
f3cbb9
--- a/data/theme/gnome-shell-high-contrast.css
f3cbb9
+++ b/data/theme/gnome-shell-high-contrast.css
f3cbb9
@@ -685,6 +685,9 @@ StScrollBar {
f3cbb9
       -st-icon-style: symbolic;
f3cbb9
       margin-left: 4px;
f3cbb9
       margin-right: 4px; }
f3cbb9
+    #panel .panel-button .panel-logo-icon {
f3cbb9
+      padding-right: .4em;
f3cbb9
+      icon-size: 1em; }
f3cbb9
     #panel .panel-button:hover {
f3cbb9
       color: white; }
f3cbb9
     #panel .panel-button:active, #panel .panel-button:overview, #panel .panel-button:focus, #panel .panel-button:checked {
4c1248
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
f3cbb9
index 690722372..342bebe9d 100644
4c1248
--- a/data/theme/gnome-shell.css
4c1248
+++ b/data/theme/gnome-shell.css
f3cbb9
@@ -685,6 +685,9 @@ StScrollBar {
f3cbb9
       -st-icon-style: symbolic;
f3cbb9
       margin-left: 4px;
f3cbb9
       margin-right: 4px; }
f3cbb9
+    #panel .panel-button .panel-logo-icon {
f3cbb9
+      padding-right: .4em;
f3cbb9
+      icon-size: 1em; }
f3cbb9
     #panel .panel-button:hover {
f3cbb9
       color: white; }
f3cbb9
     #panel .panel-button:active, #panel .panel-button:overview, #panel .panel-button:focus, #panel .panel-button:checked {
4c1248
diff --git a/js/ui/panel.js b/js/ui/panel.js
f3cbb9
index e05a6223c..d07bbaa7b 100644
4c1248
--- a/js/ui/panel.js
4c1248
+++ b/js/ui/panel.js
f3cbb9
@@ -409,11 +409,18 @@ const ActivitiesButton = new Lang.Class({
4c1248
 
4c1248
         this.actor.name = 'panelActivities';
4c1248
 
4c1248
+        let box = new St.BoxLayout();
4c1248
+        this.actor.add_actor(box);
4c1248
+        let iconFile = Gio.File.new_for_path('/usr/share/icons/hicolor/scalable/apps/start-here.svg');
4c1248
+        this._icon = new St.Icon({ gicon: new Gio.FileIcon({ file: iconFile }),
4c1248
+                                   style_class: 'panel-logo-icon' });
4c1248
+        box.add_actor(this._icon);
4c1248
+
4c1248
         /* Translators: If there is no suitable word for "Activities"
4c1248
            in your language, you can use the word for "Overview". */
580c05
         this._label = new St.Label({ text: _("Activities"),
580c05
                                      y_align: Clutter.ActorAlign.CENTER });
4c1248
-        this.actor.add_actor(this._label);
4c1248
+        box.add_actor(this._label);
4c1248
 
4c1248
         this.actor.label_actor = this._label;
4c1248
 
4c1248
-- 
f3cbb9
2.12.0
4c1248