Skip to content

Commit 5229b0a

Browse files
committed
add version specifier to checked classes in ui/modalDialog and update methods and types
1 parent fed605e commit 5229b0a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

packages/gnome-shell/src/ui/modalDialog.d.ts

+14-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

33
import type St from '@girs/st-14';
44
import type Shell from '@girs/shell-14';
5+
import type Clutter from '@girs/clutter-14';
56

67
import type { MonitorConstraint } from './layout.js';
78
import type { ButtonInfo, Dialog } from './dialog.js';
89

10+
/**
11+
* @version 46
12+
*/
913
export enum State {
1014
OPENED = 0,
1115
CLOSED = 1,
@@ -14,6 +18,9 @@ export enum State {
1418
FADED_OUT = 4,
1519
}
1620

21+
/**
22+
* @version 46
23+
*/
1724
export namespace ModalDialog {
1825
export interface ConstructorProperties {
1926
shellReactive?: boolean;
@@ -25,6 +32,9 @@ export namespace ModalDialog {
2532
}
2633
}
2734

35+
/**
36+
* @version 46
37+
*/
2838
export class ModalDialog extends St.Widget {
2939

3040
protected _state: State;
@@ -70,17 +80,20 @@ export class ModalDialog extends St.Widget {
7080
*/
7181
protected _fadeOutDialog(timestamp: number): void;
7282

83+
public vfunc_key_press_event(event: Clutter.Event): boolean;
84+
public vfunc_captured_event(event: Clutter.Event): boolean;
85+
7386
public clearButtons(): void;
7487
public setButtons(buttons: ButtonInfo[]): void;
7588
public addButton(buttonInfo: ButtonInfo): St.Button;
7689
public setInitialKeyFocus(actor: St.Widget): void;
7790
public open(): boolean;
91+
//note: upstream has timestamp as paramater here, but it only will be used to call popModal, which doesn't accept that paramater anymore, so this is just a bug upstream
7892
public close(): boolean;
7993
/**
8094
* Drop modal status without closing the dialog; this makes the
8195
* dialog insensitive as well, so it needs to be followed shortly
8296
* by either a close() or a pushModal()
83-
* @param timestamp
8497
*/
8598
public popModal(): void;
8699
public pushModal(): void;

0 commit comments

Comments
 (0)