[gnome-shell] popupMenu: Change the position of the icon in PopupImageMenuItem



commit 73680e2433f4b42bd9d38d27d74f3e4a91a13537
Author: Mario Sanchez Prada <mario endlessm com>
Date:   Thu May 4 18:09:39 2017 +0100

    popupMenu: Change the position of the icon in PopupImageMenuItem
    
    We are moving the icon to be added before the text instead of after,
    which is consistent with other menu items in other popup menus, such
    as the ones in the system indicator's popup menu.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782166

 js/ui/popupMenu.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 17a5a91..fbe409e 100644
--- a/js/ui/popupMenu.js
+++ b/js/ui/popupMenu.js
@@ -394,10 +394,10 @@ const PopupImageMenuItem = new Lang.Class({
     _init: function (text, icon, params) {
         this.parent(params);
 
-        this.label = new St.Label({ text: text });
-        this.actor.add_child(this.label);
         this._icon = new St.Icon({ style_class: 'popup-menu-icon' });
         this.actor.add_child(this._icon, { align: St.Align.END });
+        this.label = new St.Label({ text: text });
+        this.actor.add_child(this.label);
         this.actor.label_actor = this.label;
 
         this.setIcon(icon);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]