@girs/meta-11 11.0.0-3.2.6 → 11.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-11)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Meta-11, generated from library version 11.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for Meta-11, generated from library version 11.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-11.d.cts CHANGED
@@ -1487,7 +1487,7 @@ export enum VirtualModifier {
1487
1487
  MOD5_MASK,
1488
1488
  }
1489
1489
  export const CURRENT_TIME: number
1490
- export const DEFAULT_ICON_NAME: string | null
1490
+ export const DEFAULT_ICON_NAME: string
1491
1491
  export const ICON_HEIGHT: number
1492
1492
  export const ICON_WIDTH: number
1493
1493
  export const MINI_ICON_HEIGHT: number
@@ -1512,7 +1512,7 @@ export function clutter_init(): void
1512
1512
  * @param name Human readable name of display server or window manager
1513
1513
  * @returns A new context instance.
1514
1514
  */
1515
- export function create_context(name: string | null): Context
1515
+ export function create_context(name: string): Context
1516
1516
  /**
1517
1517
  * Disables unredirection, can be useful in situations where having
1518
1518
  * unredirected windows is undesirable like when recording a video.
@@ -1533,8 +1533,8 @@ export function focus_stage_window(display: Display, timestamp: number): void
1533
1533
  * @param type a #MetaFrameType
1534
1534
  * @returns the string value
1535
1535
  */
1536
- export function frame_type_to_string(type: FrameType): string | null
1537
- export function g_utf8_strndup(src: string | null, n: number): string | null
1536
+ export function frame_type_to_string(type: FrameType): string
1537
+ export function g_utf8_strndup(src: string, n: number): string | null
1538
1538
  /**
1539
1539
  * Accessor for the singleton MetaBackend.
1540
1540
  * @returns The only #MetaBackend there is.
@@ -1548,7 +1548,7 @@ export function get_stage_for_display(display: Display): Clutter.Actor
1548
1548
  export function get_top_window_group_for_display(display: Display): Clutter.Actor
1549
1549
  export function get_window_actors(display: Display): Clutter.Actor[]
1550
1550
  export function get_window_group_for_display(display: Display): Clutter.Actor
1551
- export function gravity_to_string(gravity: Gravity): string | null
1551
+ export function gravity_to_string(gravity: Gravity): string
1552
1552
  /**
1553
1553
  * Returns %TRUE if this instance of Mutter comes from Mutter
1554
1554
  * restarting itself (for example to enable/disable stereo.)
@@ -1566,7 +1566,7 @@ export function is_wayland_compositor(): boolean
1566
1566
  * @param handler The new handler function
1567
1567
  * @returns %TRUE if the binding known as @name was found, %FALSE otherwise.
1568
1568
  */
1569
- export function keybindings_set_custom_handler(name: string | null, handler: KeyHandlerFunc | null): boolean
1569
+ export function keybindings_set_custom_handler(name: string, handler: KeyHandlerFunc | null): boolean
1570
1570
  /**
1571
1571
  * Sets up a callback to be called at some later time. `when` determines the
1572
1572
  * particular later occasion at which it is called. This is much like g_idle_add(),
@@ -1585,9 +1585,9 @@ export function later_add(when: LaterType, func: GLib.SourceFunc): number
1585
1585
  */
1586
1586
  export function later_remove(later_id: number): void
1587
1587
  export function pop_no_msg_prefix(): void
1588
- export function preference_to_string(pref: Preference): string | null
1588
+ export function preference_to_string(pref: Preference): string
1589
1589
  export function prefs_bell_is_audible(): boolean
1590
- export function prefs_change_workspace_name(i: number, name: string | null): void
1590
+ export function prefs_change_workspace_name(i: number, name: string): void
1591
1591
  export function prefs_get_action_double_click_titlebar(): GDesktopEnums.TitlebarAction
1592
1592
  export function prefs_get_action_middle_click_titlebar(): GDesktopEnums.TitlebarAction
1593
1593
  export function prefs_get_action_right_click_titlebar(): GDesktopEnums.TitlebarAction
@@ -1600,7 +1600,7 @@ export function prefs_get_center_new_windows(): boolean
1600
1600
  export function prefs_get_check_alive_timeout(): number
1601
1601
  export function prefs_get_compositing_manager(): boolean
1602
1602
  export function prefs_get_cursor_size(): number
1603
- export function prefs_get_cursor_theme(): string | null
1603
+ export function prefs_get_cursor_theme(): string
1604
1604
  export function prefs_get_disable_workarounds(): boolean
1605
1605
  export function prefs_get_drag_threshold(): number
1606
1606
  export function prefs_get_draggable_border_width(): number
@@ -1612,7 +1612,7 @@ export function prefs_get_focus_new_windows(): GDesktopEnums.FocusNewWindows
1612
1612
  export function prefs_get_force_fullscreen(): boolean
1613
1613
  export function prefs_get_gnome_accessibility(): boolean
1614
1614
  export function prefs_get_gnome_animations(): boolean
1615
- export function prefs_get_keybinding_action(name: string | null): KeyBindingAction
1615
+ export function prefs_get_keybinding_action(name: string): KeyBindingAction
1616
1616
  export function prefs_get_mouse_button_menu(): number
1617
1617
  export function prefs_get_mouse_button_mods(): VirtualModifier
1618
1618
  export function prefs_get_mouse_button_resize(): number
@@ -1622,7 +1622,7 @@ export function prefs_get_show_fallback_app_menu(): boolean
1622
1622
  export function prefs_get_titlebar_font(): Pango.FontDescription
1623
1623
  export function prefs_get_visual_bell(): boolean
1624
1624
  export function prefs_get_visual_bell_type(): GDesktopEnums.VisualBellType
1625
- export function prefs_get_workspace_name(i: number): string | null
1625
+ export function prefs_get_workspace_name(i: number): string
1626
1626
  export function prefs_get_workspaces_only_on_primary(): boolean
1627
1627
  export function prefs_set_force_fullscreen(whether: boolean): void
1628
1628
  export function prefs_set_num_workspaces(n_workspaces: number): void
@@ -1652,7 +1652,7 @@ export function remove_verbose_topic(topic: DebugTopic): void
1652
1652
  * @param context a #MetaContext
1653
1653
  */
1654
1654
  export function restart(message: string | null, context: Context): void
1655
- export function topic_to_string(topic: DebugTopic): string | null
1655
+ export function topic_to_string(topic: DebugTopic): string
1656
1656
  export function unsigned_long_equal(v1: any | null, v2: any | null): number
1657
1657
  export function unsigned_long_hash(v: any | null): number
1658
1658
  export function x11_error_trap_pop(x11_display: X11Display): void
