[AppSwitcher] Make sure that fallback icons have correct box sizes
Fallback icons (i.e icons < requested size) cause the box in the switcher to be a smaller rectangular item instead of the normal sized square one. Fix that by putting the icons in a St.Bin with the correct size. https://bugzilla.gnome.org/show_bug.cgi?id=609777
This commit is contained in:
parent
97e19d7d4a
commit
6aa02c5edc
@ -592,7 +592,10 @@ AppIcon.prototype = {
|
||||
this.actor = new St.BoxLayout({ style_class: "alt-tab-app",
|
||||
vertical: true });
|
||||
this._icon = this.app.create_icon_texture(POPUP_APPICON_SIZE);
|
||||
this.actor.add(this._icon, { x_fill: false, y_fill: false } );
|
||||
let iconBin = new St.Bin({height: POPUP_APPICON_SIZE, width: POPUP_APPICON_SIZE});
|
||||
iconBin.child = this._icon;
|
||||
|
||||
this.actor.add(iconBin, { x_fill: false, y_fill: false } );
|
||||
this._label = new St.Label({ text: this.app.get_name() });
|
||||
this.actor.add(this._label, { x_fill: false });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user