@girs/meta-10 10.0.0-3.2.6 → 10.0.0-3.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/meta-10)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Meta-10, generated from library version 10.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for Meta-10, generated from library version 10.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.8.
9
9
 
10
10
 
11
11
  ## Install
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
package/meta-10.d.cts CHANGED
@@ -1458,7 +1458,7 @@ export enum VirtualModifier {
1458
1458
  MOD5_MASK,
1459
1459
  }
1460
1460
  export const CURRENT_TIME: number
1461
- export const DEFAULT_ICON_NAME: string | null
1461
+ export const DEFAULT_ICON_NAME: string
1462
1462
  export const ICON_HEIGHT: number
1463
1463
  export const ICON_WIDTH: number
1464
1464
  export const MINI_ICON_HEIGHT: number
@@ -1483,7 +1483,7 @@ export function clutter_init(): void
1483
1483
  * @param name Human readable name of display server or window manager
1484
1484
  * @returns A new context instance.
1485
1485
  */
1486
- export function create_context(name: string | null): Context
1486
+ export function create_context(name: string): Context
1487
1487
  /**
1488
1488
  * Disables unredirection, can be useful in situations where having
1489
1489
  * unredirected windows is undesirable like when recording a video.
@@ -1504,8 +1504,8 @@ export function focus_stage_window(display: Display, timestamp: number): void
1504
1504
  * @param type a #MetaFrameType
1505
1505
  * @returns the string value
1506
1506
  */
1507
- export function frame_type_to_string(type: FrameType): string | null
1508
- export function g_utf8_strndup(src: string | null, n: number): string | null
1507
+ export function frame_type_to_string(type: FrameType): string
1508
+ export function g_utf8_strndup(src: string, n: number): string | null
1509
1509
  /**
1510
1510
  * Accessor for the singleton MetaBackend.
1511
1511
  * @returns The only #MetaBackend there is.
@@ -1519,7 +1519,7 @@ export function get_stage_for_display(display: Display): Clutter.Actor
1519
1519
  export function get_top_window_group_for_display(display: Display): Clutter.Actor
1520
1520
  export function get_window_actors(display: Display): Clutter.Actor[]
1521
1521
  export function get_window_group_for_display(display: Display): Clutter.Actor
1522
- export function gravity_to_string(gravity: Gravity): string | null
1522
+ export function gravity_to_string(gravity: Gravity): string
1523
1523
  /**
1524
1524
  * Returns %TRUE if this instance of Mutter comes from Mutter
1525
1525
  * restarting itself (for example to enable/disable stereo.)
@@ -1547,7 +1547,7 @@ export function is_wayland_compositor(): boolean
1547
1547
  * @param handler The new handler function
1548
1548
  * @returns %TRUE if the binding known as @name was found, %FALSE otherwise.
1549
1549
  */
1550
- export function keybindings_set_custom_handler(name: string | null, handler: KeyHandlerFunc | null): boolean
1550
+ export function keybindings_set_custom_handler(name: string, handler: KeyHandlerFunc | null): boolean
1551
1551
  /**
1552
1552
  * Sets up a callback to be called at some later time. `when` determines the
1553
1553
  * particular later occasion at which it is called. This is much like g_idle_add(),
@@ -1566,9 +1566,9 @@ export function later_add(when: LaterType, func: GLib.SourceFunc): number
1566
1566
  */
1567
1567
  export function later_remove(later_id: number): void
1568
1568
  export function pop_no_msg_prefix(): void
1569
- export function preference_to_string(pref: Preference): string | null
1569
+ export function preference_to_string(pref: Preference): string
1570
1570
  export function prefs_bell_is_audible(): boolean
1571
- export function prefs_change_workspace_name(i: number, name: string | null): void
1571
+ export function prefs_change_workspace_name(i: number, name: string): void
1572
1572
  export function prefs_get_action_double_click_titlebar(): GDesktopEnums.TitlebarAction
1573
1573
  export function prefs_get_action_middle_click_titlebar(): GDesktopEnums.TitlebarAction
1574
1574
  export function prefs_get_action_right_click_titlebar(): GDesktopEnums.TitlebarAction
@@ -1581,7 +1581,7 @@ export function prefs_get_center_new_windows(): boolean
1581
1581
  export function prefs_get_check_alive_timeout(): number
1582
1582
  export function prefs_get_compositing_manager(): boolean
1583
1583
  export function prefs_get_cursor_size(): number
1584
- export function prefs_get_cursor_theme(): string | null
1584
+ export function prefs_get_cursor_theme(): string
1585
1585
  export function prefs_get_disable_workarounds(): boolean
1586
1586
  export function prefs_get_drag_threshold(): number
1587
1587
  export function prefs_get_draggable_border_width(): number
@@ -1593,7 +1593,7 @@ export function prefs_get_focus_new_windows(): GDesktopEnums.FocusNewWindows
1593
1593
  export function prefs_get_force_fullscreen(): boolean
1594
1594
  export function prefs_get_gnome_accessibility(): boolean
1595
1595
  export function prefs_get_gnome_animations(): boolean
1596
- export function prefs_get_keybinding_action(name: string | null): KeyBindingAction
1596
+ export function prefs_get_keybinding_action(name: string): KeyBindingAction
1597
1597
  export function prefs_get_mouse_button_menu(): number
1598
1598
  export function prefs_get_mouse_button_mods(): VirtualModifier
1599
1599
  export function prefs_get_mouse_button_resize(): number
@@ -1603,7 +1603,7 @@ export function prefs_get_show_fallback_app_menu(): boolean
1603
1603
  export function prefs_get_titlebar_font(): Pango.FontDescription
1604
1604
  export function prefs_get_visual_bell(): boolean
1605
1605
  export function prefs_get_visual_bell_type(): GDesktopEnums.VisualBellType
1606
- export function prefs_get_workspace_name(i: number): string | null
1606
+ export function prefs_get_workspace_name(i: number): string
1607
1607
  export function prefs_get_workspaces_only_on_primary(): boolean
1608
1608
  export function prefs_set_force_fullscreen(whether: boolean): void
1609
1609
  export function prefs_set_num_workspaces(n_workspaces: number): void
@@ -1632,7 +1632,7 @@ export function remove_verbose_topic(topic: DebugTopic): void
1632
1632
  * @param message message to display to the user, or %NULL
1633
1633
  */
1634
1634
  export function restart(message: string | null): void
1635
- export function topic_to_string(topic: DebugTopic): string | null
1635
+ export function topic_to_string(topic: DebugTopic): string
1636
1636
  export function unsigned_long_equal(v1: any | null, v2: any | null): number
1637
1637
  export function unsigned_long_hash(v: any | null): number
1638
1638
  export function x11_error_trap_pop(x11_display: X11Display): void
