Port all extensions to the new symbolic icon handling
St.IconType was removed from master, St.Icon users are expected to add '-symbolic' themselves.
This commit is contained in:
@@ -379,7 +379,6 @@ const WindowIcon = new Lang.Class({
|
||||
this.appIcon.x_expand = this.appIcon.y_expand = true;
|
||||
} else {
|
||||
this.appIcon = new St.Icon({ icon_name: 'icon-missing',
|
||||
icon_type: St.IconType.FULLCOLOR,
|
||||
icon_size: size,
|
||||
x_expand: true,
|
||||
y_expand: true });
|
||||
|
||||
@@ -38,7 +38,7 @@ const ApplicationsButton = new Lang.Class({
|
||||
Extends: PanelMenu.SystemStatusButton,
|
||||
|
||||
_init: function() {
|
||||
this.parent('start-here');
|
||||
this.parent('start-here-symbolic');
|
||||
|
||||
this._appSys = Shell.AppSystem.get_default();
|
||||
this._installedChangedId = this._appSys.connect('installed-changed', Lang.bind(this, this._refresh));
|
||||
|
||||
@@ -30,8 +30,7 @@ const DriveMenuItem = new Lang.Class({
|
||||
this.addActor(this.label);
|
||||
this.actor.label_actor = this.label;
|
||||
|
||||
let ejectIcon = new St.Icon({ icon_name: 'media-eject',
|
||||
icon_type: St.IconType.SYMBOLIC,
|
||||
let ejectIcon = new St.Icon({ icon_name: 'media-eject-symbolic',
|
||||
style_class: 'popup-menu-icon ' });
|
||||
let ejectButton = new St.Button({ child: ejectIcon });
|
||||
ejectButton.connect('clicked', Lang.bind(this, this._eject));
|
||||
@@ -54,7 +53,7 @@ const DriveMenu = new Lang.Class({
|
||||
Extends: PanelMenu.SystemStatusButton,
|
||||
|
||||
_init: function() {
|
||||
this.parent('media-eject', _("Removable devices"));
|
||||
this.parent('media-eject-symbolic', _("Removable devices"));
|
||||
|
||||
this._manager = new PlaceDisplay.PlacesManager();
|
||||
this._updatedId = this._manager.connect('mounts-updated', Lang.bind(this, this._update));
|
||||
|
||||
@@ -141,7 +141,6 @@ Source.prototype = {
|
||||
|
||||
if (!this._iconUri) {
|
||||
iconBox.child = new St.Icon({ icon_name: 'avatar-default',
|
||||
icon_type: St.IconType.FULLCOLOR,
|
||||
icon_size: iconBox._size });
|
||||
} else {
|
||||
let textureCache = St.TextureCache.get_default();
|
||||
|
||||
@@ -26,7 +26,7 @@ const PlacesMenu = new Lang.Class({
|
||||
Extends: PanelMenu.SystemStatusButton,
|
||||
|
||||
_init: function() {
|
||||
this.parent('folder');
|
||||
this.parent('folder-symbolic');
|
||||
this.placesManager = new PlaceDisplay.PlacesManager();
|
||||
|
||||
this.defaultItems = [];
|
||||
|
||||
Reference in New Issue
Block a user