@@ -1948,7 +1948,7 @@ export interface Backend extends Gio.Initable {
1948
1948
  is_headless(): boolean
1949
1949
  is_rendering_hardware_accelerated(): boolean
1950
1950
  lock_layout_group(idx: number): void
1951
- set_keymap(layouts: string | null, variants: string | null, options: string | null): void
1951
+ set_keymap(layouts: string, variants: string, options: string): void
1952
1952
 
1953
1953
  // Own signals of Meta-11.Meta.Backend
1954
1954
 
@@ -2016,7 +2016,6 @@ export module Background {
2016
2016
 
2017
2017
  // Own constructor properties of Meta-11.Meta.Background
2018
2018
 
2019
- meta_display?: Display | null
2020
2019
  metaDisplay?: Display | null
2021
2020
  }
2022
2021
 
@@ -2026,7 +2025,6 @@ export interface Background {
2026
2025
 
2027
2026
  // Own properties of Meta-11.Meta.Background
2028
2027
 
2029
- readonly meta_display: Display
2030
2028
  readonly metaDisplay: Display
2031
2029
 
2032
2030
  // Owm methods of Meta-11.Meta.Background
@@ -2088,9 +2086,8 @@ export module BackgroundActor {
2088
2086
 
2089
2087
  // Own constructor properties of Meta-11.Meta.BackgroundActor
2090
2088
 
2091
- meta_display?: Display | null
2092
- monitor?: number | null
2093
2089
  metaDisplay?: Display | null
2090
+ monitor?: number | null
2094
2091
  }
2095
2092
 
2096
2093
  }
@@ -2099,7 +2096,6 @@ export interface BackgroundActor extends Atk.ImplementorIface, Clutter.Animatabl
2099
2096
 
2100
2097
  // Own properties of Meta-11.Meta.BackgroundActor
2101
2098
 
2102
- readonly meta_display: Display
2103
2099
  readonly metaDisplay: Display
2104
2100
  readonly monitor: number
2105
2101
 
@@ -2388,17 +2384,12 @@ export module BackgroundContent {
2388
2384
  background?: Background | null
2389
2385
  brightness?: number | null
2390
2386
  gradient?: boolean | null
2391
- gradient_height?: number | null
2392
- gradient_max_darkness?: number | null
2393
- meta_display?: Display | null
2394
- monitor?: number | null
2395
- rounded_clip_radius?: number | null
2396
- vignette?: boolean | null
2397
- vignette_sharpness?: number | null
2398
2387
  gradientHeight?: number | null
2399
2388
  gradientMaxDarkness?: number | null
2400
2389
  metaDisplay?: Display | null
2390
+ monitor?: number | null
2401
2391
  roundedClipRadius?: number | null
2392
+ vignette?: boolean | null
2402
2393
  vignetteSharpness?: number | null
2403
2394
  }
2404
2395
 
@@ -2411,17 +2402,12 @@ export interface BackgroundContent extends Clutter.Content {
2411
2402
  background: Background
2412
2403
  brightness: number
2413
2404
  gradient: boolean
2414
- gradient_height: number
2415
2405
  gradientHeight: number
2416
- gradient_max_darkness: number
2417
2406
  gradientMaxDarkness: number
2418
- readonly meta_display: Display
2419
2407
  readonly metaDisplay: Display
2420
2408
  readonly monitor: number
2421
- rounded_clip_radius: number
2422
2409
  roundedClipRadius: number
2423
2410
  vignette: boolean
2424
- vignette_sharpness: number
2425
2411
  vignetteSharpness: number
2426
2412
 
2427
2413
  // Owm methods of Meta-11.Meta.BackgroundContent
@@ -3082,7 +3068,6 @@ export module Context {
3082
3068
  // Own constructor properties of Meta-11.Meta.Context
3083
3069
 
3084
3070
  name?: string | null
3085
- unsafe_mode?: boolean | null
3086
3071
  unsafeMode?: boolean | null
3087
3072
  }
3088
3073
 
@@ -3093,7 +3078,6 @@ export interface Context {
3093
3078
  // Own properties of Meta-11.Meta.Context
3094
3079
 
3095
3080
  readonly name: string | null
3096
- unsafe_mode: boolean
3097
3081
  unsafeMode: boolean
3098
3082
 
3099
3083
  // Own fields of Meta-11.Meta.Context
@@ -3129,9 +3113,9 @@ export interface Context {
3129
3113
  */
3130
3114
  restore_rlimit_nofile(): boolean
3131
3115
  run_main_loop(): boolean
3132
- set_gnome_wm_keybindings(wm_keybindings: string | null): void
3116
+ set_gnome_wm_keybindings(wm_keybindings: string): void
3133
3117
  set_plugin_gtype(plugin_gtype: GObject.GType): void
3134
- set_plugin_name(plugin_name: string | null): void
3118
+ set_plugin_name(plugin_name: string): void
3135
3119
  setup(): boolean
3136
3120
  start(): boolean
3137
3121
  terminate(): void
@@ -3476,9 +3460,7 @@ export interface Display {
3476
3460
 
3477
3461
  // Own properties of Meta-11.Meta.Display
3478
3462
 
3479
- readonly compositor_modifiers: Clutter.ModifierType
3480
3463
  readonly compositorModifiers: Clutter.ModifierType
3481
- readonly focus_window: Window
3482
3464
  readonly focusWindow: Window
3483
3465
 
3484
3466
  // Owm methods of Meta-11.Meta.Display
@@ -3508,7 +3490,7 @@ export interface Display {
3508
3490
  * @param handler function to run when the keybinding is invoked
3509
3491
  * @returns the corresponding keybinding action if the keybinding was added successfully, otherwise %META_KEYBINDING_ACTION_NONE
3510
3492
  */
3511
- add_keybinding(name: string | null, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3493
+ add_keybinding(name: string, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3512
3494
  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
3513
3495
  /**
3514
3496
  * Sets the mouse-mode flag to %FALSE, which means that motion events are
@@ -3623,7 +3605,7 @@ export interface Display {
3623
3605
  */
3624
3606
  get_tab_next(type: TabList, workspace: Workspace, window: Window | null, backward: boolean): Window
3625
3607
  get_workspace_manager(): WorkspaceManager
3626
- grab_accelerator(accelerator: string | null, flags: KeyBindingFlags): number
3608
+ grab_accelerator(accelerator: string, flags: KeyBindingFlags): number
3627
3609
  /**
3628
3610
  * Tells whether the event sequence is the used for pointer emulation
3629
3611
  * and single-touch interaction.
@@ -3643,7 +3625,7 @@ export interface Display {
3643
3625
  * @param name name of the keybinding to remove
3644
3626
  * @returns %TRUE if the binding has been removed successfully, otherwise %FALSE
3645
3627
  */
3646
- remove_keybinding(name: string | null): boolean
3628
+ remove_keybinding(name: string): boolean
3647
3629
  request_pad_osd(pad: Clutter.InputDevice, edition_mode: boolean): void
3648
3630
  set_cursor(cursor: Cursor): void
3649
3631
  set_input_focus(window: Window, focus_frame: boolean, timestamp: number): void
@@ -4034,11 +4016,8 @@ export interface MonitorManager {
4034
4016
  // Own properties of Meta-11.Meta.MonitorManager
4035
4017
 
4036
4018
  readonly backend: Backend
4037
- readonly has_builtin_panel: boolean
4038
4019
  readonly hasBuiltinPanel: boolean
4039
- readonly night_light_supported: boolean
4040
4020
  readonly nightLightSupported: boolean
4041
- readonly panel_orientation_managed: boolean
4042
4021
  readonly panelOrientationManaged: boolean
4043
4022
 
4044
4023
  // Owm methods of Meta-11.Meta.MonitorManager
@@ -4048,7 +4027,7 @@ export interface MonitorManager {
4048
4027
  * Returns whether the built-in display (i.e. a laptop panel) is turned on.
4049
4028
  */
4050
4029
  get_is_builtin_display_on(): boolean
4051
- get_monitor_for_connector(connector: string | null): number
4030
+ get_monitor_for_connector(connector: string): number
4052
4031
  get_panel_orientation_managed(): boolean
4053
4032
  get_switch_config(): MonitorSwitchConfigType
4054
4033
  switch_config(config_type: MonitorSwitchConfigType): void
@@ -4332,7 +4311,6 @@ export module RemoteAccessHandle {
4332
4311
 
4333
4312
  // Own constructor properties of Meta-11.Meta.RemoteAccessHandle
4334
4313
 
4335
- is_recording?: boolean | null
4336
4314
  isRecording?: boolean | null
4337
4315
  }
4338
4316
 
@@ -4342,7 +4320,6 @@ export interface RemoteAccessHandle {
4342
4320
 
4343
4321
  // Own properties of Meta-11.Meta.RemoteAccessHandle
4344
4322
 
4345
- readonly is_recording: boolean
4346
4323
  readonly isRecording: boolean
4347
4324
 
4348
4325
  // Own fields of Meta-11.Meta.RemoteAccessHandle
@@ -4441,7 +4418,7 @@ export interface Selection {
4441
4418
  * @param cancellable Cancellable
4442
4419
  * @param callback User callback
4443
4420
  */
4444
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4421
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4445
4422
 
4446
4423
  // Overloads of transfer_async
4447
4424
 
@@ -4457,7 +4434,7 @@ export interface Selection {
4457
4434
  * @param cancellable Cancellable
4458
4435
  * @returns A Promise of: #TRUE if the transfer was successful.
4459
4436
  */
4460
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4437
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4461
4438
  /**
4462
4439
  * Finishes the transfer of a queried mimetype.
4463
4440
  * @param result The async result
@@ -4545,7 +4522,7 @@ export interface SelectionSource {
4545
4522
  * @returns #TRUE if the source owns a selection.
4546
4523
  */
4547
4524
  is_active(): boolean
4548
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4525
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4549
4526
 
4550
4527
  // Overloads of read_async
4551
4528
 
@@ -4557,7 +4534,7 @@ export interface SelectionSource {
4557
4534
  * @param cancellable
4558
4535
  * @returns A Promise of: The resulting #GInputStream
4559
4536
  */
4560
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4537
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4561
4538
  /**
4562
4539
  * Finishes a read from the selection source.
4563
4540
  * @param result The async result
@@ -4575,7 +4552,7 @@ export interface SelectionSource {
4575
4552
  * @returns The supported mimetypes
4576
4553
  */
4577
4554
  vfunc_get_mimetypes(): string[]
4578
- vfunc_read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4555
+ vfunc_read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4579
4556
  /**
4580
4557
  * Finishes a read from the selection source.
4581
4558
  * @virtual
@@ -4643,8 +4620,8 @@ export class SelectionSourceMemory extends SelectionSource {
4643
4620
  // Constructors of Meta-11.Meta.SelectionSourceMemory
4644
4621
 
4645
4622
  constructor(config?: SelectionSourceMemory.ConstructorProperties)
4646
- constructor(mimetype: string | null, content: GLib.Bytes)
4647
- static new(mimetype: string | null, content: GLib.Bytes): SelectionSourceMemory
4623
+ constructor(mimetype: string, content: GLib.Bytes)
4624
+ static new(mimetype: string, content: GLib.Bytes): SelectionSourceMemory
4648
4625
  _init(config?: SelectionSourceMemory.ConstructorProperties): void
4649
4626
  }
4650
4627
 
@@ -4679,7 +4656,7 @@ export interface ShadowFactory {
4679
4656
  * @param class_name name of the class of shadow to get the params for
4680
4657
  * @param focused whether the shadow is for a focused window
4681
4658
  */
4682
- get_params(class_name: string | null, focused: boolean): /* params */ ShadowParams
4659
+ get_params(class_name: string, focused: boolean): /* params */ ShadowParams
4683
4660
  /**
4684
4661
  * Gets the appropriate shadow object for drawing shadows for the
4685
4662
  * specified window shape. The region that we are shadowing is specified
@@ -4693,7 +4670,7 @@ export interface ShadowFactory {
4693
4670
  * @param focused whether the shadow is for a focused window
4694
4671
  * @returns a newly referenced #MetaShadow; unref with meta_shadow_unref()
4695
4672
  */
4696
- get_shadow(shape: WindowShape, width: number, height: number, class_name: string | null, focused: boolean): Shadow
4673
+ get_shadow(shape: WindowShape, width: number, height: number, class_name: string, focused: boolean): Shadow
4697
4674
  /**
4698
4675
  * Updates the shadow parameters for a particular class of shadows
4699
4676
  * for either the focused or unfocused state. If the class name
@@ -4704,7 +4681,7 @@ export interface ShadowFactory {
4704
4681
  * @param focused whether the shadow is for a focused window
4705
4682
  * @param params new parameter values
4706
4683
  */
4707
- set_params(class_name: string | null, focused: boolean, params: ShadowParams): void
4684
+ set_params(class_name: string, focused: boolean, params: ShadowParams): void
4708
4685
 
4709
4686
  // Own signals of Meta-11.Meta.ShadowFactory
4710
4687
 
@@ -4823,14 +4800,14 @@ export interface SoundPlayer {
4823
4800
  * @param description description of the played sound
4824
4801
  * @param cancellable cancellable for the request
4825
4802
  */
4826
- play_from_file(file: Gio.File, description: string | null, cancellable: Gio.Cancellable | null): void
4803
+ play_from_file(file: Gio.File, description: string, cancellable: Gio.Cancellable | null): void
4827
4804
  /**
4828
4805
  * Plays a sound from the sound theme.
4829
4806
  * @param name sound theme name of the event
4830
4807
  * @param description description of the event
4831
4808
  * @param cancellable cancellable for the request
4832
4809
  */
4833
- play_from_theme(name: string | null, description: string | null, cancellable: Gio.Cancellable | null): void
4810
+ play_from_theme(name: string, description: string, cancellable: Gio.Cancellable | null): void
4834
4811
 
4835
4812
  // Class property signals of Meta-11.Meta.SoundPlayer
4836
4813
 
@@ -5221,15 +5198,13 @@ export module StartupSequence {
5221
5198
 
5222
5199
  // Own constructor properties of Meta-11.Meta.StartupSequence
5223
5200
 
5224
- application_id?: string | null
5225
- icon_name?: string | null
5201
+ applicationId?: string | null
5202
+ iconName?: string | null
5226
5203
  id?: string | null
5227
5204
  name?: string | null
5228
5205
  timestamp?: number | null
5229
5206
  wmclass?: string | null
5230
5207
  workspace?: number | null
5231
- applicationId?: string | null
5232
- iconName?: string | null
5233
5208
  }
5234
5209
 
5235
5210
  }
@@ -5238,9 +5213,7 @@ export interface StartupSequence {
5238
5213
 
5239
5214
  // Own properties of Meta-11.Meta.StartupSequence
5240
5215
 
5241
- readonly application_id: string | null
5242
5216
  readonly applicationId: string | null
5243
- readonly icon_name: string | null
5244
5217
  readonly iconName: string | null
5245
5218
  readonly id: string | null
5246
5219
  readonly name: string | null
@@ -5266,8 +5239,8 @@ export interface StartupSequence {
5266
5239
  * @returns the icon name or %NULL.
5267
5240
  */
5268
5241
  get_icon_name(): string | null
5269
- get_id(): string | null
5270
- get_name(): string | null
5242
+ get_id(): string
5243
+ get_name(): string
5271
5244
  get_timestamp(): number
5272
5245
  /**
5273
5246
  * Get the wmclass of the startup sequence.
@@ -5475,48 +5448,30 @@ export interface Window {
5475
5448
  // Own properties of Meta-11.Meta.Window
5476
5449
 
5477
5450
  readonly above: boolean
5478
- readonly appears_focused: boolean
5479
5451
  readonly appearsFocused: boolean
5480
5452
  readonly decorated: boolean
5481
- readonly demands_attention: boolean
5482
5453
  readonly demandsAttention: boolean
5483
5454
  readonly fullscreen: boolean
5484
- readonly gtk_app_menu_object_path: string | null
5485
5455
  readonly gtkAppMenuObjectPath: string | null
5486
- readonly gtk_application_id: string | null
5487
5456
  readonly gtkApplicationId: string | null
5488
- readonly gtk_application_object_path: string | null
5489
5457
  readonly gtkApplicationObjectPath: string | null
5490
- readonly gtk_menubar_object_path: string | null
5491
5458
  readonly gtkMenubarObjectPath: string | null
5492
- readonly gtk_unique_bus_name: string | null
5493
5459
  readonly gtkUniqueBusName: string | null
5494
- readonly gtk_window_object_path: string | null
5495
5460
  readonly gtkWindowObjectPath: string | null
5496
5461
  readonly icon: any
5497
- readonly is_alive: boolean
5498
5462
  readonly isAlive: boolean
5499
- readonly maximized_horizontally: boolean
5500
5463
  readonly maximizedHorizontally: boolean
5501
- readonly maximized_vertically: boolean
5502
5464
  readonly maximizedVertically: boolean
5503
- readonly mini_icon: any
5504
5465
  readonly miniIcon: any
5505
5466
  readonly minimized: boolean
5506
- readonly mutter_hints: string | null
5507
5467
  readonly mutterHints: string | null
5508
- readonly on_all_workspaces: boolean
5509
5468
  readonly onAllWorkspaces: boolean
5510
5469
  readonly resizeable: boolean
5511
- readonly skip_taskbar: boolean
5512
5470
  readonly skipTaskbar: boolean
5513
5471
  readonly title: string | null
5514
5472
  readonly urgent: boolean
5515
- readonly user_time: number
5516
5473
  readonly userTime: number
5517
- readonly window_type: WindowType
5518
5474
  readonly windowType: WindowType
5519
- readonly wm_class: string | null
5520
5475
  readonly wmClass: string | null
5521
5476
 
5522
5477
  // Owm methods of Meta-11.Meta.Window
@@ -5525,6 +5480,13 @@ export interface Window {
5525
5480
  activate_with_workspace(current_time: number, workspace: Workspace): void
5526
5481
  allows_move(): boolean
5527
5482
  allows_resize(): boolean
5483
+ /**
5484
+ * Determines if the window should be drawn with a focused appearance. This is
5485
+ * true for focused windows but also true for windows with a focused modal
5486
+ * dialog attached.
5487
+ * @returns %TRUE if the window should be drawn with a focused frame
5488
+ */
5489
+ appears_focused(): boolean
5528
5490
  begin_grab_op(op: GrabOp, frame_action: boolean, timestamp: number): void
5529
5491
  can_close(): boolean
5530
5492
  can_maximize(): boolean
@@ -5595,7 +5557,7 @@ export interface Window {
5595
5557
  * @returns the wrapper object.
5596
5558
  */
5597
5559
  get_compositor_private(): GObject.Object
5598
- get_description(): string | null
5560
+ get_description(): string
5599
5561
  get_display(): Display
5600
5562
  /**
5601
5563
  * Gets a region representing the outer bounds of the window's frame.
@@ -5668,7 +5630,7 @@ export interface Window {
5668
5630
  * @returns the pid, or 0 if not known.
5669
5631
  */
5670
5632
  get_pid(): number
5671
- get_role(): string | null
5633
+ get_role(): string
5672
5634
  /**
5673
5635
  * Gets an unique id for a sandboxed app (currently flatpaks and snaps are
5674
5636
  * supported).
@@ -5701,7 +5663,7 @@ export interface Window {
5701
5663
  * @returns the matching tiled window or %NULL if it doesn't exist.
5702
5664
  */
5703
5665
  get_tile_match(): Window | null
5704
- get_title(): string | null
5666
+ get_title(): string
5705
5667
  /**
5706
5668
  * Returns the #MetaWindow for the window that is pointed to by the
5707
5669
  * WM_TRANSIENT_FOR hint on this window (see XGetTransientForHint()
@@ -6026,7 +5988,6 @@ export module WindowActor {
6026
5988
 
6027
5989
  // Own constructor properties of Meta-11.Meta.WindowActor
6028
5990
 
6029
- meta_window?: Window | null
6030
5991
  metaWindow?: Window | null
6031
5992
  }
6032
5993
 
@@ -6036,7 +5997,6 @@ export interface WindowActor extends Atk.ImplementorIface, Clutter.Animatable, C
6036
5997
 
6037
5998
  // Own properties of Meta-11.Meta.WindowActor
6038
5999
 
6039
- readonly meta_window: Window
6040
6000
  readonly metaWindow: Window
6041
6001
 
6042
6002
  // Own fields of Meta-11.Meta.WindowActor
@@ -6611,9 +6571,7 @@ export interface Workspace {
6611
6571
  // Own properties of Meta-11.Meta.Workspace
6612
6572
 
6613
6573
  readonly active: boolean
6614
- readonly n_windows: number
6615
6574
  readonly nWindows: number
6616
- readonly workspace_index: number
6617
6575
  readonly workspaceIndex: number
6618
6576
 
6619
6577
  // Owm methods of Meta-11.Meta.Workspace
@@ -6771,11 +6729,8 @@ export interface WorkspaceManager {
6771
6729
 
6772
6730
  // Own properties of Meta-11.Meta.WorkspaceManager
6773
6731
 
6774
- readonly layout_columns: number
6775
6732
  readonly layoutColumns: number
6776
- readonly layout_rows: number
6777
6733
  readonly layoutRows: number
6778
- readonly n_workspaces: number
6779
6734
  readonly nWorkspaces: number
6780
6735
 
6781
6736
  // Owm methods of Meta-11.Meta.WorkspaceManager
@@ -7252,7 +7207,7 @@ export interface Group {
7252
7207
  // Owm methods of Meta-11.Meta.Group
7253
7208
 
7254
7209
  get_size(): number
7255
- get_startup_id(): string | null
7210
+ get_startup_id(): string
7256
7211
  list_windows(): Window[]
7257
7212
  update_layers(): void
7258
7213
  }
@@ -7300,7 +7255,7 @@ export interface KeyBinding {
7300
7255
 
7301
7256
  get_mask(): number
7302
7257
  get_modifiers(): VirtualModifier
7303
- get_name(): string | null
7258
+ get_name(): string
7304
7259
  is_builtin(): boolean
7305
7260
  is_reversed(): boolean
7306
7261
  }
@@ -7406,27 +7361,27 @@ export interface PluginInfo {
7406
7361
  * name of the plugin
7407
7362
  * @field
7408
7363
  */
7409
- name: string | null
7364
+ name: string
7410
7365
  /**
7411
7366
  * version of the plugin
7412
7367
  * @field
7413
7368
  */
7414
- version: string | null
7369
+ version: string
7415
7370
  /**
7416
7371
  * author of the plugin
7417
7372
  * @field
7418
7373
  */
7419
- author: string | null
7374
+ author: string
7420
7375
  /**
7421
7376
  * license of the plugin
7422
7377
  * @field
7423
7378
  */
7424
- license: string | null
7379
+ license: string
7425
7380
  /**
7426
7381
  * description of the plugin
7427
7382
  * @field
7428
7383
  */
7429
- description: string | null
7384
+ description: string
7430
7385
  }
7431
7386
 
7432
7387
  export class PluginInfo {
@@ -7534,7 +7489,7 @@ export interface SelectionSourceClass {
7534
7489
  activated: (source: SelectionSource) => void
7535
7490
  deactivated: (source: SelectionSource) => void
7536
7491
  get_mimetypes: (source: SelectionSource) => string[]
7537
- read_async: (source: SelectionSource, mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7492
+ read_async: (source: SelectionSource, mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7538
7493
  read_finish: (source: SelectionSource, result: Gio.AsyncResult) => Gio.InputStream
7539
7494
  }
7540
7495
 
package/meta-11.d.ts CHANGED
@@ -1489,7 +1489,7 @@ enum VirtualModifier {
1489
1489
  MOD5_MASK,
1490
1490
  }
1491
1491
  const CURRENT_TIME: number
1492
- const DEFAULT_ICON_NAME: string | null
1492
+ const DEFAULT_ICON_NAME: string
1493
1493
  const ICON_HEIGHT: number
1494
1494
  const ICON_WIDTH: number
1495
1495
  const MINI_ICON_HEIGHT: number
@@ -1514,7 +1514,7 @@ function clutter_init(): void
1514
1514
  * @param name Human readable name of display server or window manager
1515
1515
  * @returns A new context instance.
1516
1516
  */
1517
- function create_context(name: string | null): Context
1517
+ function create_context(name: string): Context
1518
1518
  /**
1519
1519
  * Disables unredirection, can be useful in situations where having
1520
1520
  * unredirected windows is undesirable like when recording a video.
@@ -1535,8 +1535,8 @@ function focus_stage_window(display: Display, timestamp: number): void
1535
1535
  * @param type a #MetaFrameType
1536
1536
  * @returns the string value
1537
1537
  */
1538
- function frame_type_to_string(type: FrameType): string | null
1539
- function g_utf8_strndup(src: string | null, n: number): string | null
1538
+ function frame_type_to_string(type: FrameType): string
1539
+ function g_utf8_strndup(src: string, n: number): string | null
1540
1540
  /**
1541
1541
  * Accessor for the singleton MetaBackend.
1542
1542
  * @returns The only #MetaBackend there is.
@@ -1550,7 +1550,7 @@ function get_stage_for_display(display: Display): Clutter.Actor
1550
1550
  function get_top_window_group_for_display(display: Display): Clutter.Actor
1551
1551
  function get_window_actors(display: Display): Clutter.Actor[]
1552
1552
  function get_window_group_for_display(display: Display): Clutter.Actor
1553
- function gravity_to_string(gravity: Gravity): string | null
1553
+ function gravity_to_string(gravity: Gravity): string
1554
1554
  /**
1555
1555
  * Returns %TRUE if this instance of Mutter comes from Mutter
1556
1556
  * restarting itself (for example to enable/disable stereo.)
@@ -1568,7 +1568,7 @@ function is_wayland_compositor(): boolean
1568
1568
  * @param handler The new handler function
1569
1569
  * @returns %TRUE if the binding known as @name was found, %FALSE otherwise.
1570
1570
  */
1571
- function keybindings_set_custom_handler(name: string | null, handler: KeyHandlerFunc | null): boolean
1571
+ function keybindings_set_custom_handler(name: string, handler: KeyHandlerFunc | null): boolean
1572
1572
  /**
1573
1573
  * Sets up a callback to be called at some later time. `when` determines the
1574
1574
  * particular later occasion at which it is called. This is much like g_idle_add(),
@@ -1587,9 +1587,9 @@ function later_add(when: LaterType, func: GLib.SourceFunc): number
1587
1587
  */
1588
1588
  function later_remove(later_id: number): void
1589
1589
  function pop_no_msg_prefix(): void
1590
- function preference_to_string(pref: Preference): string | null
1590
+ function preference_to_string(pref: Preference): string
1591
1591
  function prefs_bell_is_audible(): boolean
1592
- function prefs_change_workspace_name(i: number, name: string | null): void
1592
+ function prefs_change_workspace_name(i: number, name: string): void
1593
1593
  function prefs_get_action_double_click_titlebar(): GDesktopEnums.TitlebarAction
1594
1594
  function prefs_get_action_middle_click_titlebar(): GDesktopEnums.TitlebarAction
1595
1595
  function prefs_get_action_right_click_titlebar(): GDesktopEnums.TitlebarAction
@@ -1602,7 +1602,7 @@ function prefs_get_center_new_windows(): boolean
1602
1602
  function prefs_get_check_alive_timeout(): number
1603
1603
  function prefs_get_compositing_manager(): boolean
1604
1604
  function prefs_get_cursor_size(): number
1605
- function prefs_get_cursor_theme(): string | null
1605
+ function prefs_get_cursor_theme(): string
1606
1606
  function prefs_get_disable_workarounds(): boolean
1607
1607
  function prefs_get_drag_threshold(): number
1608
1608
  function prefs_get_draggable_border_width(): number
@@ -1614,7 +1614,7 @@ function prefs_get_focus_new_windows(): GDesktopEnums.FocusNewWindows
1614
1614
  function prefs_get_force_fullscreen(): boolean
1615
1615
  function prefs_get_gnome_accessibility(): boolean
1616
1616
  function prefs_get_gnome_animations(): boolean
1617
- function prefs_get_keybinding_action(name: string | null): KeyBindingAction
1617
+ function prefs_get_keybinding_action(name: string): KeyBindingAction
1618
1618
  function prefs_get_mouse_button_menu(): number
1619
1619
  function prefs_get_mouse_button_mods(): VirtualModifier
1620
1620
  function prefs_get_mouse_button_resize(): number
@@ -1624,7 +1624,7 @@ function prefs_get_show_fallback_app_menu(): boolean
1624
1624
  function prefs_get_titlebar_font(): Pango.FontDescription
1625
1625
  function prefs_get_visual_bell(): boolean
1626
1626
  function prefs_get_visual_bell_type(): GDesktopEnums.VisualBellType
1627
- function prefs_get_workspace_name(i: number): string | null
1627
+ function prefs_get_workspace_name(i: number): string
1628
1628
  function prefs_get_workspaces_only_on_primary(): boolean
1629
1629
  function prefs_set_force_fullscreen(whether: boolean): void
1630
1630
  function prefs_set_num_workspaces(n_workspaces: number): void
@@ -1654,7 +1654,7 @@ function remove_verbose_topic(topic: DebugTopic): void
1654
1654
  * @param context a #MetaContext
1655
1655
  */
1656
1656
  function restart(message: string | null, context: Context): void
1657
- function topic_to_string(topic: DebugTopic): string | null
1657
+ function topic_to_string(topic: DebugTopic): string
1658
1658
  function unsigned_long_equal(v1: any | null, v2: any | null): number
1659
1659
  function unsigned_long_hash(v: any | null): number
1660
1660
  function x11_error_trap_pop(x11_display: X11Display): void
@@ -1950,7 +1950,7 @@ interface Backend extends Gio.Initable {
1950
1950
  is_headless(): boolean
1951
1951
  is_rendering_hardware_accelerated(): boolean
1952
1952
  lock_layout_group(idx: number): void
1953
- set_keymap(layouts: string | null, variants: string | null, options: string | null): void
1953
+ set_keymap(layouts: string, variants: string, options: string): void
1954
1954
 
1955
1955
  // Own signals of Meta-11.Meta.Backend
1956
1956
 
@@ -2018,7 +2018,6 @@ module Background {
2018
2018
 
2019
2019
  // Own constructor properties of Meta-11.Meta.Background
2020
2020
 
2021
- meta_display?: Display | null
2022
2021
  metaDisplay?: Display | null
2023
2022
  }
2024
2023
 
@@ -2028,7 +2027,6 @@ interface Background {
2028
2027
 
2029
2028
  // Own properties of Meta-11.Meta.Background
2030
2029
 
2031
- readonly meta_display: Display
2032
2030
  readonly metaDisplay: Display
2033
2031
 
2034
2032
  // Owm methods of Meta-11.Meta.Background
@@ -2090,9 +2088,8 @@ module BackgroundActor {
2090
2088
 
2091
2089
  // Own constructor properties of Meta-11.Meta.BackgroundActor
2092
2090
 
2093
- meta_display?: Display | null
2094
- monitor?: number | null
2095
2091
  metaDisplay?: Display | null
2092
+ monitor?: number | null
2096
2093
  }
2097
2094
 
2098
2095
  }
@@ -2101,7 +2098,6 @@ interface BackgroundActor extends Atk.ImplementorIface, Clutter.Animatable, Clut
2101
2098
 
2102
2099
  // Own properties of Meta-11.Meta.BackgroundActor
2103
2100
 
2104
- readonly meta_display: Display
2105
2101
  readonly metaDisplay: Display
2106
2102
  readonly monitor: number
2107
2103
 
@@ -2390,17 +2386,12 @@ module BackgroundContent {
2390
2386
  background?: Background | null
2391
2387
  brightness?: number | null
2392
2388
  gradient?: boolean | null
2393
- gradient_height?: number | null
2394
- gradient_max_darkness?: number | null
2395
- meta_display?: Display | null
2396
- monitor?: number | null
2397
- rounded_clip_radius?: number | null
2398
- vignette?: boolean | null
2399
- vignette_sharpness?: number | null
2400
2389
  gradientHeight?: number | null
2401
2390
  gradientMaxDarkness?: number | null
2402
2391
  metaDisplay?: Display | null
2392
+ monitor?: number | null
2403
2393
  roundedClipRadius?: number | null
2394
+ vignette?: boolean | null
2404
2395
  vignetteSharpness?: number | null
2405
2396
  }
2406
2397
 
@@ -2413,17 +2404,12 @@ interface BackgroundContent extends Clutter.Content {
2413
2404
  background: Background
2414
2405
  brightness: number
2415
2406
  gradient: boolean
2416
- gradient_height: number
2417
2407
  gradientHeight: number
2418
- gradient_max_darkness: number
2419
2408
  gradientMaxDarkness: number
2420
- readonly meta_display: Display
2421
2409
  readonly metaDisplay: Display
2422
2410
  readonly monitor: number
2423
- rounded_clip_radius: number
2424
2411
  roundedClipRadius: number
2425
2412
  vignette: boolean
2426
- vignette_sharpness: number
2427
2413
  vignetteSharpness: number
2428
2414
 
2429
2415
  // Owm methods of Meta-11.Meta.BackgroundContent
@@ -3084,7 +3070,6 @@ module Context {
3084
3070
  // Own constructor properties of Meta-11.Meta.Context
3085
3071
 
3086
3072
  name?: string | null
3087
- unsafe_mode?: boolean | null
3088
3073
  unsafeMode?: boolean | null
3089
3074
  }
3090
3075
 
@@ -3095,7 +3080,6 @@ interface Context {
3095
3080
  // Own properties of Meta-11.Meta.Context
3096
3081
 
3097
3082
  readonly name: string | null
3098
- unsafe_mode: boolean
3099
3083
  unsafeMode: boolean
3100
3084
 
3101
3085
  // Own fields of Meta-11.Meta.Context
@@ -3131,9 +3115,9 @@ interface Context {
3131
3115
  */
3132
3116
  restore_rlimit_nofile(): boolean
3133
3117
  run_main_loop(): boolean
3134
- set_gnome_wm_keybindings(wm_keybindings: string | null): void
3118
+ set_gnome_wm_keybindings(wm_keybindings: string): void
3135
3119
  set_plugin_gtype(plugin_gtype: GObject.GType): void
3136
- set_plugin_name(plugin_name: string | null): void
3120
+ set_plugin_name(plugin_name: string): void
3137
3121
  setup(): boolean
3138
3122
  start(): boolean
3139
3123
  terminate(): void
@@ -3478,9 +3462,7 @@ interface Display {
3478
3462
 
3479
3463
  // Own properties of Meta-11.Meta.Display
3480
3464
 
3481
- readonly compositor_modifiers: Clutter.ModifierType
3482
3465
  readonly compositorModifiers: Clutter.ModifierType
3483
- readonly focus_window: Window
3484
3466
  readonly focusWindow: Window
3485
3467
 
3486
3468
  // Owm methods of Meta-11.Meta.Display
@@ -3510,7 +3492,7 @@ interface Display {
3510
3492
  * @param handler function to run when the keybinding is invoked
3511
3493
  * @returns the corresponding keybinding action if the keybinding was added successfully, otherwise %META_KEYBINDING_ACTION_NONE
3512
3494
  */
3513
- add_keybinding(name: string | null, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3495
+ add_keybinding(name: string, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3514
3496
  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
3515
3497
  /**
3516
3498
  * Sets the mouse-mode flag to %FALSE, which means that motion events are
@@ -3625,7 +3607,7 @@ interface Display {
3625
3607
  */
3626
3608
  get_tab_next(type: TabList, workspace: Workspace, window: Window | null, backward: boolean): Window
3627
3609
  get_workspace_manager(): WorkspaceManager
3628
- grab_accelerator(accelerator: string | null, flags: KeyBindingFlags): number
3610
+ grab_accelerator(accelerator: string, flags: KeyBindingFlags): number
3629
3611
  /**
3630
3612
  * Tells whether the event sequence is the used for pointer emulation
3631
3613
  * and single-touch interaction.
@@ -3645,7 +3627,7 @@ interface Display {
3645
3627
  * @param name name of the keybinding to remove
3646
3628
  * @returns %TRUE if the binding has been removed successfully, otherwise %FALSE
3647
3629
  */
3648
- remove_keybinding(name: string | null): boolean
3630
+ remove_keybinding(name: string): boolean
3649
3631
  request_pad_osd(pad: Clutter.InputDevice, edition_mode: boolean): void
3650
3632
  set_cursor(cursor: Cursor): void
3651
3633
  set_input_focus(window: Window, focus_frame: boolean, timestamp: number): void
@@ -4036,11 +4018,8 @@ interface MonitorManager {
4036
4018
  // Own properties of Meta-11.Meta.MonitorManager
4037
4019
 
4038
4020
  readonly backend: Backend
4039
- readonly has_builtin_panel: boolean
4040
4021
  readonly hasBuiltinPanel: boolean
4041
- readonly night_light_supported: boolean
4042
4022
  readonly nightLightSupported: boolean
4043
- readonly panel_orientation_managed: boolean
4044
4023
  readonly panelOrientationManaged: boolean
4045
4024
 
4046
4025
  // Owm methods of Meta-11.Meta.MonitorManager
@@ -4050,7 +4029,7 @@ interface MonitorManager {
4050
4029
  * Returns whether the built-in display (i.e. a laptop panel) is turned on.
4051
4030
  */
4052
4031
  get_is_builtin_display_on(): boolean
4053
- get_monitor_for_connector(connector: string | null): number
4032
+ get_monitor_for_connector(connector: string): number
4054
4033
  get_panel_orientation_managed(): boolean
4055
4034
  get_switch_config(): MonitorSwitchConfigType
4056
4035
  switch_config(config_type: MonitorSwitchConfigType): void
@@ -4334,7 +4313,6 @@ module RemoteAccessHandle {
4334
4313
 
4335
4314
  // Own constructor properties of Meta-11.Meta.RemoteAccessHandle
4336
4315
 
4337
- is_recording?: boolean | null
4338
4316
  isRecording?: boolean | null
4339
4317
  }
4340
4318
 
@@ -4344,7 +4322,6 @@ interface RemoteAccessHandle {
4344
4322
 
4345
4323
  // Own properties of Meta-11.Meta.RemoteAccessHandle
4346
4324
 
4347
- readonly is_recording: boolean
4348
4325
  readonly isRecording: boolean
4349
4326
 
4350
4327
  // Own fields of Meta-11.Meta.RemoteAccessHandle
@@ -4443,7 +4420,7 @@ interface Selection {
4443
4420
  * @param cancellable Cancellable
4444
4421
  * @param callback User callback
4445
4422
  */
4446
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4423
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4447
4424
 
4448
4425
  // Overloads of transfer_async
4449
4426
 
@@ -4459,7 +4436,7 @@ interface Selection {
4459
4436
  * @param cancellable Cancellable
4460
4437
  * @returns A Promise of: #TRUE if the transfer was successful.
4461
4438
  */
4462
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4439
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4463
4440
  /**
4464
4441
  * Finishes the transfer of a queried mimetype.
4465
4442
  * @param result The async result
@@ -4547,7 +4524,7 @@ interface SelectionSource {
4547
4524
  * @returns #TRUE if the source owns a selection.
4548
4525
  */
4549
4526
  is_active(): boolean
4550
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4527
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4551
4528
 
4552
4529
  // Overloads of read_async
4553
4530
 
@@ -4559,7 +4536,7 @@ interface SelectionSource {
4559
4536
  * @param cancellable
4560
4537
  * @returns A Promise of: The resulting #GInputStream
4561
4538
  */
4562
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4539
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4563
4540
  /**
4564
4541
  * Finishes a read from the selection source.
4565
4542
  * @param result The async result
@@ -4577,7 +4554,7 @@ interface SelectionSource {
4577
4554
  * @returns The supported mimetypes
4578
4555
  */
4579
4556
  vfunc_get_mimetypes(): string[]
4580
- vfunc_read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4557
+ vfunc_read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4581
4558
  /**
4582
4559
  * Finishes a read from the selection source.
4583
4560
  * @virtual
@@ -4645,8 +4622,8 @@ class SelectionSourceMemory extends SelectionSource {
4645
4622
  // Constructors of Meta-11.Meta.SelectionSourceMemory
4646
4623
 
4647
4624
  constructor(config?: SelectionSourceMemory.ConstructorProperties)
4648
- constructor(mimetype: string | null, content: GLib.Bytes)
4649
- static new(mimetype: string | null, content: GLib.Bytes): SelectionSourceMemory
4625
+ constructor(mimetype: string, content: GLib.Bytes)
4626
+ static new(mimetype: string, content: GLib.Bytes): SelectionSourceMemory
4650
4627
  _init(config?: SelectionSourceMemory.ConstructorProperties): void
4651
4628
  }
4652
4629
 
@@ -4681,7 +4658,7 @@ interface ShadowFactory {
4681
4658
  * @param class_name name of the class of shadow to get the params for
4682
4659
  * @param focused whether the shadow is for a focused window
4683
4660
  */
4684
- get_params(class_name: string | null, focused: boolean): /* params */ ShadowParams
4661
+ get_params(class_name: string, focused: boolean): /* params */ ShadowParams
4685
4662
  /**
4686
4663
  * Gets the appropriate shadow object for drawing shadows for the
4687
4664
  * specified window shape. The region that we are shadowing is specified
@@ -4695,7 +4672,7 @@ interface ShadowFactory {
4695
4672
  * @param focused whether the shadow is for a focused window
4696
4673
  * @returns a newly referenced #MetaShadow; unref with meta_shadow_unref()
4697
4674
  */
4698
- get_shadow(shape: WindowShape, width: number, height: number, class_name: string | null, focused: boolean): Shadow
4675
+ get_shadow(shape: WindowShape, width: number, height: number, class_name: string, focused: boolean): Shadow
4699
4676
  /**
4700
4677
  * Updates the shadow parameters for a particular class of shadows
4701
4678
  * for either the focused or unfocused state. If the class name
@@ -4706,7 +4683,7 @@ interface ShadowFactory {
4706
4683
  * @param focused whether the shadow is for a focused window
4707
4684
  * @param params new parameter values
4708
4685
  */
4709
- set_params(class_name: string | null, focused: boolean, params: ShadowParams): void
4686
+ set_params(class_name: string, focused: boolean, params: ShadowParams): void
4710
4687
 
4711
4688
  // Own signals of Meta-11.Meta.ShadowFactory
4712
4689
 
@@ -4825,14 +4802,14 @@ interface SoundPlayer {
4825
4802
  * @param description description of the played sound
4826
4803
  * @param cancellable cancellable for the request
4827
4804
  */
4828
- play_from_file(file: Gio.File, description: string | null, cancellable: Gio.Cancellable | null): void
4805
+ play_from_file(file: Gio.File, description: string, cancellable: Gio.Cancellable | null): void
4829
4806
  /**
4830
4807
  * Plays a sound from the sound theme.
4831
4808
  * @param name sound theme name of the event
4832
4809
  * @param description description of the event
4833
4810
  * @param cancellable cancellable for the request
4834
4811
  */
4835
- play_from_theme(name: string | null, description: string | null, cancellable: Gio.Cancellable | null): void
4812
+ play_from_theme(name: string, description: string, cancellable: Gio.Cancellable | null): void
4836
4813
 
4837
4814
  // Class property signals of Meta-11.Meta.SoundPlayer
4838
4815
 
@@ -5223,15 +5200,13 @@ module StartupSequence {
5223
5200
 
5224
5201
  // Own constructor properties of Meta-11.Meta.StartupSequence
5225
5202
 
5226
- application_id?: string | null
5227
- icon_name?: string | null
5203
+ applicationId?: string | null
5204
+ iconName?: string | null
5228
5205
  id?: string | null
5229
5206
  name?: string | null
5230
5207
  timestamp?: number | null
5231
5208
  wmclass?: string | null
5232
5209
  workspace?: number | null
5233
- applicationId?: string | null
5234
- iconName?: string | null
5235
5210
  }
5236
5211
 
5237
5212
  }
@@ -5240,9 +5215,7 @@ interface StartupSequence {
5240
5215
 
5241
5216
  // Own properties of Meta-11.Meta.StartupSequence
5242
5217
 
5243
- readonly application_id: string | null
5244
5218
  readonly applicationId: string | null
5245
- readonly icon_name: string | null
5246
5219
  readonly iconName: string | null
5247
5220
  readonly id: string | null
5248
5221
  readonly name: string | null
@@ -5268,8 +5241,8 @@ interface StartupSequence {
5268
5241
  * @returns the icon name or %NULL.
5269
5242
  */
5270
5243
  get_icon_name(): string | null
5271
- get_id(): string | null
5272
- get_name(): string | null
5244
+ get_id(): string
5245
+ get_name(): string
5273
5246
  get_timestamp(): number
5274
5247
  /**
5275
5248
  * Get the wmclass of the startup sequence.
@@ -5477,48 +5450,30 @@ interface Window {
5477
5450
  // Own properties of Meta-11.Meta.Window
5478
5451
 
5479
5452
  readonly above: boolean
5480
- readonly appears_focused: boolean
5481
5453
  readonly appearsFocused: boolean
5482
5454
  readonly decorated: boolean
5483
- readonly demands_attention: boolean
5484
5455
  readonly demandsAttention: boolean
5485
5456
  readonly fullscreen: boolean
5486
- readonly gtk_app_menu_object_path: string | null
5487
5457
  readonly gtkAppMenuObjectPath: string | null
5488
- readonly gtk_application_id: string | null
5489
5458
  readonly gtkApplicationId: string | null
5490
- readonly gtk_application_object_path: string | null
5491
5459
  readonly gtkApplicationObjectPath: string | null
5492
- readonly gtk_menubar_object_path: string | null
5493
5460
  readonly gtkMenubarObjectPath: string | null
5494
- readonly gtk_unique_bus_name: string | null
5495
5461
  readonly gtkUniqueBusName: string | null
5496
- readonly gtk_window_object_path: string | null
5497
5462
  readonly gtkWindowObjectPath: string | null
5498
5463
  readonly icon: any
5499
- readonly is_alive: boolean
5500
5464
  readonly isAlive: boolean
5501
- readonly maximized_horizontally: boolean
5502
5465
  readonly maximizedHorizontally: boolean
5503
- readonly maximized_vertically: boolean
5504
5466
  readonly maximizedVertically: boolean
5505
- readonly mini_icon: any
5506
5467
  readonly miniIcon: any
5507
5468
  readonly minimized: boolean
5508
- readonly mutter_hints: string | null
5509
5469
  readonly mutterHints: string | null
5510
- readonly on_all_workspaces: boolean
5511
5470
  readonly onAllWorkspaces: boolean
5512
5471
  readonly resizeable: boolean
5513
- readonly skip_taskbar: boolean
5514
5472
  readonly skipTaskbar: boolean
5515
5473
  readonly title: string | null
5516
5474
  readonly urgent: boolean
5517
- readonly user_time: number
5518
5475
  readonly userTime: number
5519
- readonly window_type: WindowType
5520
5476
  readonly windowType: WindowType
5521
- readonly wm_class: string | null
5522
5477
  readonly wmClass: string | null
5523
5478
 
5524
5479
  // Owm methods of Meta-11.Meta.Window
@@ -5527,6 +5482,13 @@ interface Window {
5527
5482
  activate_with_workspace(current_time: number, workspace: Workspace): void
5528
5483
  allows_move(): boolean
5529
5484
  allows_resize(): boolean
5485
+ /**
5486
+ * Determines if the window should be drawn with a focused appearance. This is
5487
+ * true for focused windows but also true for windows with a focused modal
5488
+ * dialog attached.
5489
+ * @returns %TRUE if the window should be drawn with a focused frame
5490
+ */
5491
+ appears_focused(): boolean
5530
5492
  begin_grab_op(op: GrabOp, frame_action: boolean, timestamp: number): void
5531
5493
  can_close(): boolean
5532
5494
  can_maximize(): boolean
@@ -5597,7 +5559,7 @@ interface Window {
5597
5559
  * @returns the wrapper object.
5598
5560
  */
5599
5561
  get_compositor_private(): GObject.Object
5600
- get_description(): string | null
5562
+ get_description(): string
5601
5563
  get_display(): Display
5602
5564
  /**
5603
5565
  * Gets a region representing the outer bounds of the window's frame.
@@ -5670,7 +5632,7 @@ interface Window {
5670
5632
  * @returns the pid, or 0 if not known.
5671
5633
  */
5672
5634
  get_pid(): number
5673
- get_role(): string | null
5635
+ get_role(): string
5674
5636
  /**
5675
5637
  * Gets an unique id for a sandboxed app (currently flatpaks and snaps are
5676
5638
  * supported).
@@ -5703,7 +5665,7 @@ interface Window {
5703
5665
  * @returns the matching tiled window or %NULL if it doesn't exist.
5704
5666
  */
5705
5667
  get_tile_match(): Window | null
5706
- get_title(): string | null
5668
+ get_title(): string
5707
5669
  /**
5708
5670
  * Returns the #MetaWindow for the window that is pointed to by the
5709
5671
  * WM_TRANSIENT_FOR hint on this window (see XGetTransientForHint()
@@ -6028,7 +5990,6 @@ module WindowActor {
6028
5990
 
6029
5991
  // Own constructor properties of Meta-11.Meta.WindowActor
6030
5992
 
6031
- meta_window?: Window | null
6032
5993
  metaWindow?: Window | null
6033
5994
  }
6034
5995
 
@@ -6038,7 +5999,6 @@ interface WindowActor extends Atk.ImplementorIface, Clutter.Animatable, Clutter.
6038
5999
 
6039
6000
  // Own properties of Meta-11.Meta.WindowActor
6040
6001
 
6041
- readonly meta_window: Window
6042
6002
  readonly metaWindow: Window
6043
6003
 
6044
6004
  // Own fields of Meta-11.Meta.WindowActor
@@ -6613,9 +6573,7 @@ interface Workspace {
6613
6573
  // Own properties of Meta-11.Meta.Workspace
6614
6574
 
6615
6575
  readonly active: boolean
6616
- readonly n_windows: number
6617
6576
  readonly nWindows: number
6618
- readonly workspace_index: number
6619
6577
  readonly workspaceIndex: number
6620
6578
 
6621
6579
  // Owm methods of Meta-11.Meta.Workspace
@@ -6773,11 +6731,8 @@ interface WorkspaceManager {
6773
6731
 
6774
6732
  // Own properties of Meta-11.Meta.WorkspaceManager
6775
6733
 
6776
- readonly layout_columns: number
6777
6734
  readonly layoutColumns: number
6778
- readonly layout_rows: number
6779
6735
  readonly layoutRows: number
6780
- readonly n_workspaces: number
6781
6736
  readonly nWorkspaces: number
6782
6737
 
6783
6738
  // Owm methods of Meta-11.Meta.WorkspaceManager
@@ -7254,7 +7209,7 @@ interface Group {
7254
7209
  // Owm methods of Meta-11.Meta.Group
7255
7210
 
7256
7211
  get_size(): number
7257
- get_startup_id(): string | null
7212
+ get_startup_id(): string
7258
7213
  list_windows(): Window[]
7259
7214
  update_layers(): void
7260
7215
  }
@@ -7302,7 +7257,7 @@ interface KeyBinding {
7302
7257
 
7303
7258
  get_mask(): number
7304
7259
  get_modifiers(): VirtualModifier
7305
- get_name(): string | null
7260
+ get_name(): string
7306
7261
  is_builtin(): boolean
7307
7262
  is_reversed(): boolean
7308
7263
  }
@@ -7408,27 +7363,27 @@ interface PluginInfo {
7408
7363
  * name of the plugin
7409
7364
  * @field
7410
7365
  */
7411
- name: string | null
7366
+ name: string
7412
7367
  /**
7413
7368
  * version of the plugin
7414
7369
  * @field
7415
7370
  */
7416
- version: string | null
7371
+ version: string
7417
7372
  /**
7418
7373
  * author of the plugin
7419
7374
  * @field
7420
7375
  */
7421
- author: string | null
7376
+ author: string
7422
7377
  /**
7423
7378
  * license of the plugin
7424
7379
  * @field
7425
7380
  */
7426
- license: string | null
7381
+ license: string
7427
7382
  /**
7428
7383
  * description of the plugin
7429
7384
  * @field
7430
7385
  */
7431
- description: string | null
7386
+ description: string
7432
7387
  }
7433
7388
 
7434
7389
  class PluginInfo {
@@ -7536,7 +7491,7 @@ interface SelectionSourceClass {
7536
7491
  activated: (source: SelectionSource) => void
7537
7492
  deactivated: (source: SelectionSource) => void
7538
7493
  get_mimetypes: (source: SelectionSource) => string[]
7539
- read_async: (source: SelectionSource, mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7494
+ read_async: (source: SelectionSource, mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7540
7495
  read_finish: (source: SelectionSource, result: Gio.AsyncResult) => Gio.InputStream
7541
7496
  }
7542
7497
 
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/meta-11",
3
- "version": "11.0.0-3.2.6",
3
+ "version": "11.0.0-3.2.8",
4
4
  "description": "GJS TypeScript type definitions for Meta-11, generated from library version 11.0.0",
5
5
  "type": "module",
6
6
  "module": "meta-11.js",
7
7
  "main": "meta-11.js",
8
8
  "exports": {
9
- "./ambient": "./meta-11-ambient.d.ts",
10
- "./import": "./meta-11-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./meta-11-ambient.d.ts",
11
+ "default": "./meta-11-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./meta-11-import.d.ts",
15
+ "default": "./meta-11-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./meta-11.d.ts",
@@ -25,29 +31,29 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit meta-11.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-11": "^11.0.0-3.2.6",
31
- "@girs/cogl-11": "^11.0.0-3.2.6",
32
- "@girs/coglpango-11": "^11.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-11": "^11.0.0-3.2.8",
37
+ "@girs/cogl-11": "^11.0.0-3.2.8",
38
+ "@girs/coglpango-11": "^11.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"