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:
Giovanni Campagna
2012-09-01 19:23:03 +02:00
parent 0ab46d5c70
commit 48d4956ee0
5 changed files with 4 additions and 7 deletions
-1
View File
@@ -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 });
+1 -1
View File
@@ -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));
+2 -3
View File
@@ -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));
-1
View File
@@ -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();
+1 -1
View File
@@ -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 = [];