Skip to content

Commit 112d51a

Browse files
committed
sound applet: Fix alignment of icons in 'Launch player' submenu
when a player is active. Fixes linuxmint/mint21.2-beta#59
1 parent ae4523d commit 112d51a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: files/usr/share/cinnamon/applets/[email protected]/applet.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,9 @@ class MediaPlayerLauncher extends PopupMenu.PopupBaseMenuItem {
905905
this.label = new St.Label({ text: app.get_name() });
906906
this.addActor(this.label);
907907
this._icon = app.create_icon_texture(ICON_SIZE);
908-
this.addActor(this._icon, { expand: false });
908+
this._icon_bin = new St.Bin({ x_align: St.Align.END, child: this._icon });
909+
this.addActor(this._icon_bin, { expand: true, span: -1, align: St.Align.END });
910+
909911
this.connect("activate", (event) => this._onActivate(event));
910912
}
911913

0 commit comments

Comments
 (0)