[gnome-shell-extensions/gnome-3-14] apps-menu: Center app labels



commit 79f263d1edbd6f7cfe13cf89933941b439325cee
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]