Package: gnome-shell-extensions / 3.14.2-1

apps-center-labels.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 79f263d1edbd6f7cfe13cf89933941b439325cee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
Date: Wed, 26 Nov 2014 19:03:49 +0100
Subject: apps-menu: Center app labels

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

https://bugzilla.gnome.org/show_bug.cgi?id=740724

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;
 
-- 
cgit v0.10.1