apps-menu: Center app labels

Currently labels are not vertically centered, unlike icons.
Fix this.

https://bugzilla.gnome.org/show_bug.cgi?id=740724
This commit is contained in:
Florian Müllner
2014-11-26 19:03:49 +01:00
parent 92b7c44e6d
commit 92012f6626

View File

@@ -58,7 +58,8 @@ const ApplicationMenuItem = new Lang.Class({
this._iconBin = new St.Bin();
this.actor.add_child(this._iconBin);
let appLabel = new St.Label({ text: app.get_name() });
let appLabel = new St.Label({ text: app.get_name(), y_expand: true,
y_align: Clutter.ActorAlign.CENTER });
this.actor.add_child(appLabel, { expand: true });
this.actor.label_actor = appLabel;