From 6aa02c5edc557e08199736e38e93f2ee95224d42 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Wed, 17 Feb 2010 10:52:11 +0100 Subject: [PATCH] [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 --- js/ui/altTab.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/ui/altTab.js b/js/ui/altTab.js index f7a8269c1..46e723dc3 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -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 }); }