[gnome-shell] popupMenu: Append ornament in image menu items



commit 7647e5590a78c95d6aac3ca4283621f1d2841d9c
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Jul 23 17:04:57 2022 +0200

    popupMenu: Append ornament in image menu items
    
    Having both image and ornament in front of the label looks odd.
    
    Keep the image where it is, and move the ornament to the end.
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2389>

 js/ui/popupMenu.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 6c5549d35c..c7e66a5ccd 100644
--- a/js/ui/popupMenu.js
+++ b/js/ui/popupMenu.js
@@ -468,6 +468,8 @@ class PopupImageMenuItem extends PopupBaseMenuItem {
         this.add_child(this.label);
         this.label_actor = this.label;
 
+        this.set_child_above_sibling(this._ornamentLabel, this.label);
+
         this.setIcon(icon);
     }
 


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