Blame SOURCES/0001-apps-menu-Explicitly-set-label_actor.patch

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