[gnome-shell/wip/carlosg/pad-osd-menus: 2/2] padOsd: Set menu manager on pad chooser popup
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/pad-osd-menus: 2/2] padOsd: Set menu manager on pad chooser popup
- Date: Sat, 23 Apr 2022 17:54:49 +0000 (UTC)
commit e4726d53f754df2eeb38570796373146cb9c8124
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Apr 23 19:53:46 2022 +0200
padOsd: Set menu manager on pad chooser popup
Likewise to action menus, this does now need a menu manager
that lets the popup stack a grab on top of the pad OSD's.
js/ui/padOsd.js | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/js/ui/padOsd.js b/js/ui/padOsd.js
index ba3e211bc6..25acc49436 100644
--- a/js/ui/padOsd.js
+++ b/js/ui/padOsd.js
@@ -67,6 +67,11 @@ var PadChooser = GObject.registerClass({
this._padChooserMenu.actor.hide();
Main.uiGroup.add_actor(this._padChooserMenu.actor);
+ this._menuManager =
+ new PopupMenu.PopupMenuManager(
+ this, { actionMode: Shell.ActionMode.POPUP });
+ this._menuManager.addMenu(this._padChooserMenu);
+
for (let i = 0; i < devices.length; i++) {
let device = devices[i];
if (device == this.currentDevice)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]