apps-menu: Set label_actor of Category items
Category items are based on BaseMenuItem rather than MenuItem, so the accessible relationship isn't set up automatically for us. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/319>
This commit is contained in:
committed by
Marge Bot
parent
9c7a086870
commit
02ff72b2f0
@@ -125,7 +125,10 @@ class CategoryMenuItem extends PopupMenu.PopupBaseMenuItem {
|
||||
else
|
||||
name = _('Favorites');
|
||||
|
||||
this.add_child(new St.Label({text: name}));
|
||||
const label = new St.Label({text: name});
|
||||
this.add_child(label);
|
||||
this.actor.label_actor = label;
|
||||
|
||||
this.connect('motion-event', this._onMotionEvent.bind(this));
|
||||
this.connect('notify::active', this._onActiveChanged.bind(this));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user