[gnome-shell] [AppSwitcher] Make sure that fallback icons have correct box sizes
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [AppSwitcher] Make sure that fallback icons have correct box sizes
- Date: Wed, 17 Feb 2010 09:52:22 +0000 (UTC)
commit 6aa02c5edc557e08199736e38e93f2ee95224d42
Author: Adel Gadllah <adel gadllah gmail com>
Date: Wed Feb 17 10:52:11 2010 +0100
[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 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index f7a8269..46e723d 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 });
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]