From bb4f0d0ecdd7c603690f3b34921f9a43e81b2370 Mon Sep 17 00:00:00 2001 From: rpm-build Date: Sep 25 2020 17:50:56 +0000 Subject: 0001-apps-menu-Explicitly-set-label_actor.patch patch_name: 0001-apps-menu-Explicitly-set-label_actor.patch present_in_specfile: true location_in_specfile: 4 --- diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js index d62e3d7..cc399c6 100644 --- a/extensions/apps-menu/extension.js +++ b/extensions/apps-menu/extension.js @@ -29,7 +29,9 @@ class ActivitiesMenuItem extends PopupMenu.PopupBaseMenuItem { constructor(button) { super(); 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(event) { @@ -120,7 +122,9 @@ class CategoryMenuItem extends PopupMenu.PopupBaseMenuItem { 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', this._onMotionEvent.bind(this)); }