[gnome-shell/wip/carlosg/pad-osd-menus: 1/2] padOsd: Set menu manager on actions popup menu
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/pad-osd-menus: 1/2] padOsd: Set menu manager on actions popup menu
- Date: Sat, 23 Apr 2022 17:54:49 +0000 (UTC)
commit 034233ab18459967a350fbe5f523813e43987c13
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 | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/padOsd.js b/js/ui/padOsd.js
index 065df47788..ba3e211bc6 100644
--- a/js/ui/padOsd.js
+++ b/js/ui/padOsd.js
@@ -3,7 +3,7 @@
const {
Atk, Clutter, GDesktopEnums, Gio,
- GLib, GObject, Gtk, Meta, Pango, Rsvg, St,
+ GLib, GObject, Gtk, Meta, Pango, Rsvg, Shell, St,
} = imports.gi;
const Signals = imports.signals;
@@ -144,6 +144,11 @@ var ActionComboBox = GObject.registerClass({
this._editMenu.actor.hide();
Main.uiGroup.add_actor(this._editMenu.actor);
+ this._editMenuManager =
+ new PopupMenu.PopupMenuManager(
+ this, { actionMode: Shell.ActionMode.POPUP });
+ 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]