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