[gnome-shell] Bug 591267 - Fix places icon centering
- From: Colin Walters <walters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] Bug 591267 - Fix places icon centering
- Date: Wed, 19 Aug 2009 03:16:14 +0000 (UTC)
commit 4f5c3b4b740308628daf4a29698bd592bc345759
Author: Colin Walters <walters verbum org>
Date: Thu Aug 13 14:59:16 2009 -0400
Bug 591267 - Fix places icon centering
Pack the place icon in a vertical centering box to avoid the horizontal
box stretching it vertically.
js/ui/places.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/places.js b/js/ui/places.js
index f4d1609..7b90dac 100644
--- a/js/ui/places.js
+++ b/js/ui/places.js
@@ -32,7 +32,9 @@ PlaceDisplay.prototype = {
ellipsize: Pango.EllipsizeMode.END,
color: GenericDisplay.ITEM_DISPLAY_NAME_COLOR,
text: name });
- this.actor.append(iconTexture, Big.BoxPackFlags.NONE);
+ let iconBox = new Big.Box({ y_align: Big.BoxAlignment.CENTER });
+ iconBox.append(iconTexture, Big.BoxPackFlags.NONE);
+ this.actor.append(iconBox, Big.BoxPackFlags.NONE);
this.actor.append(text, Big.BoxPackFlags.EXPAND);
}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]