[gnome-shell] popupMenu: Center the labels in submenu items
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] popupMenu: Center the labels in submenu items
- Date: Thu, 19 Sep 2013 16:42:00 +0000 (UTC)
commit 33a4f59cfb96a018fc69ac415bf18d6531bdf435
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Sep 18 17:36:09 2013 -0400
popupMenu: Center the labels in submenu items
https://bugzilla.gnome.org/show_bug.cgi?id=708330
js/ui/popupMenu.js | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 3e57562..eeb777d 100644
--- a/js/ui/popupMenu.js
+++ b/js/ui/popupMenu.js
@@ -948,14 +948,18 @@ const PopupSubMenuMenuItem = new Lang.Class({
this.actor.add_child(this.icon);
}
- this.label = new St.Label({ text: text });
+ this.label = new St.Label({ text: text,
+ y_expand: true,
+ y_align: Clutter.ActorAlign.CENTER });
this.actor.add_child(this.label);
this.actor.label_actor = this.label;
let expander = new St.Bin({ style_class: 'popup-menu-item-expander' });
this.actor.add(expander, { expand: true });
- this.status = new St.Label({ style_class: 'popup-status-menu-item' });
+ this.status = new St.Label({ style_class: 'popup-status-menu-item',
+ y_expand: true,
+ y_align: Clutter.ActorAlign.CENTER });
this.actor.add_child(this.status);
this._triangle = new St.Label({ text: '\u25B8',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]