From 211feb53560ddae28d4f1b782fb97566e38d9d6e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
Date: Thu, 17 Mar 2016 17:15:38 +0100
Subject: [PATCH] apps-menu: Explicitly set label_actor
For some reason orca fails to pick up the label of category items,
so set the label_actor explicitly as workaround.
---
extensions/apps-menu/extension.js | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js
index 719f298..1f68ea4 100644
--- a/extensions/apps-menu/extension.js
+++ b/extensions/apps-menu/extension.js
@@ -37,7 +37,9 @@ const ActivitiesMenuItem = new Lang.Class({
_init: function(button) {
this.parent();
this._button = button;
- this.actor.add_child(new St.Label({ text: _("Activities Overview") }));
+ let label = new St.Label({ text: _("Activities Overview") });
+ this.actor.add_child(label);
+ this.actor.label_actor = label;
},
activate: function(event) {
@@ -114,7 +116,9 @@ const CategoryMenuItem = new Lang.Class({
else
name = _("Favorites");
- this.actor.add_child(new St.Label({ text: name }));
+ let label = new St.Label({ text: name });
+ this.actor.add_child(label);
+ this.actor.label_actor = label;
this.actor.connect('motion-event', Lang.bind(this, this._onMotionEvent));
},
--
2.9.3