From b8b4a0048ddf08015e9f2e53f6fe08f6740a8006 Mon Sep 17 00:00:00 2001 From: JP Vernooy <82802232+jp-vernooy@users.noreply.github.com> Date: Mon, 1 Apr 2024 18:26:46 +0200 Subject: [PATCH] Add missing `actor` member on `PopupMenu` (#30) * Add missing `actor` member on `PopupMenu` See https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/popupMenu.js?ref_type=heads#L879 * Add `actor` to `PopupDummyMenu` and `PopupMenuSection` as well --------- Co-authored-by: JP Vernooy --- packages/gnome-shell/src/ui/popupMenu.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/gnome-shell/src/ui/popupMenu.d.ts b/packages/gnome-shell/src/ui/popupMenu.d.ts index 106c927..8a79bce 100644 --- a/packages/gnome-shell/src/ui/popupMenu.d.ts +++ b/packages/gnome-shell/src/ui/popupMenu.d.ts @@ -7,6 +7,7 @@ import type Clutter from '@girs/clutter-14'; import type Meta from '@girs/meta-14'; import * as Signals from '../misc/signals.js'; +import * as BoxPointer from './boxpointer.js'; /** * @version 46 @@ -190,6 +191,7 @@ export namespace PopupMenu { */ export class PopupMenu = PopupMenu.SignalMap> extends PopupMenuBase { constructor(sourceActor: St.Widget, arrowAlignment: number, arrowSide: St.Side); + readonly actor: BoxPointer.BoxPointer; setArrowOrigin(origin: number): void; setSourceAlignment(alignment: number): void; @@ -204,6 +206,7 @@ export class PopupMenu = PopupMenu.SignalMap> ext export class PopupDummyMenu extends Signals.EventEmitter { constructor(sourceActor: St.Widget); + readonly actor: St.Widget; readonly sensitive: boolean; getSensitive(): boolean; @@ -249,6 +252,8 @@ export namespace PopupMenuSection { export class PopupMenuSection = PopupMenuSection.SignalMap> extends PopupMenuBase { constructor(); + readonly actor: St.BoxLayout; + open(): void; close(): void; }