@girs/meta-11 11.0.0-3.2.6 → 11.0.0-3.2.7

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.7.
9
9
 
10
10
 
11
11
  ## Install
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
 
@@ -3129,9 +3129,9 @@ export interface Context {
3129
3129
  */
3130
3130
  restore_rlimit_nofile(): boolean
3131
3131
  run_main_loop(): boolean
3132
- set_gnome_wm_keybindings(wm_keybindings: string | null): void
3132
+ set_gnome_wm_keybindings(wm_keybindings: string): void
3133
3133
  set_plugin_gtype(plugin_gtype: GObject.GType): void
3134
- set_plugin_name(plugin_name: string | null): void
3134
+ set_plugin_name(plugin_name: string): void
3135
3135
  setup(): boolean
3136
3136
  start(): boolean
3137
3137
  terminate(): void
@@ -3508,7 +3508,7 @@ export interface Display {
3508
3508
  * @param handler function to run when the keybinding is invoked
3509
3509
  * @returns the corresponding keybinding action if the keybinding was added successfully, otherwise %META_KEYBINDING_ACTION_NONE
3510
3510
  */
3511
- add_keybinding(name: string | null, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3511
+ add_keybinding(name: string, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3512
3512
  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
3513
  /**
3514
3514
  * Sets the mouse-mode flag to %FALSE, which means that motion events are
@@ -3623,7 +3623,7 @@ export interface Display {
3623
3623
  */
3624
3624
  get_tab_next(type: TabList, workspace: Workspace, window: Window | null, backward: boolean): Window
3625
3625
  get_workspace_manager(): WorkspaceManager
3626
- grab_accelerator(accelerator: string | null, flags: KeyBindingFlags): number
3626
+ grab_accelerator(accelerator: string, flags: KeyBindingFlags): number
3627
3627
  /**
3628
3628
  * Tells whether the event sequence is the used for pointer emulation
3629
3629
  * and single-touch interaction.
@@ -3643,7 +3643,7 @@ export interface Display {
3643
3643
  * @param name name of the keybinding to remove
3644
3644
  * @returns %TRUE if the binding has been removed successfully, otherwise %FALSE
3645
3645
  */
3646
- remove_keybinding(name: string | null): boolean
3646
+ remove_keybinding(name: string): boolean
3647
3647
  request_pad_osd(pad: Clutter.InputDevice, edition_mode: boolean): void
3648
3648
  set_cursor(cursor: Cursor): void
3649
3649
  set_input_focus(window: Window, focus_frame: boolean, timestamp: number): void
@@ -4048,7 +4048,7 @@ export interface MonitorManager {
4048
4048
  * Returns whether the built-in display (i.e. a laptop panel) is turned on.
4049
4049
  */
4050
4050
  get_is_builtin_display_on(): boolean
4051
- get_monitor_for_connector(connector: string | null): number
4051
+ get_monitor_for_connector(connector: string): number
4052
4052
  get_panel_orientation_managed(): boolean
4053
4053
  get_switch_config(): MonitorSwitchConfigType
4054
4054
  switch_config(config_type: MonitorSwitchConfigType): void
@@ -4441,7 +4441,7 @@ export interface Selection {
4441
4441
  * @param cancellable Cancellable
4442
4442
  * @param callback User callback
4443
4443
  */
4444
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4444
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4445
4445
 
4446
4446
  // Overloads of transfer_async
4447
4447
 
@@ -4457,7 +4457,7 @@ export interface Selection {
4457
4457
  * @param cancellable Cancellable
4458
4458
  * @returns A Promise of: #TRUE if the transfer was successful.
4459
4459
  */
4460
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4460
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4461
4461
  /**
4462
4462
  * Finishes the transfer of a queried mimetype.
4463
4463
  * @param result The async result
@@ -4545,7 +4545,7 @@ export interface SelectionSource {
4545
4545
  * @returns #TRUE if the source owns a selection.
4546
4546
  */
4547
4547
  is_active(): boolean
4548
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4548
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4549
4549
 
4550
4550
  // Overloads of read_async
4551
4551
 
@@ -4557,7 +4557,7 @@ export interface SelectionSource {
4557
4557
  * @param cancellable
4558
4558
  * @returns A Promise of: The resulting #GInputStream
4559
4559
  */
4560
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4560
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4561
4561
  /**
4562
4562
  * Finishes a read from the selection source.
4563
4563
  * @param result The async result
@@ -4575,7 +4575,7 @@ export interface SelectionSource {
4575
4575
  * @returns The supported mimetypes
4576
4576
  */
4577
4577
  vfunc_get_mimetypes(): string[]
4578
- vfunc_read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4578
+ vfunc_read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4579
4579
  /**
4580
4580
  * Finishes a read from the selection source.
4581
4581
  * @virtual
@@ -4643,8 +4643,8 @@ export class SelectionSourceMemory extends SelectionSource {
4643
4643
  // Constructors of Meta-11.Meta.SelectionSourceMemory
4644
4644
 
4645
4645
  constructor(config?: SelectionSourceMemory.ConstructorProperties)
4646
- constructor(mimetype: string | null, content: GLib.Bytes)
4647
- static new(mimetype: string | null, content: GLib.Bytes): SelectionSourceMemory
4646
+ constructor(mimetype: string, content: GLib.Bytes)
4647
+ static new(mimetype: string, content: GLib.Bytes): SelectionSourceMemory
4648
4648
  _init(config?: SelectionSourceMemory.ConstructorProperties): void
4649
4649
  }
4650
4650
 
@@ -4679,7 +4679,7 @@ export interface ShadowFactory {
4679
4679
  * @param class_name name of the class of shadow to get the params for
4680
4680
  * @param focused whether the shadow is for a focused window
4681
4681
  */
4682
- get_params(class_name: string | null, focused: boolean): /* params */ ShadowParams
4682
+ get_params(class_name: string, focused: boolean): /* params */ ShadowParams
4683
4683
  /**
4684
4684
  * Gets the appropriate shadow object for drawing shadows for the
4685
4685
  * specified window shape. The region that we are shadowing is specified
@@ -4693,7 +4693,7 @@ export interface ShadowFactory {
4693
4693
  * @param focused whether the shadow is for a focused window
4694
4694
  * @returns a newly referenced #MetaShadow; unref with meta_shadow_unref()
4695
4695
  */
4696
- get_shadow(shape: WindowShape, width: number, height: number, class_name: string | null, focused: boolean): Shadow
4696
+ get_shadow(shape: WindowShape, width: number, height: number, class_name: string, focused: boolean): Shadow
4697
4697
  /**
4698
4698
  * Updates the shadow parameters for a particular class of shadows
4699
4699
  * for either the focused or unfocused state. If the class name
@@ -4704,7 +4704,7 @@ export interface ShadowFactory {
4704
4704
  * @param focused whether the shadow is for a focused window
4705
4705
  * @param params new parameter values
4706
4706
  */
4707
- set_params(class_name: string | null, focused: boolean, params: ShadowParams): void
4707
+ set_params(class_name: string, focused: boolean, params: ShadowParams): void
4708
4708
 
4709
4709
  // Own signals of Meta-11.Meta.ShadowFactory
4710
4710
 
@@ -4823,14 +4823,14 @@ export interface SoundPlayer {
4823
4823
  * @param description description of the played sound
4824
4824
  * @param cancellable cancellable for the request
4825
4825
  */
4826
- play_from_file(file: Gio.File, description: string | null, cancellable: Gio.Cancellable | null): void
4826
+ play_from_file(file: Gio.File, description: string, cancellable: Gio.Cancellable | null): void
4827
4827
  /**
4828
4828
  * Plays a sound from the sound theme.
4829
4829
  * @param name sound theme name of the event
4830
4830
  * @param description description of the event
4831
4831
  * @param cancellable cancellable for the request
4832
4832
  */
4833
- play_from_theme(name: string | null, description: string | null, cancellable: Gio.Cancellable | null): void
4833
+ play_from_theme(name: string, description: string, cancellable: Gio.Cancellable | null): void
4834
4834
 
4835
4835
  // Class property signals of Meta-11.Meta.SoundPlayer
4836
4836
 
@@ -5266,8 +5266,8 @@ export interface StartupSequence {
5266
5266
  * @returns the icon name or %NULL.
5267
5267
  */
5268
5268
  get_icon_name(): string | null
5269
- get_id(): string | null
5270
- get_name(): string | null
5269
+ get_id(): string
5270
+ get_name(): string
5271
5271
  get_timestamp(): number
5272
5272
  /**
5273
5273
  * Get the wmclass of the startup sequence.
@@ -5595,7 +5595,7 @@ export interface Window {
5595
5595
  * @returns the wrapper object.
5596
5596
  */
5597
5597
  get_compositor_private(): GObject.Object
5598
- get_description(): string | null
5598
+ get_description(): string
5599
5599
  get_display(): Display
5600
5600
  /**
5601
5601
  * Gets a region representing the outer bounds of the window's frame.
@@ -5668,7 +5668,7 @@ export interface Window {
5668
5668
  * @returns the pid, or 0 if not known.
5669
5669
  */
5670
5670
  get_pid(): number
5671
- get_role(): string | null
5671
+ get_role(): string
5672
5672
  /**
5673
5673
  * Gets an unique id for a sandboxed app (currently flatpaks and snaps are
5674
5674
  * supported).
@@ -5701,7 +5701,7 @@ export interface Window {
5701
5701
  * @returns the matching tiled window or %NULL if it doesn't exist.
5702
5702
  */
5703
5703
  get_tile_match(): Window | null
5704
- get_title(): string | null
5704
+ get_title(): string
5705
5705
  /**
5706
5706
  * Returns the #MetaWindow for the window that is pointed to by the
5707
5707
  * WM_TRANSIENT_FOR hint on this window (see XGetTransientForHint()
@@ -7252,7 +7252,7 @@ export interface Group {
7252
7252
  // Owm methods of Meta-11.Meta.Group
7253
7253
 
7254
7254
  get_size(): number
7255
- get_startup_id(): string | null
7255
+ get_startup_id(): string
7256
7256
  list_windows(): Window[]
7257
7257
  update_layers(): void
7258
7258
  }
@@ -7300,7 +7300,7 @@ export interface KeyBinding {
7300
7300
 
7301
7301
  get_mask(): number
7302
7302
  get_modifiers(): VirtualModifier
7303
- get_name(): string | null
7303
+ get_name(): string
7304
7304
  is_builtin(): boolean
7305
7305
  is_reversed(): boolean
7306
7306
  }
@@ -7406,27 +7406,27 @@ export interface PluginInfo {
7406
7406
  * name of the plugin
7407
7407
  * @field
7408
7408
  */
7409
- name: string | null
7409
+ name: string
7410
7410
  /**
7411
7411
  * version of the plugin
7412
7412
  * @field
7413
7413
  */
7414
- version: string | null
7414
+ version: string
7415
7415
  /**
7416
7416
  * author of the plugin
7417
7417
  * @field
7418
7418
  */
7419
- author: string | null
7419
+ author: string
7420
7420
  /**
7421
7421
  * license of the plugin
7422
7422
  * @field
7423
7423
  */
7424
- license: string | null
7424
+ license: string
7425
7425
  /**
7426
7426
  * description of the plugin
7427
7427
  * @field
7428
7428
  */
7429
- description: string | null
7429
+ description: string
7430
7430
  }
7431
7431
 
7432
7432
  export class PluginInfo {
@@ -7534,7 +7534,7 @@ export interface SelectionSourceClass {
7534
7534
  activated: (source: SelectionSource) => void
7535
7535
  deactivated: (source: SelectionSource) => void
7536
7536
  get_mimetypes: (source: SelectionSource) => string[]
7537
- read_async: (source: SelectionSource, mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7537
+ read_async: (source: SelectionSource, mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7538
7538
  read_finish: (source: SelectionSource, result: Gio.AsyncResult) => Gio.InputStream
7539
7539
  }
7540
7540
 
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
 
@@ -3131,9 +3131,9 @@ interface Context {
3131
3131
  */
3132
3132
  restore_rlimit_nofile(): boolean
3133
3133
  run_main_loop(): boolean
3134
- set_gnome_wm_keybindings(wm_keybindings: string | null): void
3134
+ set_gnome_wm_keybindings(wm_keybindings: string): void
3135
3135
  set_plugin_gtype(plugin_gtype: GObject.GType): void
3136
- set_plugin_name(plugin_name: string | null): void
3136
+ set_plugin_name(plugin_name: string): void
3137
3137
  setup(): boolean
3138
3138
  start(): boolean
3139
3139
  terminate(): void
@@ -3510,7 +3510,7 @@ interface Display {
3510
3510
  * @param handler function to run when the keybinding is invoked
3511
3511
  * @returns the corresponding keybinding action if the keybinding was added successfully, otherwise %META_KEYBINDING_ACTION_NONE
3512
3512
  */
3513
- add_keybinding(name: string | null, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3513
+ add_keybinding(name: string, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3514
3514
  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
3515
  /**
3516
3516
  * Sets the mouse-mode flag to %FALSE, which means that motion events are
@@ -3625,7 +3625,7 @@ interface Display {
3625
3625
  */
3626
3626
  get_tab_next(type: TabList, workspace: Workspace, window: Window | null, backward: boolean): Window
3627
3627
  get_workspace_manager(): WorkspaceManager
3628
- grab_accelerator(accelerator: string | null, flags: KeyBindingFlags): number
3628
+ grab_accelerator(accelerator: string, flags: KeyBindingFlags): number
3629
3629
  /**
3630
3630
  * Tells whether the event sequence is the used for pointer emulation
3631
3631
  * and single-touch interaction.
@@ -3645,7 +3645,7 @@ interface Display {
3645
3645
  * @param name name of the keybinding to remove
3646
3646
  * @returns %TRUE if the binding has been removed successfully, otherwise %FALSE
3647
3647
  */
3648
- remove_keybinding(name: string | null): boolean
3648
+ remove_keybinding(name: string): boolean
3649
3649
  request_pad_osd(pad: Clutter.InputDevice, edition_mode: boolean): void
3650
3650
  set_cursor(cursor: Cursor): void
3651
3651
  set_input_focus(window: Window, focus_frame: boolean, timestamp: number): void
@@ -4050,7 +4050,7 @@ interface MonitorManager {
4050
4050
  * Returns whether the built-in display (i.e. a laptop panel) is turned on.
4051
4051
  */
4052
4052
  get_is_builtin_display_on(): boolean
4053
- get_monitor_for_connector(connector: string | null): number
4053
+ get_monitor_for_connector(connector: string): number
4054
4054
  get_panel_orientation_managed(): boolean
4055
4055
  get_switch_config(): MonitorSwitchConfigType
4056
4056
  switch_config(config_type: MonitorSwitchConfigType): void
@@ -4443,7 +4443,7 @@ interface Selection {
4443
4443
  * @param cancellable Cancellable
4444
4444
  * @param callback User callback
4445
4445
  */
4446
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4446
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4447
4447
 
4448
4448
  // Overloads of transfer_async
4449
4449
 
@@ -4459,7 +4459,7 @@ interface Selection {
4459
4459
  * @param cancellable Cancellable
4460
4460
  * @returns A Promise of: #TRUE if the transfer was successful.
4461
4461
  */
4462
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4462
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4463
4463
  /**
4464
4464
  * Finishes the transfer of a queried mimetype.
4465
4465
  * @param result The async result
@@ -4547,7 +4547,7 @@ interface SelectionSource {
4547
4547
  * @returns #TRUE if the source owns a selection.
4548
4548
  */
4549
4549
  is_active(): boolean
4550
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4550
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4551
4551
 
4552
4552
  // Overloads of read_async
4553
4553
 
@@ -4559,7 +4559,7 @@ interface SelectionSource {
4559
4559
  * @param cancellable
4560
4560
  * @returns A Promise of: The resulting #GInputStream
4561
4561
  */
4562
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4562
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4563
4563
  /**
4564
4564
  * Finishes a read from the selection source.
4565
4565
  * @param result The async result
@@ -4577,7 +4577,7 @@ interface SelectionSource {
4577
4577
  * @returns The supported mimetypes
4578
4578
  */
4579
4579
  vfunc_get_mimetypes(): string[]
4580
- vfunc_read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4580
+ vfunc_read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4581
4581
  /**
4582
4582
  * Finishes a read from the selection source.
4583
4583
  * @virtual
@@ -4645,8 +4645,8 @@ class SelectionSourceMemory extends SelectionSource {
4645
4645
  // Constructors of Meta-11.Meta.SelectionSourceMemory
4646
4646
 
4647
4647
  constructor(config?: SelectionSourceMemory.ConstructorProperties)
4648
- constructor(mimetype: string | null, content: GLib.Bytes)
4649
- static new(mimetype: string | null, content: GLib.Bytes): SelectionSourceMemory
4648
+ constructor(mimetype: string, content: GLib.Bytes)
4649
+ static new(mimetype: string, content: GLib.Bytes): SelectionSourceMemory
4650
4650
  _init(config?: SelectionSourceMemory.ConstructorProperties): void
4651
4651
  }
4652
4652
 
@@ -4681,7 +4681,7 @@ interface ShadowFactory {
4681
4681
  * @param class_name name of the class of shadow to get the params for
4682
4682
  * @param focused whether the shadow is for a focused window
4683
4683
  */
4684
- get_params(class_name: string | null, focused: boolean): /* params */ ShadowParams
4684
+ get_params(class_name: string, focused: boolean): /* params */ ShadowParams
4685
4685
  /**
4686
4686
  * Gets the appropriate shadow object for drawing shadows for the
4687
4687
  * specified window shape. The region that we are shadowing is specified
@@ -4695,7 +4695,7 @@ interface ShadowFactory {
4695
4695
  * @param focused whether the shadow is for a focused window
4696
4696
  * @returns a newly referenced #MetaShadow; unref with meta_shadow_unref()
4697
4697
  */
4698
- get_shadow(shape: WindowShape, width: number, height: number, class_name: string | null, focused: boolean): Shadow
4698
+ get_shadow(shape: WindowShape, width: number, height: number, class_name: string, focused: boolean): Shadow
4699
4699
  /**
4700
4700
  * Updates the shadow parameters for a particular class of shadows
4701
4701
  * for either the focused or unfocused state. If the class name
@@ -4706,7 +4706,7 @@ interface ShadowFactory {
4706
4706
  * @param focused whether the shadow is for a focused window
4707
4707
  * @param params new parameter values
4708
4708
  */
4709
- set_params(class_name: string | null, focused: boolean, params: ShadowParams): void
4709
+ set_params(class_name: string, focused: boolean, params: ShadowParams): void
4710
4710
 
4711
4711
  // Own signals of Meta-11.Meta.ShadowFactory
4712
4712
 
@@ -4825,14 +4825,14 @@ interface SoundPlayer {
4825
4825
  * @param description description of the played sound
4826
4826
  * @param cancellable cancellable for the request
4827
4827
  */
4828
- play_from_file(file: Gio.File, description: string | null, cancellable: Gio.Cancellable | null): void
4828
+ play_from_file(file: Gio.File, description: string, cancellable: Gio.Cancellable | null): void
4829
4829
  /**
4830
4830
  * Plays a sound from the sound theme.
4831
4831
  * @param name sound theme name of the event
4832
4832
  * @param description description of the event
4833
4833
  * @param cancellable cancellable for the request
4834
4834
  */
4835
- play_from_theme(name: string | null, description: string | null, cancellable: Gio.Cancellable | null): void
4835
+ play_from_theme(name: string, description: string, cancellable: Gio.Cancellable | null): void
4836
4836
 
4837
4837
  // Class property signals of Meta-11.Meta.SoundPlayer
4838
4838
 
@@ -5268,8 +5268,8 @@ interface StartupSequence {
5268
5268
  * @returns the icon name or %NULL.
5269
5269
  */
5270
5270
  get_icon_name(): string | null
5271
- get_id(): string | null
5272
- get_name(): string | null
5271
+ get_id(): string
5272
+ get_name(): string
5273
5273
  get_timestamp(): number
5274
5274
  /**
5275
5275
  * Get the wmclass of the startup sequence.
@@ -5597,7 +5597,7 @@ interface Window {
5597
5597
  * @returns the wrapper object.
5598
5598
  */
5599
5599
  get_compositor_private(): GObject.Object
5600
- get_description(): string | null
5600
+ get_description(): string
5601
5601
  get_display(): Display
5602
5602
  /**
5603
5603
  * Gets a region representing the outer bounds of the window's frame.
@@ -5670,7 +5670,7 @@ interface Window {
5670
5670
  * @returns the pid, or 0 if not known.
5671
5671
  */
5672
5672
  get_pid(): number
5673
- get_role(): string | null
5673
+ get_role(): string
5674
5674
  /**
5675
5675
  * Gets an unique id for a sandboxed app (currently flatpaks and snaps are
5676
5676
  * supported).
@@ -5703,7 +5703,7 @@ interface Window {
5703
5703
  * @returns the matching tiled window or %NULL if it doesn't exist.
5704
5704
  */
5705
5705
  get_tile_match(): Window | null
5706
- get_title(): string | null
5706
+ get_title(): string
5707
5707
  /**
5708
5708
  * Returns the #MetaWindow for the window that is pointed to by the
5709
5709
  * WM_TRANSIENT_FOR hint on this window (see XGetTransientForHint()
@@ -7254,7 +7254,7 @@ interface Group {
7254
7254
  // Owm methods of Meta-11.Meta.Group
7255
7255
 
7256
7256
  get_size(): number
7257
- get_startup_id(): string | null
7257
+ get_startup_id(): string
7258
7258
  list_windows(): Window[]
7259
7259
  update_layers(): void
7260
7260
  }
@@ -7302,7 +7302,7 @@ interface KeyBinding {
7302
7302
 
7303
7303
  get_mask(): number
7304
7304
  get_modifiers(): VirtualModifier
7305
- get_name(): string | null
7305
+ get_name(): string
7306
7306
  is_builtin(): boolean
7307
7307
  is_reversed(): boolean
7308
7308
  }
@@ -7408,27 +7408,27 @@ interface PluginInfo {
7408
7408
  * name of the plugin
7409
7409
  * @field
7410
7410
  */
7411
- name: string | null
7411
+ name: string
7412
7412
  /**
7413
7413
  * version of the plugin
7414
7414
  * @field
7415
7415
  */
7416
- version: string | null
7416
+ version: string
7417
7417
  /**
7418
7418
  * author of the plugin
7419
7419
  * @field
7420
7420
  */
7421
- author: string | null
7421
+ author: string
7422
7422
  /**
7423
7423
  * license of the plugin
7424
7424
  * @field
7425
7425
  */
7426
- license: string | null
7426
+ license: string
7427
7427
  /**
7428
7428
  * description of the plugin
7429
7429
  * @field
7430
7430
  */
7431
- description: string | null
7431
+ description: string
7432
7432
  }
7433
7433
 
7434
7434
  class PluginInfo {
@@ -7536,7 +7536,7 @@ interface SelectionSourceClass {
7536
7536
  activated: (source: SelectionSource) => void
7537
7537
  deactivated: (source: SelectionSource) => void
7538
7538
  get_mimetypes: (source: SelectionSource) => string[]
7539
- read_async: (source: SelectionSource, mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7539
+ read_async: (source: SelectionSource, mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7540
7540
  read_finish: (source: SelectionSource, result: Gio.AsyncResult) => Gio.InputStream
7541
7541
  }
7542
7542
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/meta-11",
3
- "version": "11.0.0-3.2.6",
3
+ "version": "11.0.0-3.2.7",
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",
@@ -25,29 +25,29 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit meta-11.d.cts"
26
26
  },
27
27
  "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"
28
+ "@girs/atk-1.0": "^2.50.0-3.2.7",
29
+ "@girs/cairo-1.0": "^1.0.0-3.2.7",
30
+ "@girs/clutter-11": "^11.0.0-3.2.7",
31
+ "@girs/cogl-11": "^11.0.0-3.2.7",
32
+ "@girs/coglpango-11": "^11.0.0-3.2.7",
33
+ "@girs/freetype2-2.0": "^2.0.0-3.2.7",
34
+ "@girs/gdesktopenums-3.0": "^3.0.0-3.2.7",
35
+ "@girs/gdk-3.0": "^3.24.38-3.2.7",
36
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.7",
37
+ "@girs/gio-2.0": "^2.78.0-3.2.7",
38
+ "@girs/gjs": "^3.2.7",
39
+ "@girs/gl-1.0": "^1.0.0-3.2.7",
40
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
41
+ "@girs/gmodule-2.0": "^2.0.0-3.2.7",
42
+ "@girs/gobject-2.0": "^2.78.0-3.2.7",
43
+ "@girs/graphene-1.0": "^1.0.0-3.2.7",
44
+ "@girs/gtk-3.0": "^3.24.38-3.2.7",
45
+ "@girs/harfbuzz-0.0": "^8.2.1-3.2.7",
46
+ "@girs/json-1.0": "^1.7.1-3.2.7",
47
+ "@girs/pango-1.0": "^1.51.0-3.2.7",
48
+ "@girs/pangocairo-1.0": "^1.0.0-3.2.7",
49
+ "@girs/xfixes-4.0": "^4.0.0-3.2.7",
50
+ "@girs/xlib-2.0": "^2.0.0-3.2.7"
51
51
  },
52
52
  "devDependencies": {
53
53
  "typescript": "*"