[gnome-shell-extensions] apps-menu: Center app labels
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] apps-menu: Center app labels
- Date: Wed, 26 Nov 2014 18:07:17 +0000 (UTC)
commit 92012f6626cb154c9ea9de0e39ffd0f0761ae2fd
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Nov 26 19:03:49 2014 +0100
apps-menu: Center app labels
Currently labels are not vertically centered, unlike icons.
Fix this.
https://bugzilla.gnome.org/show_bug.cgi?id=740724
extensions/apps-menu/extension.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js
index a8fb74d..f8438fd 100644
--- a/extensions/apps-menu/extension.js
+++ b/extensions/apps-menu/extension.js
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]