Skip to content

Commit bd9ad22

Browse files
authored
recent applet: Fix label alignment (#13302)
1 parent edc978b commit bd9ad22

File tree

1 file changed

+5
-1
lines changed
  • files/usr/share/cinnamon/applets/recent@cinnamon.org

1 file changed

+5
-1
lines changed

files/usr/share/cinnamon/applets/recent@cinnamon.org/applet.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const Clutter = imports.gi.Clutter;
12
const DocInfo = imports.misc.docInfo;
23
const Gtk = imports.gi.Gtk;
34
const Gio = imports.gi.Gio;
@@ -21,7 +22,10 @@ class MyPopupMenuItem extends PopupMenu.PopupBaseMenuItem {
2122
this.box.add(this.icon);
2223
}
2324

24-
this.label = new St.Label({ text: text });
25+
this.label = new St.Label({
26+
text: text,
27+
y_align: Clutter.ActorAlign.CENTER,
28+
});
2529
this.box.add(this.label);
2630
this.addActor(this.box);
2731
}

0 commit comments

Comments
 (0)