[gnome-shell] lookingGlass: Use standard icon names for GC icon



commit 7e7e3ec0169c262d009923015969393c2c1ff32a
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue May 23 11:04:28 2017 +0200

    lookingGlass: Use standard icon names for GC icon
    
    Commit b929320d4 added a toolbar item to force garbage collection,
    however it won't be visible for most users, as it uses a non-standard
    legacy icon name (the default icon theme dropped it as far back as 2009).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782982

 js/ui/lookingGlass.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js
index c5bf28f..bb06c1b 100644
--- a/js/ui/lookingGlass.js
+++ b/js/ui/lookingGlass.js
@@ -833,19 +833,19 @@ const LookingGlass = new Lang.Class({
             return Clutter.EVENT_STOP;
         }));
 
-        let gcIcon = new St.Icon({ icon_name: 'gnome-fs-trash-full',
+        let gcIcon = new St.Icon({ icon_name: 'user-trash-full',
                                    icon_size: 24 });
         toolbar.add_actor(gcIcon);
         gcIcon.reactive = true;
         gcIcon.connect('button-press-event', Lang.bind(this, function () {
-           gcIcon.icon_name = 'gnome-fs-trash-empty';
+           gcIcon.icon_name = 'user-trash';
            System.gc();
            this._timeoutId = Mainloop.timeout_add(500, Lang.bind(this, function () {
-                gcIcon.icon_name = 'gnome-fs-trash-full';
+                gcIcon.icon_name = 'user-trash-full';
                 this._timeoutId = 0;
                 return GLib.SOURCE_REMOVE;
            }));
-           GLib.Source.set_name_by_id(this._timeoutId, '[gnome-shell] gcIcon.icon_name = 
\'gnome-fs-trash-full\'');
+           GLib.Source.set_name_by_id(this._timeoutId, '[gnome-shell] gcIcon.icon_name = 
\'user-trash-full\'');
            return Clutter.EVENT_PROPAGATE;
         }));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]