popupMenu: Never add ornament padding to image items

PopupImageMenuItem moves the ornament after the label, so we don't
need the additional padding that accounts for visible ornaments
for regular items.

Spotted by Sebastian Keller.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2843>
This commit is contained in:
Florian Müllner 2023-08-01 19:13:10 +03:00 committed by Marge Bot
parent ad34082fd1
commit 8e9398be7e

View File

@ -474,6 +474,11 @@ class PopupImageMenuItem extends PopupBaseMenuItem {
else
this._icon.icon_name = icon;
}
_updateOrnamentStyle() {
// we move the ornament after the label, so we don't need
// additional padding regardless of ornament visibility
}
});
var PopupMenuBase = class extends Signals.EventEmitter {