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

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