[gnome-shell/wip/carlosg/pad-osd-menus: 1/2] padOsd: Set menu manager on actions popup menu




commit a7e034aac87ffc1421dfd905b87977844e8b34ad
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Apr 23 19:51:11 2022 +0200

    padOsd: Set menu manager on actions popup menu
    
    Menus do need a menu manager to handle grabs for them, this
    is more necessary now that the padOsd do also push a
    Clutter.Grab.

 js/ui/padOsd.js | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/js/ui/padOsd.js b/js/ui/padOsd.js
index 065df47788..e23213ccfa 100644
--- a/js/ui/padOsd.js
+++ b/js/ui/padOsd.js
@@ -144,6 +144,9 @@ var ActionComboBox = GObject.registerClass({
         this._editMenu.actor.hide();
         Main.uiGroup.add_actor(this._editMenu.actor);
 
+        this._editMenuManager = new PopupMenu.PopupMenuManager(this);
+        this._editMenuManager.addMenu(this._editMenu);
+
         this._actionLabels = new Map();
         this._actionLabels.set(GDesktopEnums.PadButtonAction.NONE, _("Application defined"));
         this._actionLabels.set(GDesktopEnums.PadButtonAction.HELP, _("Show on-screen help"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]