[gnome-shell/wip/aggregate-menu: 22/63] popupMenu: Add a status label and icon to submenu menu items
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/aggregate-menu: 22/63] popupMenu: Add a status label and icon to submenu menu items
- Date: Fri, 14 Jun 2013 18:22:43 +0000 (UTC)
commit e5c1ac9ff052681e5423efb926ee8fa908f55e76
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jun 6 14:17:41 2013 -0400
popupMenu: Add a status label and icon to submenu menu items
This will allow us to implement the new submenu designs in the
aggregate menu.
js/ui/popupMenu.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 3332fe9..ad7c95a 100644
--- a/js/ui/popupMenu.js
+++ b/js/ui/popupMenu.js
@@ -1313,9 +1313,16 @@ const PopupSubMenuMenuItem = new Lang.Class({
this.actor.add_style_class_name('popup-submenu-menu-item');
+ this.icon = new St.Icon({ style_class: 'popup-menu-icon' });
+ this.addActor(this.icon, { align: St.Align.MIDDLE });
+
this.label = new St.Label({ text: text });
this.addActor(this.label);
this.actor.label_actor = this.label;
+
+ this.status = new St.Label({ style_class: 'popup-status-menu-item' });
+ this.addActor(this.status, { align: St.Align.END });
+
this._triangle = new St.Label({ text: '\u25B8' });
this.addActor(this._triangle, { align: St.Align.END });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]