From 7e7e3ec0169c262d009923015969393c2c1ff32a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 23 May 2017 11:04:28 +0200 Subject: [PATCH] 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 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index c5bf28f59..bb06c1bcd 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; }));