|
|
7d7a48 |
From 52ee25effa3debb21307e33ac223cf48ac7bc57a Mon Sep 17 00:00:00 2001
|
|
|
7d7a48 |
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
|
|
|
7d7a48 |
Date: Thu, 17 Mar 2016 17:15:38 +0100
|
|
|
7d7a48 |
Subject: [PATCH] apps-menu: Explicitly set label_actor
|
|
|
7d7a48 |
|
|
|
7d7a48 |
For some reason orca fails to pick up the label of category items,
|
|
|
7d7a48 |
so set the label_actor explicitly as workaround.
|
|
|
7d7a48 |
---
|
|
|
7d7a48 |
extensions/apps-menu/extension.js | 8 ++++++--
|
|
|
7d7a48 |
1 file changed, 6 insertions(+), 2 deletions(-)
|
|
|
7d7a48 |
|
|
|
7d7a48 |
diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js
|
|
|
7d7a48 |
index d62e3d7..cc399c6 100644
|
|
|
7d7a48 |
--- a/extensions/apps-menu/extension.js
|
|
|
7d7a48 |
+++ b/extensions/apps-menu/extension.js
|
|
|
7d7a48 |
@@ -29,7 +29,9 @@ class ActivitiesMenuItem extends PopupMenu.PopupBaseMenuItem {
|
|
|
7d7a48 |
constructor(button) {
|
|
|
7d7a48 |
super();
|
|
|
7d7a48 |
this._button = button;
|
|
|
7d7a48 |
- this.actor.add_child(new St.Label({ text: _('Activities Overview') }));
|
|
|
7d7a48 |
+ let label = new St.Label({ text: _('Activities Overview') });
|
|
|
7d7a48 |
+ this.actor.add_child(label);
|
|
|
7d7a48 |
+ this.actor.label_actor = label;
|
|
|
7d7a48 |
}
|
|
|
7d7a48 |
|
|
|
7d7a48 |
activate(event) {
|
|
|
7d7a48 |
@@ -120,7 +122,9 @@ class CategoryMenuItem extends PopupMenu.PopupBaseMenuItem {
|
|
|
7d7a48 |
else
|
|
|
7d7a48 |
name = _('Favorites');
|
|
|
7d7a48 |
|
|
|
7d7a48 |
- this.actor.add_child(new St.Label({ text: name }));
|
|
|
7d7a48 |
+ let label = new St.Label({ text: name });
|
|
|
7d7a48 |
+ this.actor.add_child(label);
|
|
|
7d7a48 |
+ this.actor.label_actor = label;
|
|
|
7d7a48 |
this.actor.connect('motion-event', this._onMotionEvent.bind(this));
|
|
|
7d7a48 |
}
|
|
|
7d7a48 |
|
|
|
7d7a48 |
--
|
|
|
7d7a48 |
2.21.0
|
|
|
7d7a48 |
|