@@ -1926,7 +1926,7 @@ export interface Backend extends Gio.Initable {
1926
1926
  is_headless(): boolean
1927
1927
  is_rendering_hardware_accelerated(): boolean
1928
1928
  lock_layout_group(idx: number): void
1929
- set_keymap(layouts: string | null, variants: string | null, options: string | null): void
1929
+ set_keymap(layouts: string, variants: string, options: string): void
1930
1930
 
1931
1931
  // Own signals of Meta-10.Meta.Backend
1932
1932
 
@@ -1991,7 +1991,6 @@ export module Background {
1991
1991
 
1992
1992
  // Own constructor properties of Meta-10.Meta.Background
1993
1993
 
1994
- meta_display?: Display | null
1995
1994
  metaDisplay?: Display | null
1996
1995
  }
1997
1996
 
@@ -2001,7 +2000,6 @@ export interface Background {
2001
2000
 
2002
2001
  // Own properties of Meta-10.Meta.Background
2003
2002
 
2004
- readonly meta_display: Display
2005
2003
  readonly metaDisplay: Display
2006
2004
 
2007
2005
  // Owm methods of Meta-10.Meta.Background
@@ -2063,9 +2061,8 @@ export module BackgroundActor {
2063
2061
 
2064
2062
  // Own constructor properties of Meta-10.Meta.BackgroundActor
2065
2063
 
2066
- meta_display?: Display | null
2067
- monitor?: number | null
2068
2064
  metaDisplay?: Display | null
2065
+ monitor?: number | null
2069
2066
  }
2070
2067
 
2071
2068
  }
@@ -2074,7 +2071,6 @@ export interface BackgroundActor extends Atk.ImplementorIface, Clutter.Animatabl
2074
2071
 
2075
2072
  // Own properties of Meta-10.Meta.BackgroundActor
2076
2073
 
2077
- readonly meta_display: Display
2078
2074
  readonly metaDisplay: Display
2079
2075
  readonly monitor: number
2080
2076
 
@@ -2360,17 +2356,12 @@ export module BackgroundContent {
2360
2356
  background?: Background | null
2361
2357
  brightness?: number | null
2362
2358
  gradient?: boolean | null
2363
- gradient_height?: number | null
2364
- gradient_max_darkness?: number | null
2365
- meta_display?: Display | null
2366
- monitor?: number | null
2367
- rounded_clip_radius?: number | null
2368
- vignette?: boolean | null
2369
- vignette_sharpness?: number | null
2370
2359
  gradientHeight?: number | null
2371
2360
  gradientMaxDarkness?: number | null
2372
2361
  metaDisplay?: Display | null
2362
+ monitor?: number | null
2373
2363
  roundedClipRadius?: number | null
2364
+ vignette?: boolean | null
2374
2365
  vignetteSharpness?: number | null
2375
2366
  }
2376
2367
 
@@ -2383,17 +2374,12 @@ export interface BackgroundContent extends Clutter.Content {
2383
2374
  background: Background
2384
2375
  brightness: number
2385
2376
  gradient: boolean
2386
- gradient_height: number
2387
2377
  gradientHeight: number
2388
- gradient_max_darkness: number
2389
2378
  gradientMaxDarkness: number
2390
- readonly meta_display: Display
2391
2379
  readonly metaDisplay: Display
2392
2380
  readonly monitor: number
2393
- rounded_clip_radius: number
2394
2381
  roundedClipRadius: number
2395
2382
  vignette: boolean
2396
- vignette_sharpness: number
2397
2383
  vignetteSharpness: number
2398
2384
 
2399
2385
  // Owm methods of Meta-10.Meta.BackgroundContent
@@ -3050,7 +3036,6 @@ export module Context {
3050
3036
  // Own constructor properties of Meta-10.Meta.Context
3051
3037
 
3052
3038
  name?: string | null
3053
- unsafe_mode?: boolean | null
3054
3039
  unsafeMode?: boolean | null
3055
3040
  }
3056
3041
 
@@ -3061,7 +3046,6 @@ export interface Context {
3061
3046
  // Own properties of Meta-10.Meta.Context
3062
3047
 
3063
3048
  readonly name: string | null
3064
- unsafe_mode: boolean
3065
3049
  unsafeMode: boolean
3066
3050
 
3067
3051
  // Own fields of Meta-10.Meta.Context
@@ -3097,9 +3081,9 @@ export interface Context {
3097
3081
  */
3098
3082
  restore_rlimit_nofile(): boolean
3099
3083
  run_main_loop(): boolean
3100
- set_gnome_wm_keybindings(wm_keybindings: string | null): void
3084
+ set_gnome_wm_keybindings(wm_keybindings: string): void
3101
3085
  set_plugin_gtype(plugin_gtype: GObject.GType): void
3102
- set_plugin_name(plugin_name: string | null): void
3086
+ set_plugin_name(plugin_name: string): void
3103
3087
  setup(): boolean
3104
3088
  start(): boolean
3105
3089
  terminate(): void
@@ -3444,9 +3428,7 @@ export interface Display {
3444
3428
 
3445
3429
  // Own properties of Meta-10.Meta.Display
3446
3430
 
3447
- readonly compositor_modifiers: Clutter.ModifierType
3448
3431
  readonly compositorModifiers: Clutter.ModifierType
3449
- readonly focus_window: Window
3450
3432
  readonly focusWindow: Window
3451
3433
 
3452
3434
  // Owm methods of Meta-10.Meta.Display
@@ -3476,7 +3458,7 @@ export interface Display {
3476
3458
  * @param handler function to run when the keybinding is invoked
3477
3459
  * @returns the corresponding keybinding action if the keybinding was added successfully, otherwise %META_KEYBINDING_ACTION_NONE
3478
3460
  */
3479
- add_keybinding(name: string | null, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3461
+ add_keybinding(name: string, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3480
3462
  begin_grab_op(window: Window, op: GrabOp, pointer_already_grabbed: boolean, frame_action: boolean, button: number, modmask: number, timestamp: number, root_x: number, root_y: number): boolean
3481
3463
  /**
3482
3464
  * Sets the mouse-mode flag to %FALSE, which means that motion events are
@@ -3591,7 +3573,7 @@ export interface Display {
3591
3573
  */
3592
3574
  get_tab_next(type: TabList, workspace: Workspace, window: Window | null, backward: boolean): Window
3593
3575
  get_workspace_manager(): WorkspaceManager
3594
- grab_accelerator(accelerator: string | null, flags: KeyBindingFlags): number
3576
+ grab_accelerator(accelerator: string, flags: KeyBindingFlags): number
3595
3577
  /**
3596
3578
  * Tells whether the event sequence is the used for pointer emulation
3597
3579
  * and single-touch interaction.
@@ -3611,7 +3593,7 @@ export interface Display {
3611
3593
  * @param name name of the keybinding to remove
3612
3594
  * @returns %TRUE if the binding has been removed successfully, otherwise %FALSE
3613
3595
  */
3614
- remove_keybinding(name: string | null): boolean
3596
+ remove_keybinding(name: string): boolean
3615
3597
  request_pad_osd(pad: Clutter.InputDevice, edition_mode: boolean): void
3616
3598
  set_cursor(cursor: Cursor): void
3617
3599
  set_input_focus(window: Window, focus_frame: boolean, timestamp: number): void
@@ -4002,9 +3984,7 @@ export interface MonitorManager {
4002
3984
  // Own properties of Meta-10.Meta.MonitorManager
4003
3985
 
4004
3986
  readonly backend: Backend
4005
- readonly has_builtin_panel: boolean
4006
3987
  readonly hasBuiltinPanel: boolean
4007
- readonly panel_orientation_managed: boolean
4008
3988
  readonly panelOrientationManaged: boolean
4009
3989
 
4010
3990
  // Owm methods of Meta-10.Meta.MonitorManager
@@ -4014,7 +3994,7 @@ export interface MonitorManager {
4014
3994
  * Returns whether the built-in display (i.e. a laptop panel) is turned on.
4015
3995
  */
4016
3996
  get_is_builtin_display_on(): boolean
4017
- get_monitor_for_connector(connector: string | null): number
3997
+ get_monitor_for_connector(connector: string): number
4018
3998
  get_panel_orientation_managed(): boolean
4019
3999
  get_switch_config(): MonitorSwitchConfigType
4020
4000
  switch_config(config_type: MonitorSwitchConfigType): void
@@ -4295,7 +4275,6 @@ export module RemoteAccessHandle {
4295
4275
 
4296
4276
  // Own constructor properties of Meta-10.Meta.RemoteAccessHandle
4297
4277
 
4298
- is_recording?: boolean | null
4299
4278
  isRecording?: boolean | null
4300
4279
  }
4301
4280
 
@@ -4305,7 +4284,6 @@ export interface RemoteAccessHandle {
4305
4284
 
4306
4285
  // Own properties of Meta-10.Meta.RemoteAccessHandle
4307
4286
 
4308
- readonly is_recording: boolean
4309
4287
  readonly isRecording: boolean
4310
4288
 
4311
4289
  // Own fields of Meta-10.Meta.RemoteAccessHandle
@@ -4404,7 +4382,7 @@ export interface Selection {
4404
4382
  * @param cancellable Cancellable
4405
4383
  * @param callback User callback
4406
4384
  */
4407
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4385
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4408
4386
 
4409
4387
  // Overloads of transfer_async
4410
4388
 
@@ -4420,7 +4398,7 @@ export interface Selection {
4420
4398
  * @param cancellable Cancellable
4421
4399
  * @returns A Promise of: #TRUE if the transfer was successful.
4422
4400
  */
4423
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4401
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4424
4402
  /**
4425
4403
  * Finishes the transfer of a queried mimetype.
4426
4404
  * @param result The async result
@@ -4508,7 +4486,7 @@ export interface SelectionSource {
4508
4486
  * @returns #TRUE if the source owns a selection.
4509
4487
  */
4510
4488
  is_active(): boolean
4511
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4489
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4512
4490
 
4513
4491
  // Overloads of read_async
4514
4492
 
@@ -4520,7 +4498,7 @@ export interface SelectionSource {
4520
4498
  * @param cancellable
4521
4499
  * @returns A Promise of: The resulting #GInputStream
4522
4500
  */
4523
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4501
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4524
4502
  /**
4525
4503
  * Finishes a read from the selection source.
4526
4504
  * @param result The async result
@@ -4538,7 +4516,7 @@ export interface SelectionSource {
4538
4516
  * @returns The supported mimetypes
4539
4517
  */
4540
4518
  vfunc_get_mimetypes(): string[]
4541
- vfunc_read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4519
+ vfunc_read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4542
4520
  /**
4543
4521
  * Finishes a read from the selection source.
4544
4522
  * @virtual
@@ -4606,8 +4584,8 @@ export class SelectionSourceMemory extends SelectionSource {
4606
4584
  // Constructors of Meta-10.Meta.SelectionSourceMemory
4607
4585
 
4608
4586
  constructor(config?: SelectionSourceMemory.ConstructorProperties)
4609
- constructor(mimetype: string | null, content: GLib.Bytes)
4610
- static new(mimetype: string | null, content: GLib.Bytes): SelectionSourceMemory
4587
+ constructor(mimetype: string, content: GLib.Bytes)
4588
+ static new(mimetype: string, content: GLib.Bytes): SelectionSourceMemory
4611
4589
  _init(config?: SelectionSourceMemory.ConstructorProperties): void
4612
4590
  }
4613
4591
 
@@ -4642,7 +4620,7 @@ export interface ShadowFactory {
4642
4620
  * @param class_name name of the class of shadow to get the params for
4643
4621
  * @param focused whether the shadow is for a focused window
4644
4622
  */
4645
- get_params(class_name: string | null, focused: boolean): /* params */ ShadowParams
4623
+ get_params(class_name: string, focused: boolean): /* params */ ShadowParams
4646
4624
  /**
4647
4625
  * Gets the appropriate shadow object for drawing shadows for the
4648
4626
  * specified window shape. The region that we are shadowing is specified
@@ -4656,7 +4634,7 @@ export interface ShadowFactory {
4656
4634
  * @param focused whether the shadow is for a focused window
4657
4635
  * @returns a newly referenced #MetaShadow; unref with meta_shadow_unref()
4658
4636
  */
4659
- get_shadow(shape: WindowShape, width: number, height: number, class_name: string | null, focused: boolean): Shadow
4637
+ get_shadow(shape: WindowShape, width: number, height: number, class_name: string, focused: boolean): Shadow
4660
4638
  /**
4661
4639
  * Updates the shadow parameters for a particular class of shadows
4662
4640
  * for either the focused or unfocused state. If the class name
@@ -4667,7 +4645,7 @@ export interface ShadowFactory {
4667
4645
  * @param focused whether the shadow is for a focused window
4668
4646
  * @param params new parameter values
4669
4647
  */
4670
- set_params(class_name: string | null, focused: boolean, params: ShadowParams): void
4648
+ set_params(class_name: string, focused: boolean, params: ShadowParams): void
4671
4649
 
4672
4650
  // Own signals of Meta-10.Meta.ShadowFactory
4673
4651
 
@@ -4786,14 +4764,14 @@ export interface SoundPlayer {
4786
4764
  * @param description description of the played sound
4787
4765
  * @param cancellable cancellable for the request
4788
4766
  */
4789
- play_from_file(file: Gio.File, description: string | null, cancellable: Gio.Cancellable | null): void
4767
+ play_from_file(file: Gio.File, description: string, cancellable: Gio.Cancellable | null): void
4790
4768
  /**
4791
4769
  * Plays a sound from the sound theme.
4792
4770
  * @param name sound theme name of the event
4793
4771
  * @param description description of the event
4794
4772
  * @param cancellable cancellable for the request
4795
4773
  */
4796
- play_from_theme(name: string | null, description: string | null, cancellable: Gio.Cancellable | null): void
4774
+ play_from_theme(name: string, description: string, cancellable: Gio.Cancellable | null): void
4797
4775
 
4798
4776
  // Class property signals of Meta-10.Meta.SoundPlayer
4799
4777
 
@@ -5181,15 +5159,13 @@ export module StartupSequence {
5181
5159
 
5182
5160
  // Own constructor properties of Meta-10.Meta.StartupSequence
5183
5161
 
5184
- application_id?: string | null
5185
- icon_name?: string | null
5162
+ applicationId?: string | null
5163
+ iconName?: string | null
5186
5164
  id?: string | null
5187
5165
  name?: string | null
5188
5166
  timestamp?: number | null
5189
5167
  wmclass?: string | null
5190
5168
  workspace?: number | null
5191
- applicationId?: string | null
5192
- iconName?: string | null
5193
5169
  }
5194
5170
 
5195
5171
  }
@@ -5198,9 +5174,7 @@ export interface StartupSequence {
5198
5174
 
5199
5175
  // Own properties of Meta-10.Meta.StartupSequence
5200
5176
 
5201
- readonly application_id: string | null
5202
5177
  readonly applicationId: string | null
5203
- readonly icon_name: string | null
5204
5178
  readonly iconName: string | null
5205
5179
  readonly id: string | null
5206
5180
  readonly name: string | null
@@ -5226,8 +5200,8 @@ export interface StartupSequence {
5226
5200
  * @returns the icon name or %NULL.
5227
5201
  */
5228
5202
  get_icon_name(): string | null
5229
- get_id(): string | null
5230
- get_name(): string | null
5203
+ get_id(): string
5204
+ get_name(): string
5231
5205
  get_timestamp(): number
5232
5206
  /**
5233
5207
  * Get the wmclass of the startup sequence.
@@ -5435,48 +5409,30 @@ export interface Window {
5435
5409
  // Own properties of Meta-10.Meta.Window
5436
5410
 
5437
5411
  readonly above: boolean
5438
- readonly appears_focused: boolean
5439
5412
  readonly appearsFocused: boolean
5440
5413
  readonly decorated: boolean
5441
- readonly demands_attention: boolean
5442
5414
  readonly demandsAttention: boolean
5443
5415
  readonly fullscreen: boolean
5444
- readonly gtk_app_menu_object_path: string | null
5445
5416
  readonly gtkAppMenuObjectPath: string | null
5446
- readonly gtk_application_id: string | null
5447
5417
  readonly gtkApplicationId: string | null
5448
- readonly gtk_application_object_path: string | null
5449
5418
  readonly gtkApplicationObjectPath: string | null
5450
- readonly gtk_menubar_object_path: string | null
5451
5419
  readonly gtkMenubarObjectPath: string | null
5452
- readonly gtk_unique_bus_name: string | null
5453
5420
  readonly gtkUniqueBusName: string | null
5454
- readonly gtk_window_object_path: string | null
5455
5421
  readonly gtkWindowObjectPath: string | null
5456
5422
  readonly icon: any
5457
- readonly is_alive: boolean
5458
5423
  readonly isAlive: boolean
5459
- readonly maximized_horizontally: boolean
5460
5424
  readonly maximizedHorizontally: boolean
5461
- readonly maximized_vertically: boolean
5462
5425
  readonly maximizedVertically: boolean
5463
- readonly mini_icon: any
5464
5426
  readonly miniIcon: any
5465
5427
  readonly minimized: boolean
5466
- readonly mutter_hints: string | null
5467
5428
  readonly mutterHints: string | null
5468
- readonly on_all_workspaces: boolean
5469
5429
  readonly onAllWorkspaces: boolean
5470
5430
  readonly resizeable: boolean
5471
- readonly skip_taskbar: boolean
5472
5431
  readonly skipTaskbar: boolean
5473
5432
  readonly title: string | null
5474
5433
  readonly urgent: boolean
5475
- readonly user_time: number
5476
5434
  readonly userTime: number
5477
- readonly window_type: WindowType
5478
5435
  readonly windowType: WindowType
5479
- readonly wm_class: string | null
5480
5436
  readonly wmClass: string | null
5481
5437
 
5482
5438
  // Owm methods of Meta-10.Meta.Window
@@ -5485,6 +5441,13 @@ export interface Window {
5485
5441
  activate_with_workspace(current_time: number, workspace: Workspace): void
5486
5442
  allows_move(): boolean
5487
5443
  allows_resize(): boolean
5444
+ /**
5445
+ * Determines if the window should be drawn with a focused appearance. This is
5446
+ * true for focused windows but also true for windows with a focused modal
5447
+ * dialog attached.
5448
+ * @returns %TRUE if the window should be drawn with a focused frame
5449
+ */
5450
+ appears_focused(): boolean
5488
5451
  begin_grab_op(op: GrabOp, frame_action: boolean, timestamp: number): void
5489
5452
  can_close(): boolean
5490
5453
  can_maximize(): boolean
@@ -5555,7 +5518,7 @@ export interface Window {
5555
5518
  * @returns the wrapper object.
5556
5519
  */
5557
5520
  get_compositor_private(): GObject.Object
5558
- get_description(): string | null
5521
+ get_description(): string
5559
5522
  get_display(): Display
5560
5523
  /**
5561
5524
  * Gets a region representing the outer bounds of the window's frame.
@@ -5628,7 +5591,7 @@ export interface Window {
5628
5591
  * @returns the pid, or 0 if not known.
5629
5592
  */
5630
5593
  get_pid(): number
5631
- get_role(): string | null
5594
+ get_role(): string
5632
5595
  /**
5633
5596
  * Gets an unique id for a sandboxed app (currently flatpaks and snaps are
5634
5597
  * supported).
@@ -5661,7 +5624,7 @@ export interface Window {
5661
5624
  * @returns the matching tiled window or %NULL if it doesn't exist.
5662
5625
  */
5663
5626
  get_tile_match(): Window | null
5664
- get_title(): string | null
5627
+ get_title(): string
5665
5628
  /**
5666
5629
  * Returns the #MetaWindow for the window that is pointed to by the
5667
5630
  * WM_TRANSIENT_FOR hint on this window (see XGetTransientForHint()
@@ -5986,7 +5949,6 @@ export module WindowActor {
5986
5949
 
5987
5950
  // Own constructor properties of Meta-10.Meta.WindowActor
5988
5951
 
5989
- meta_window?: Window | null
5990
5952
  metaWindow?: Window | null
5991
5953
  }
5992
5954
 
@@ -5996,7 +5958,6 @@ export interface WindowActor extends Atk.ImplementorIface, Clutter.Animatable, C
5996
5958
 
5997
5959
  // Own properties of Meta-10.Meta.WindowActor
5998
5960
 
5999
- readonly meta_window: Window
6000
5961
  readonly metaWindow: Window
6001
5962
 
6002
5963
  // Own fields of Meta-10.Meta.WindowActor
@@ -6565,9 +6526,7 @@ export interface Workspace {
6565
6526
  // Own properties of Meta-10.Meta.Workspace
6566
6527
 
6567
6528
  readonly active: boolean
6568
- readonly n_windows: number
6569
6529
  readonly nWindows: number
6570
- readonly workspace_index: number
6571
6530
  readonly workspaceIndex: number
6572
6531
 
6573
6532
  // Owm methods of Meta-10.Meta.Workspace
@@ -6725,11 +6684,8 @@ export interface WorkspaceManager {
6725
6684
 
6726
6685
  // Own properties of Meta-10.Meta.WorkspaceManager
6727
6686
 
6728
- readonly layout_columns: number
6729
6687
  readonly layoutColumns: number
6730
- readonly layout_rows: number
6731
6688
  readonly layoutRows: number
6732
- readonly n_workspaces: number
6733
6689
  readonly nWorkspaces: number
6734
6690
 
6735
6691
  // Owm methods of Meta-10.Meta.WorkspaceManager
@@ -7217,7 +7173,7 @@ export interface Group {
7217
7173
  // Owm methods of Meta-10.Meta.Group
7218
7174
 
7219
7175
  get_size(): number
7220
- get_startup_id(): string | null
7176
+ get_startup_id(): string
7221
7177
  list_windows(): Window[]
7222
7178
  update_layers(): void
7223
7179
  }
@@ -7265,7 +7221,7 @@ export interface KeyBinding {
7265
7221
 
7266
7222
  get_mask(): number
7267
7223
  get_modifiers(): VirtualModifier
7268
- get_name(): string | null
7224
+ get_name(): string
7269
7225
  is_builtin(): boolean
7270
7226
  is_reversed(): boolean
7271
7227
  }
@@ -7371,27 +7327,27 @@ export interface PluginInfo {
7371
7327
  * name of the plugin
7372
7328
  * @field
7373
7329
  */
7374
- name: string | null
7330
+ name: string
7375
7331
  /**
7376
7332
  * version of the plugin
7377
7333
  * @field
7378
7334
  */
7379
- version: string | null
7335
+ version: string
7380
7336
  /**
7381
7337
  * author of the plugin
7382
7338
  * @field
7383
7339
  */
7384
- author: string | null
7340
+ author: string
7385
7341
  /**
7386
7342
  * license of the plugin
7387
7343
  * @field
7388
7344
  */
7389
- license: string | null
7345
+ license: string
7390
7346
  /**
7391
7347
  * description of the plugin
7392
7348
  * @field
7393
7349
  */
7394
- description: string | null
7350
+ description: string
7395
7351
  }
7396
7352
 
7397
7353
  export class PluginInfo {
@@ -7499,7 +7455,7 @@ export interface SelectionSourceClass {
7499
7455
  activated: (source: SelectionSource) => void
7500
7456
  deactivated: (source: SelectionSource) => void
7501
7457
  get_mimetypes: (source: SelectionSource) => string[]
7502
- read_async: (source: SelectionSource, mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7458
+ read_async: (source: SelectionSource, mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7503
7459
  read_finish: (source: SelectionSource, result: Gio.AsyncResult) => Gio.InputStream
7504
7460
  }
7505
7461
 
package/meta-10.d.ts CHANGED
@@ -1460,7 +1460,7 @@ enum VirtualModifier {
1460
1460
  MOD5_MASK,
1461
1461
  }
1462
1462
  const CURRENT_TIME: number
1463
- const DEFAULT_ICON_NAME: string | null
1463
+ const DEFAULT_ICON_NAME: string
1464
1464
  const ICON_HEIGHT: number
1465
1465
  const ICON_WIDTH: number
1466
1466
  const MINI_ICON_HEIGHT: number
@@ -1485,7 +1485,7 @@ function clutter_init(): void
1485
1485
  * @param name Human readable name of display server or window manager
1486
1486
  * @returns A new context instance.
1487
1487
  */
1488
- function create_context(name: string | null): Context
1488
+ function create_context(name: string): Context
1489
1489
  /**
1490
1490
  * Disables unredirection, can be useful in situations where having
1491
1491
  * unredirected windows is undesirable like when recording a video.
@@ -1506,8 +1506,8 @@ function focus_stage_window(display: Display, timestamp: number): void
1506
1506
  * @param type a #MetaFrameType
1507
1507
  * @returns the string value
1508
1508
  */
1509
- function frame_type_to_string(type: FrameType): string | null
1510
- function g_utf8_strndup(src: string | null, n: number): string | null
1509
+ function frame_type_to_string(type: FrameType): string
1510
+ function g_utf8_strndup(src: string, n: number): string | null
1511
1511
  /**
1512
1512
  * Accessor for the singleton MetaBackend.
1513
1513
  * @returns The only #MetaBackend there is.
@@ -1521,7 +1521,7 @@ function get_stage_for_display(display: Display): Clutter.Actor
1521
1521
  function get_top_window_group_for_display(display: Display): Clutter.Actor
1522
1522
  function get_window_actors(display: Display): Clutter.Actor[]
1523
1523
  function get_window_group_for_display(display: Display): Clutter.Actor
1524
- function gravity_to_string(gravity: Gravity): string | null
1524
+ function gravity_to_string(gravity: Gravity): string
1525
1525
  /**
1526
1526
  * Returns %TRUE if this instance of Mutter comes from Mutter
1527
1527
  * restarting itself (for example to enable/disable stereo.)
@@ -1549,7 +1549,7 @@ function is_wayland_compositor(): boolean
1549
1549
  * @param handler The new handler function
1550
1550
  * @returns %TRUE if the binding known as @name was found, %FALSE otherwise.
1551
1551
  */
1552
- function keybindings_set_custom_handler(name: string | null, handler: KeyHandlerFunc | null): boolean
1552
+ function keybindings_set_custom_handler(name: string, handler: KeyHandlerFunc | null): boolean
1553
1553
  /**
1554
1554
  * Sets up a callback to be called at some later time. `when` determines the
1555
1555
  * particular later occasion at which it is called. This is much like g_idle_add(),
@@ -1568,9 +1568,9 @@ function later_add(when: LaterType, func: GLib.SourceFunc): number
1568
1568
  */
1569
1569
  function later_remove(later_id: number): void
1570
1570
  function pop_no_msg_prefix(): void
1571
- function preference_to_string(pref: Preference): string | null
1571
+ function preference_to_string(pref: Preference): string
1572
1572
  function prefs_bell_is_audible(): boolean
1573
- function prefs_change_workspace_name(i: number, name: string | null): void
1573
+ function prefs_change_workspace_name(i: number, name: string): void
1574
1574
  function prefs_get_action_double_click_titlebar(): GDesktopEnums.TitlebarAction
1575
1575
  function prefs_get_action_middle_click_titlebar(): GDesktopEnums.TitlebarAction
1576
1576
  function prefs_get_action_right_click_titlebar(): GDesktopEnums.TitlebarAction
@@ -1583,7 +1583,7 @@ function prefs_get_center_new_windows(): boolean
1583
1583
  function prefs_get_check_alive_timeout(): number
1584
1584
  function prefs_get_compositing_manager(): boolean
1585
1585
  function prefs_get_cursor_size(): number
1586
- function prefs_get_cursor_theme(): string | null
1586
+ function prefs_get_cursor_theme(): string
1587
1587
  function prefs_get_disable_workarounds(): boolean
1588
1588
  function prefs_get_drag_threshold(): number
1589
1589
  function prefs_get_draggable_border_width(): number
@@ -1595,7 +1595,7 @@ function prefs_get_focus_new_windows(): GDesktopEnums.FocusNewWindows
1595
1595
  function prefs_get_force_fullscreen(): boolean
1596
1596
  function prefs_get_gnome_accessibility(): boolean
1597
1597
  function prefs_get_gnome_animations(): boolean
1598
- function prefs_get_keybinding_action(name: string | null): KeyBindingAction
1598
+ function prefs_get_keybinding_action(name: string): KeyBindingAction
1599
1599
  function prefs_get_mouse_button_menu(): number
1600
1600
  function prefs_get_mouse_button_mods(): VirtualModifier
1601
1601
  function prefs_get_mouse_button_resize(): number
@@ -1605,7 +1605,7 @@ function prefs_get_show_fallback_app_menu(): boolean
1605
1605
  function prefs_get_titlebar_font(): Pango.FontDescription
1606
1606
  function prefs_get_visual_bell(): boolean
1607
1607
  function prefs_get_visual_bell_type(): GDesktopEnums.VisualBellType
1608
- function prefs_get_workspace_name(i: number): string | null
1608
+ function prefs_get_workspace_name(i: number): string
1609
1609
  function prefs_get_workspaces_only_on_primary(): boolean
1610
1610
  function prefs_set_force_fullscreen(whether: boolean): void
1611
1611
  function prefs_set_num_workspaces(n_workspaces: number): void
@@ -1634,7 +1634,7 @@ function remove_verbose_topic(topic: DebugTopic): void
1634
1634
  * @param message message to display to the user, or %NULL
1635
1635
  */
1636
1636
  function restart(message: string | null): void
1637
- function topic_to_string(topic: DebugTopic): string | null
1637
+ function topic_to_string(topic: DebugTopic): string
1638
1638
  function unsigned_long_equal(v1: any | null, v2: any | null): number
1639
1639
  function unsigned_long_hash(v: any | null): number
1640
1640
  function x11_error_trap_pop(x11_display: X11Display): void
@@ -1928,7 +1928,7 @@ interface Backend extends Gio.Initable {
1928
1928
  is_headless(): boolean
1929
1929
  is_rendering_hardware_accelerated(): boolean
1930
1930
  lock_layout_group(idx: number): void
1931
- set_keymap(layouts: string | null, variants: string | null, options: string | null): void
1931
+ set_keymap(layouts: string, variants: string, options: string): void
1932
1932
 
1933
1933
  // Own signals of Meta-10.Meta.Backend
1934
1934
 
@@ -1993,7 +1993,6 @@ module Background {
1993
1993
 
1994
1994
  // Own constructor properties of Meta-10.Meta.Background
1995
1995
 
1996
- meta_display?: Display | null
1997
1996
  metaDisplay?: Display | null
1998
1997
  }
1999
1998
 
@@ -2003,7 +2002,6 @@ interface Background {
2003
2002
 
2004
2003
  // Own properties of Meta-10.Meta.Background
2005
2004
 
2006
- readonly meta_display: Display
2007
2005
  readonly metaDisplay: Display
2008
2006
 
2009
2007
  // Owm methods of Meta-10.Meta.Background
@@ -2065,9 +2063,8 @@ module BackgroundActor {
2065
2063
 
2066
2064
  // Own constructor properties of Meta-10.Meta.BackgroundActor
2067
2065
 
2068
- meta_display?: Display | null
2069
- monitor?: number | null
2070
2066
  metaDisplay?: Display | null
2067
+ monitor?: number | null
2071
2068
  }
2072
2069
 
2073
2070
  }
@@ -2076,7 +2073,6 @@ interface BackgroundActor extends Atk.ImplementorIface, Clutter.Animatable, Clut
2076
2073
 
2077
2074
  // Own properties of Meta-10.Meta.BackgroundActor
2078
2075
 
2079
- readonly meta_display: Display
2080
2076
  readonly metaDisplay: Display
2081
2077
  readonly monitor: number
2082
2078
 
@@ -2362,17 +2358,12 @@ module BackgroundContent {
2362
2358
  background?: Background | null
2363
2359
  brightness?: number | null
2364
2360
  gradient?: boolean | null
2365
- gradient_height?: number | null
2366
- gradient_max_darkness?: number | null
2367
- meta_display?: Display | null
2368
- monitor?: number | null
2369
- rounded_clip_radius?: number | null
2370
- vignette?: boolean | null
2371
- vignette_sharpness?: number | null
2372
2361
  gradientHeight?: number | null
2373
2362
  gradientMaxDarkness?: number | null
2374
2363
  metaDisplay?: Display | null
2364
+ monitor?: number | null
2375
2365
  roundedClipRadius?: number | null
2366
+ vignette?: boolean | null
2376
2367
  vignetteSharpness?: number | null
2377
2368
  }
2378
2369
 
@@ -2385,17 +2376,12 @@ interface BackgroundContent extends Clutter.Content {
2385
2376
  background: Background
2386
2377
  brightness: number
2387
2378
  gradient: boolean
2388
- gradient_height: number
2389
2379
  gradientHeight: number
2390
- gradient_max_darkness: number
2391
2380
  gradientMaxDarkness: number
2392
- readonly meta_display: Display
2393
2381
  readonly metaDisplay: Display
2394
2382
  readonly monitor: number
2395
- rounded_clip_radius: number
2396
2383
  roundedClipRadius: number
2397
2384
  vignette: boolean
2398
- vignette_sharpness: number
2399
2385
  vignetteSharpness: number
2400
2386
 
2401
2387
  // Owm methods of Meta-10.Meta.BackgroundContent
@@ -3052,7 +3038,6 @@ module Context {
3052
3038
  // Own constructor properties of Meta-10.Meta.Context
3053
3039
 
3054
3040
  name?: string | null
3055
- unsafe_mode?: boolean | null
3056
3041
  unsafeMode?: boolean | null
3057
3042
  }
3058
3043
 
@@ -3063,7 +3048,6 @@ interface Context {
3063
3048
  // Own properties of Meta-10.Meta.Context
3064
3049
 
3065
3050
  readonly name: string | null
3066
- unsafe_mode: boolean
3067
3051
  unsafeMode: boolean
3068
3052
 
3069
3053
  // Own fields of Meta-10.Meta.Context
@@ -3099,9 +3083,9 @@ interface Context {
3099
3083
  */
3100
3084
  restore_rlimit_nofile(): boolean
3101
3085
  run_main_loop(): boolean
3102
- set_gnome_wm_keybindings(wm_keybindings: string | null): void
3086
+ set_gnome_wm_keybindings(wm_keybindings: string): void
3103
3087
  set_plugin_gtype(plugin_gtype: GObject.GType): void
3104
- set_plugin_name(plugin_name: string | null): void
3088
+ set_plugin_name(plugin_name: string): void
3105
3089
  setup(): boolean
3106
3090
  start(): boolean
3107
3091
  terminate(): void
@@ -3446,9 +3430,7 @@ interface Display {
3446
3430
 
3447
3431
  // Own properties of Meta-10.Meta.Display
3448
3432
 
3449
- readonly compositor_modifiers: Clutter.ModifierType
3450
3433
  readonly compositorModifiers: Clutter.ModifierType
3451
- readonly focus_window: Window
3452
3434
  readonly focusWindow: Window
3453
3435
 
3454
3436
  // Owm methods of Meta-10.Meta.Display
@@ -3478,7 +3460,7 @@ interface Display {
3478
3460
  * @param handler function to run when the keybinding is invoked
3479
3461
  * @returns the corresponding keybinding action if the keybinding was added successfully, otherwise %META_KEYBINDING_ACTION_NONE
3480
3462
  */
3481
- add_keybinding(name: string | null, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3463
+ add_keybinding(name: string, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3482
3464
  begin_grab_op(window: Window, op: GrabOp, pointer_already_grabbed: boolean, frame_action: boolean, button: number, modmask: number, timestamp: number, root_x: number, root_y: number): boolean
3483
3465
  /**
3484
3466
  * Sets the mouse-mode flag to %FALSE, which means that motion events are
@@ -3593,7 +3575,7 @@ interface Display {
3593
3575
  */
3594
3576
  get_tab_next(type: TabList, workspace: Workspace, window: Window | null, backward: boolean): Window
3595
3577
  get_workspace_manager(): WorkspaceManager
3596
- grab_accelerator(accelerator: string | null, flags: KeyBindingFlags): number
3578
+ grab_accelerator(accelerator: string, flags: KeyBindingFlags): number
3597
3579
  /**
3598
3580
  * Tells whether the event sequence is the used for pointer emulation
3599
3581
  * and single-touch interaction.
@@ -3613,7 +3595,7 @@ interface Display {
3613
3595
  * @param name name of the keybinding to remove
3614
3596
  * @returns %TRUE if the binding has been removed successfully, otherwise %FALSE
3615
3597
  */
3616
- remove_keybinding(name: string | null): boolean
3598
+ remove_keybinding(name: string): boolean
3617
3599
  request_pad_osd(pad: Clutter.InputDevice, edition_mode: boolean): void
3618
3600
  set_cursor(cursor: Cursor): void
3619
3601
  set_input_focus(window: Window, focus_frame: boolean, timestamp: number): void
@@ -4004,9 +3986,7 @@ interface MonitorManager {
4004
3986
  // Own properties of Meta-10.Meta.MonitorManager
4005
3987
 
4006
3988
  readonly backend: Backend
4007
- readonly has_builtin_panel: boolean
4008
3989
  readonly hasBuiltinPanel: boolean
4009
- readonly panel_orientation_managed: boolean
4010
3990
  readonly panelOrientationManaged: boolean
4011
3991
 
4012
3992
  // Owm methods of Meta-10.Meta.MonitorManager
@@ -4016,7 +3996,7 @@ interface MonitorManager {
4016
3996
  * Returns whether the built-in display (i.e. a laptop panel) is turned on.
4017
3997
  */
4018
3998
  get_is_builtin_display_on(): boolean
4019
- get_monitor_for_connector(connector: string | null): number
3999
+ get_monitor_for_connector(connector: string): number
4020
4000
  get_panel_orientation_managed(): boolean
4021
4001
  get_switch_config(): MonitorSwitchConfigType
4022
4002
  switch_config(config_type: MonitorSwitchConfigType): void
@@ -4297,7 +4277,6 @@ module RemoteAccessHandle {
4297
4277
 
4298
4278
  // Own constructor properties of Meta-10.Meta.RemoteAccessHandle
4299
4279
 
4300
- is_recording?: boolean | null
4301
4280
  isRecording?: boolean | null
4302
4281
  }
4303
4282
 
@@ -4307,7 +4286,6 @@ interface RemoteAccessHandle {
4307
4286
 
4308
4287
  // Own properties of Meta-10.Meta.RemoteAccessHandle
4309
4288
 
4310
- readonly is_recording: boolean
4311
4289
  readonly isRecording: boolean
4312
4290
 
4313
4291
  // Own fields of Meta-10.Meta.RemoteAccessHandle
@@ -4406,7 +4384,7 @@ interface Selection {
4406
4384
  * @param cancellable Cancellable
4407
4385
  * @param callback User callback
4408
4386
  */
4409
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4387
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4410
4388
 
4411
4389
  // Overloads of transfer_async
4412
4390
 
@@ -4422,7 +4400,7 @@ interface Selection {
4422
4400
  * @param cancellable Cancellable
4423
4401
  * @returns A Promise of: #TRUE if the transfer was successful.
4424
4402
  */
4425
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4403
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4426
4404
  /**
4427
4405
  * Finishes the transfer of a queried mimetype.
4428
4406
  * @param result The async result
@@ -4510,7 +4488,7 @@ interface SelectionSource {
4510
4488
  * @returns #TRUE if the source owns a selection.
4511
4489
  */
4512
4490
  is_active(): boolean
4513
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4491
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4514
4492
 
4515
4493
  // Overloads of read_async
4516
4494
 
@@ -4522,7 +4500,7 @@ interface SelectionSource {
4522
4500
  * @param cancellable
4523
4501
  * @returns A Promise of: The resulting #GInputStream
4524
4502
  */
4525
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4503
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4526
4504
  /**
4527
4505
  * Finishes a read from the selection source.
4528
4506
  * @param result The async result
@@ -4540,7 +4518,7 @@ interface SelectionSource {
4540
4518
  * @returns The supported mimetypes
4541
4519
  */
4542
4520
  vfunc_get_mimetypes(): string[]
4543
- vfunc_read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4521
+ vfunc_read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4544
4522
  /**
4545
4523
  * Finishes a read from the selection source.
4546
4524
  * @virtual
@@ -4608,8 +4586,8 @@ class SelectionSourceMemory extends SelectionSource {
4608
4586
  // Constructors of Meta-10.Meta.SelectionSourceMemory
4609
4587
 
4610
4588
  constructor(config?: SelectionSourceMemory.ConstructorProperties)
4611
- constructor(mimetype: string | null, content: GLib.Bytes)
4612
- static new(mimetype: string | null, content: GLib.Bytes): SelectionSourceMemory
4589
+ constructor(mimetype: string, content: GLib.Bytes)
4590
+ static new(mimetype: string, content: GLib.Bytes): SelectionSourceMemory
4613
4591
  _init(config?: SelectionSourceMemory.ConstructorProperties): void
4614
4592
  }
4615
4593
 
@@ -4644,7 +4622,7 @@ interface ShadowFactory {
4644
4622
  * @param class_name name of the class of shadow to get the params for
4645
4623
  * @param focused whether the shadow is for a focused window
4646
4624
  */
4647
- get_params(class_name: string | null, focused: boolean): /* params */ ShadowParams
4625
+ get_params(class_name: string, focused: boolean): /* params */ ShadowParams
4648
4626
  /**
4649
4627
  * Gets the appropriate shadow object for drawing shadows for the
4650
4628
  * specified window shape. The region that we are shadowing is specified
@@ -4658,7 +4636,7 @@ interface ShadowFactory {
4658
4636
  * @param focused whether the shadow is for a focused window
4659
4637
  * @returns a newly referenced #MetaShadow; unref with meta_shadow_unref()
4660
4638
  */
4661
- get_shadow(shape: WindowShape, width: number, height: number, class_name: string | null, focused: boolean): Shadow
4639
+ get_shadow(shape: WindowShape, width: number, height: number, class_name: string, focused: boolean): Shadow
4662
4640
  /**
4663
4641
  * Updates the shadow parameters for a particular class of shadows
4664
4642
  * for either the focused or unfocused state. If the class name
@@ -4669,7 +4647,7 @@ interface ShadowFactory {
4669
4647
  * @param focused whether the shadow is for a focused window
4670
4648
  * @param params new parameter values
4671
4649
  */
4672
- set_params(class_name: string | null, focused: boolean, params: ShadowParams): void
4650
+ set_params(class_name: string, focused: boolean, params: ShadowParams): void
4673
4651
 
4674
4652
  // Own signals of Meta-10.Meta.ShadowFactory
4675
4653
 
@@ -4788,14 +4766,14 @@ interface SoundPlayer {
4788
4766
  * @param description description of the played sound
4789
4767
  * @param cancellable cancellable for the request
4790
4768
  */
4791
- play_from_file(file: Gio.File, description: string | null, cancellable: Gio.Cancellable | null): void
4769
+ play_from_file(file: Gio.File, description: string, cancellable: Gio.Cancellable | null): void
4792
4770
  /**
4793
4771
  * Plays a sound from the sound theme.
4794
4772
  * @param name sound theme name of the event
4795
4773
  * @param description description of the event
4796
4774
  * @param cancellable cancellable for the request
4797
4775
  */
4798
- play_from_theme(name: string | null, description: string | null, cancellable: Gio.Cancellable | null): void
4776
+ play_from_theme(name: string, description: string, cancellable: Gio.Cancellable | null): void
4799
4777
 
4800
4778
  // Class property signals of Meta-10.Meta.SoundPlayer
4801
4779
 
@@ -5183,15 +5161,13 @@ module StartupSequence {
5183
5161
 
5184
5162
  // Own constructor properties of Meta-10.Meta.StartupSequence
5185
5163
 
5186
- application_id?: string | null
5187
- icon_name?: string | null
5164
+ applicationId?: string | null
5165
+ iconName?: string | null
5188
5166
  id?: string | null
5189
5167
  name?: string | null
5190
5168
  timestamp?: number | null
5191
5169
  wmclass?: string | null
5192
5170
  workspace?: number | null
5193
- applicationId?: string | null
5194
- iconName?: string | null
5195
5171
  }
5196
5172
 
5197
5173
  }
@@ -5200,9 +5176,7 @@ interface StartupSequence {
5200
5176
 
5201
5177
  // Own properties of Meta-10.Meta.StartupSequence
5202
5178
 
5203
- readonly application_id: string | null
5204
5179
  readonly applicationId: string | null
5205
- readonly icon_name: string | null
5206
5180
  readonly iconName: string | null
5207
5181
  readonly id: string | null
5208
5182
  readonly name: string | null
@@ -5228,8 +5202,8 @@ interface StartupSequence {
5228
5202
  * @returns the icon name or %NULL.
5229
5203
  */
5230
5204
  get_icon_name(): string | null
5231
- get_id(): string | null
5232
- get_name(): string | null
5205
+ get_id(): string
5206
+ get_name(): string
5233
5207
  get_timestamp(): number
5234
5208
  /**
5235
5209
  * Get the wmclass of the startup sequence.
@@ -5437,48 +5411,30 @@ interface Window {
5437
5411
  // Own properties of Meta-10.Meta.Window
5438
5412
 
5439
5413
  readonly above: boolean
5440
- readonly appears_focused: boolean
5441
5414
  readonly appearsFocused: boolean
5442
5415
  readonly decorated: boolean
5443
- readonly demands_attention: boolean
5444
5416
  readonly demandsAttention: boolean
5445
5417
  readonly fullscreen: boolean
5446
- readonly gtk_app_menu_object_path: string | null
5447
5418
  readonly gtkAppMenuObjectPath: string | null
5448
- readonly gtk_application_id: string | null
5449
5419
  readonly gtkApplicationId: string | null
5450
- readonly gtk_application_object_path: string | null
5451
5420
  readonly gtkApplicationObjectPath: string | null
5452
- readonly gtk_menubar_object_path: string | null
5453
5421
  readonly gtkMenubarObjectPath: string | null
5454
- readonly gtk_unique_bus_name: string | null
5455
5422
  readonly gtkUniqueBusName: string | null
5456
- readonly gtk_window_object_path: string | null
5457
5423
  readonly gtkWindowObjectPath: string | null
5458
5424
  readonly icon: any
5459
- readonly is_alive: boolean
5460
5425
  readonly isAlive: boolean
5461
- readonly maximized_horizontally: boolean
5462
5426
  readonly maximizedHorizontally: boolean
5463
- readonly maximized_vertically: boolean
5464
5427
  readonly maximizedVertically: boolean
5465
- readonly mini_icon: any
5466
5428
  readonly miniIcon: any
5467
5429
  readonly minimized: boolean
5468
- readonly mutter_hints: string | null
5469
5430
  readonly mutterHints: string | null
5470
- readonly on_all_workspaces: boolean
5471
5431
  readonly onAllWorkspaces: boolean
5472
5432
  readonly resizeable: boolean
5473
- readonly skip_taskbar: boolean
5474
5433
  readonly skipTaskbar: boolean
5475
5434
  readonly title: string | null
5476
5435
  readonly urgent: boolean
5477
- readonly user_time: number
5478
5436
  readonly userTime: number
5479
- readonly window_type: WindowType
5480
5437
  readonly windowType: WindowType
5481
- readonly wm_class: string | null
5482
5438
  readonly wmClass: string | null
5483
5439
 
5484
5440
  // Owm methods of Meta-10.Meta.Window
@@ -5487,6 +5443,13 @@ interface Window {
5487
5443
  activate_with_workspace(current_time: number, workspace: Workspace): void
5488
5444
  allows_move(): boolean
5489
5445
  allows_resize(): boolean
5446
+ /**
5447
+ * Determines if the window should be drawn with a focused appearance. This is
5448
+ * true for focused windows but also true for windows with a focused modal
5449
+ * dialog attached.
5450
+ * @returns %TRUE if the window should be drawn with a focused frame
5451
+ */
5452
+ appears_focused(): boolean
5490
5453
  begin_grab_op(op: GrabOp, frame_action: boolean, timestamp: number): void
5491
5454
  can_close(): boolean
5492
5455
  can_maximize(): boolean
@@ -5557,7 +5520,7 @@ interface Window {
5557
5520
  * @returns the wrapper object.
5558
5521
  */
5559
5522
  get_compositor_private(): GObject.Object
5560
- get_description(): string | null
5523
+ get_description(): string
5561
5524
  get_display(): Display
5562
5525
  /**
5563
5526
  * Gets a region representing the outer bounds of the window's frame.
@@ -5630,7 +5593,7 @@ interface Window {
5630
5593
  * @returns the pid, or 0 if not known.
5631
5594
  */
5632
5595
  get_pid(): number
5633
- get_role(): string | null
5596
+ get_role(): string
5634
5597
  /**
5635
5598
  * Gets an unique id for a sandboxed app (currently flatpaks and snaps are
5636
5599
  * supported).
@@ -5663,7 +5626,7 @@ interface Window {
5663
5626
  * @returns the matching tiled window or %NULL if it doesn't exist.
5664
5627
  */
5665
5628
  get_tile_match(): Window | null
5666
- get_title(): string | null
5629
+ get_title(): string
5667
5630
  /**
5668
5631
  * Returns the #MetaWindow for the window that is pointed to by the
5669
5632
  * WM_TRANSIENT_FOR hint on this window (see XGetTransientForHint()
@@ -5988,7 +5951,6 @@ module WindowActor {
5988
5951
 
5989
5952
  // Own constructor properties of Meta-10.Meta.WindowActor
5990
5953
 
5991
- meta_window?: Window | null
5992
5954
  metaWindow?: Window | null
5993
5955
  }
5994
5956
 
@@ -5998,7 +5960,6 @@ interface WindowActor extends Atk.ImplementorIface, Clutter.Animatable, Clutter.
5998
5960
 
5999
5961
  // Own properties of Meta-10.Meta.WindowActor
6000
5962
 
6001
- readonly meta_window: Window
6002
5963
  readonly metaWindow: Window
6003
5964
 
6004
5965
  // Own fields of Meta-10.Meta.WindowActor
@@ -6567,9 +6528,7 @@ interface Workspace {
6567
6528
  // Own properties of Meta-10.Meta.Workspace
6568
6529
 
6569
6530
  readonly active: boolean
6570
- readonly n_windows: number
6571
6531
  readonly nWindows: number
6572
- readonly workspace_index: number
6573
6532
  readonly workspaceIndex: number
6574
6533
 
6575
6534
  // Owm methods of Meta-10.Meta.Workspace
@@ -6727,11 +6686,8 @@ interface WorkspaceManager {
6727
6686
 
6728
6687
  // Own properties of Meta-10.Meta.WorkspaceManager
6729
6688
 
6730
- readonly layout_columns: number
6731
6689
  readonly layoutColumns: number
6732
- readonly layout_rows: number
6733
6690
  readonly layoutRows: number
6734
- readonly n_workspaces: number
6735
6691
  readonly nWorkspaces: number
6736
6692
 
6737
6693
  // Owm methods of Meta-10.Meta.WorkspaceManager
@@ -7219,7 +7175,7 @@ interface Group {
7219
7175
  // Owm methods of Meta-10.Meta.Group
7220
7176
 
7221
7177
  get_size(): number
7222
- get_startup_id(): string | null
7178
+ get_startup_id(): string
7223
7179
  list_windows(): Window[]
7224
7180
  update_layers(): void
7225
7181
  }
@@ -7267,7 +7223,7 @@ interface KeyBinding {
7267
7223
 
7268
7224
  get_mask(): number
7269
7225
  get_modifiers(): VirtualModifier
7270
- get_name(): string | null
7226
+ get_name(): string
7271
7227
  is_builtin(): boolean
7272
7228
  is_reversed(): boolean
7273
7229
  }
@@ -7373,27 +7329,27 @@ interface PluginInfo {
7373
7329
  * name of the plugin
7374
7330
  * @field
7375
7331
  */
7376
- name: string | null
7332
+ name: string
7377
7333
  /**
7378
7334
  * version of the plugin
7379
7335
  * @field
7380
7336
  */
7381
- version: string | null
7337
+ version: string
7382
7338
  /**
7383
7339
  * author of the plugin
7384
7340
  * @field
7385
7341
  */
7386
- author: string | null
7342
+ author: string
7387
7343
  /**
7388
7344
  * license of the plugin
7389
7345
  * @field
7390
7346
  */
7391
- license: string | null
7347
+ license: string
7392
7348
  /**
7393
7349
  * description of the plugin
7394
7350
  * @field
7395
7351
  */
7396
- description: string | null
7352
+ description: string
7397
7353
  }
7398
7354
 
7399
7355
  class PluginInfo {
@@ -7501,7 +7457,7 @@ interface SelectionSourceClass {
7501
7457
  activated: (source: SelectionSource) => void
7502
7458
  deactivated: (source: SelectionSource) => void
7503
7459
  get_mimetypes: (source: SelectionSource) => string[]
7504
- read_async: (source: SelectionSource, mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7460
+ read_async: (source: SelectionSource, mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7505
7461
  read_finish: (source: SelectionSource, result: Gio.AsyncResult) => Gio.InputStream
7506
7462
  }
7507
7463
 
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/meta-10",
3
- "version": "10.0.0-3.2.6",
3
+ "version": "10.0.0-3.2.8",
4
4
  "description": "GJS TypeScript type definitions for Meta-10, generated from library version 10.0.0",
5
5
  "type": "module",
6
6
  "module": "meta-10.js",
7
7
  "main": "meta-10.js",
8
8
  "exports": {
9
- "./ambient": "./meta-10-ambient.d.ts",
10
- "./import": "./meta-10-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./meta-10-ambient.d.ts",
11
+ "default": "./meta-10-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./meta-10-import.d.ts",
15
+ "default": "./meta-10-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./meta-10.d.ts",
@@ -25,29 +31,29 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit meta-10.d.cts"
26
32
  },
27
33
  "dependencies": {
28
- "@girs/atk-1.0": "^2.50.0-3.2.6",
29
- "@girs/cairo-1.0": "^1.0.0-3.2.6",
30
- "@girs/clutter-10": "^10.0.0-3.2.6",
31
- "@girs/cogl-10": "^10.0.0-3.2.6",
32
- "@girs/coglpango-10": "^10.0.0-3.2.6",
33
- "@girs/freetype2-2.0": "^2.0.0-3.2.6",
34
- "@girs/gdesktopenums-3.0": "^3.0.0-3.2.6",
35
- "@girs/gdk-3.0": "^3.24.38-3.2.6",
36
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.6",
37
- "@girs/gio-2.0": "^2.78.0-3.2.6",
38
- "@girs/gjs": "^3.2.6",
39
- "@girs/gl-1.0": "^1.0.0-3.2.6",
40
- "@girs/glib-2.0": "^2.78.0-3.2.6",
41
- "@girs/gmodule-2.0": "^2.0.0-3.2.6",
42
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
43
- "@girs/graphene-1.0": "^1.0.0-3.2.6",
44
- "@girs/gtk-3.0": "^3.24.38-3.2.6",
45
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.6",
46
- "@girs/json-1.0": "^1.7.1-3.2.6",
47
- "@girs/pango-1.0": "^1.51.0-3.2.6",
48
- "@girs/pangocairo-1.0": "^1.0.0-3.2.6",
49
- "@girs/xfixes-4.0": "^4.0.0-3.2.6",
50
- "@girs/xlib-2.0": "^2.0.0-3.2.6"
34
+ "@girs/atk-1.0": "^2.45.1-3.2.8",
35
+ "@girs/cairo-1.0": "^1.0.0-3.2.8",
36
+ "@girs/clutter-10": "^10.0.0-3.2.8",
37
+ "@girs/cogl-10": "^10.0.0-3.2.8",
38
+ "@girs/coglpango-10": "^10.0.0-3.2.8",
39
+ "@girs/freetype2-2.0": "^2.0.0-3.2.8",
40
+ "@girs/gdesktopenums-3.0": "^3.0.0-3.2.8",
41
+ "@girs/gdk-3.0": "^3.24.39-3.2.8",
42
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.8",
43
+ "@girs/gio-2.0": "^2.77.0-3.2.8",
44
+ "@girs/gjs": "^3.2.8",
45
+ "@girs/gl-1.0": "^1.0.0-3.2.8",
46
+ "@girs/glib-2.0": "^2.77.0-3.2.8",
47
+ "@girs/gmodule-2.0": "^2.0.0-3.2.8",
48
+ "@girs/gobject-2.0": "^2.77.0-3.2.8",
49
+ "@girs/graphene-1.0": "^1.0.0-3.2.8",
50
+ "@girs/gtk-3.0": "^3.24.39-3.2.8",
51
+ "@girs/harfbuzz-0.0": "^8.1.1-3.2.8",
52
+ "@girs/json-1.0": "^1.7.1-3.2.8",
53
+ "@girs/pango-1.0": "^1.51.0-3.2.8",
54
+ "@girs/pangocairo-1.0": "^1.0.0-3.2.8",
55
+ "@girs/xfixes-4.0": "^4.0.0-3.2.8",
56
+ "@girs/xlib-2.0": "^2.0.0-3.2.8"
51
57
  },
52
58
  "devDependencies": {
53
59
  "typescript": "*"
@@ -64,7 +70,7 @@
64
70
  "license": "MIT",
65
71
  "repository": {
66
72
  "type": "git",
67
- "url": "git+https://github.com/gjsify/types.git"
73
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
68
74
  },
69
75
  "bugs": {
70
76
  "url": "https://github.com/gjsify/ts-for-gir/issues"