Skip to content

Commit

Permalink
Add missing actor member on PopupMenu (#30)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
jp-vernooy and JP Vernooy authored Apr 1, 2024
1 parent 77a185b commit b8b4a00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/gnome-shell/src/ui/popupMenu.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -190,6 +191,7 @@ export namespace PopupMenu {
*/
export class PopupMenu<S extends Signals.SignalMap<S> = PopupMenu.SignalMap> extends PopupMenuBase<S> {
constructor(sourceActor: St.Widget, arrowAlignment: number, arrowSide: St.Side);
readonly actor: BoxPointer.BoxPointer;

setArrowOrigin(origin: number): void;
setSourceAlignment(alignment: number): void;
Expand All @@ -204,6 +206,7 @@ export class PopupMenu<S extends Signals.SignalMap<S> = PopupMenu.SignalMap> ext
export class PopupDummyMenu extends Signals.EventEmitter {
constructor(sourceActor: St.Widget);

readonly actor: St.Widget;
readonly sensitive: boolean;

getSensitive(): boolean;
Expand Down Expand Up @@ -249,6 +252,8 @@ export namespace PopupMenuSection {
export class PopupMenuSection<S extends Signals.SignalMap<S> = PopupMenuSection.SignalMap> extends PopupMenuBase<S> {
constructor();

readonly actor: St.BoxLayout;

open(): void;
close(): void;
}
Expand Down

0 comments on commit b8b4a00

Please sign in to comment.