@girs/meta-10 10.0.0-3.2.6 → 10.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-10)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Meta-10, generated from library version 10.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for Meta-10, generated from library version 10.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
 
11
11
  ## Install
package/meta-10.d.cts CHANGED
@@ -1458,7 +1458,7 @@ export enum VirtualModifier {
1458
1458
  MOD5_MASK,
1459
1459
  }
1460
1460
  export const CURRENT_TIME: number
1461
- export const DEFAULT_ICON_NAME: string | null
1461
+ export const DEFAULT_ICON_NAME: string
1462
1462
  export const ICON_HEIGHT: number
1463
1463
  export const ICON_WIDTH: number
1464
1464
  export const MINI_ICON_HEIGHT: number
@@ -1483,7 +1483,7 @@ export function clutter_init(): void
1483
1483
  * @param name Human readable name of display server or window manager
1484
1484
  * @returns A new context instance.
1485
1485
  */
1486
- export function create_context(name: string | null): Context
1486
+ export function create_context(name: string): Context
1487
1487
  /**
1488
1488
  * Disables unredirection, can be useful in situations where having
1489
1489
  * unredirected windows is undesirable like when recording a video.
@@ -1504,8 +1504,8 @@ export function focus_stage_window(display: Display, timestamp: number): void
1504
1504
  * @param type a #MetaFrameType
1505
1505
  * @returns the string value
1506
1506
  */
1507
- export function frame_type_to_string(type: FrameType): string | null
1508
- export function g_utf8_strndup(src: string | null, n: number): string | null
1507
+ export function frame_type_to_string(type: FrameType): string
1508
+ export function g_utf8_strndup(src: string, n: number): string | null
1509
1509
  /**
1510
1510
  * Accessor for the singleton MetaBackend.
1511
1511
  * @returns The only #MetaBackend there is.
@@ -1519,7 +1519,7 @@ export function get_stage_for_display(display: Display): Clutter.Actor
1519
1519
  export function get_top_window_group_for_display(display: Display): Clutter.Actor
1520
1520
  export function get_window_actors(display: Display): Clutter.Actor[]
1521
1521
  export function get_window_group_for_display(display: Display): Clutter.Actor
1522
- export function gravity_to_string(gravity: Gravity): string | null
1522
+ export function gravity_to_string(gravity: Gravity): string
1523
1523
  /**
1524
1524
  * Returns %TRUE if this instance of Mutter comes from Mutter
1525
1525
  * restarting itself (for example to enable/disable stereo.)
@@ -1547,7 +1547,7 @@ export function is_wayland_compositor(): boolean
1547
1547
  * @param handler The new handler function
1548
1548
  * @returns %TRUE if the binding known as @name was found, %FALSE otherwise.
1549
1549
  */
1550
- export function keybindings_set_custom_handler(name: string | null, handler: KeyHandlerFunc | null): boolean
1550
+ export function keybindings_set_custom_handler(name: string, handler: KeyHandlerFunc | null): boolean
1551
1551
  /**
1552
1552
  * Sets up a callback to be called at some later time. `when` determines the
1553
1553
  * particular later occasion at which it is called. This is much like g_idle_add(),
@@ -1566,9 +1566,9 @@ export function later_add(when: LaterType, func: GLib.SourceFunc): number
1566
1566
  */
1567
1567
  export function later_remove(later_id: number): void
1568
1568
  export function pop_no_msg_prefix(): void
1569
- export function preference_to_string(pref: Preference): string | null
1569
+ export function preference_to_string(pref: Preference): string
1570
1570
  export function prefs_bell_is_audible(): boolean
1571
- export function prefs_change_workspace_name(i: number, name: string | null): void
1571
+ export function prefs_change_workspace_name(i: number, name: string): void
1572
1572
  export function prefs_get_action_double_click_titlebar(): GDesktopEnums.TitlebarAction
1573
1573
  export function prefs_get_action_middle_click_titlebar(): GDesktopEnums.TitlebarAction
1574
1574
  export function prefs_get_action_right_click_titlebar(): GDesktopEnums.TitlebarAction
@@ -1581,7 +1581,7 @@ export function prefs_get_center_new_windows(): boolean
1581
1581
  export function prefs_get_check_alive_timeout(): number
1582
1582
  export function prefs_get_compositing_manager(): boolean
1583
1583
  export function prefs_get_cursor_size(): number
1584
- export function prefs_get_cursor_theme(): string | null
1584
+ export function prefs_get_cursor_theme(): string
1585
1585
  export function prefs_get_disable_workarounds(): boolean
1586
1586
  export function prefs_get_drag_threshold(): number
1587
1587
  export function prefs_get_draggable_border_width(): number
@@ -1593,7 +1593,7 @@ export function prefs_get_focus_new_windows(): GDesktopEnums.FocusNewWindows
1593
1593
  export function prefs_get_force_fullscreen(): boolean
1594
1594
  export function prefs_get_gnome_accessibility(): boolean
1595
1595
  export function prefs_get_gnome_animations(): boolean
1596
- export function prefs_get_keybinding_action(name: string | null): KeyBindingAction
1596
+ export function prefs_get_keybinding_action(name: string): KeyBindingAction
1597
1597
  export function prefs_get_mouse_button_menu(): number
1598
1598
  export function prefs_get_mouse_button_mods(): VirtualModifier
1599
1599
  export function prefs_get_mouse_button_resize(): number
@@ -1603,7 +1603,7 @@ export function prefs_get_show_fallback_app_menu(): boolean
1603
1603
  export function prefs_get_titlebar_font(): Pango.FontDescription
1604
1604
  export function prefs_get_visual_bell(): boolean
1605
1605
  export function prefs_get_visual_bell_type(): GDesktopEnums.VisualBellType
1606
- export function prefs_get_workspace_name(i: number): string | null
1606
+ export function prefs_get_workspace_name(i: number): string
1607
1607
  export function prefs_get_workspaces_only_on_primary(): boolean
1608
1608
  export function prefs_set_force_fullscreen(whether: boolean): void
1609
1609
  export function prefs_set_num_workspaces(n_workspaces: number): void
@@ -1632,7 +1632,7 @@ export function remove_verbose_topic(topic: DebugTopic): void
1632
1632
  * @param message message to display to the user, or %NULL
1633
1633
  */
1634
1634
  export function restart(message: string | null): void
1635
- export function topic_to_string(topic: DebugTopic): string | null
1635
+ export function topic_to_string(topic: DebugTopic): string
1636
1636
  export function unsigned_long_equal(v1: any | null, v2: any | null): number
1637
1637
  export function unsigned_long_hash(v: any | null): number
1638
1638
  export function x11_error_trap_pop(x11_display: X11Display): void
@@ -1926,7 +1926,7 @@ export interface Backend extends Gio.Initable {
1926
1926
  is_headless(): boolean
1927
1927
  is_rendering_hardware_accelerated(): boolean
1928
1928
  lock_layout_group(idx: number): void
1929
- set_keymap(layouts: string | null, variants: string | null, options: string | null): void
1929
+ set_keymap(layouts: string, variants: string, options: string): void
1930
1930
 
1931
1931
  // Own signals of Meta-10.Meta.Backend
1932
1932
 
@@ -3097,9 +3097,9 @@ export interface Context {
3097
3097
  */
3098
3098
  restore_rlimit_nofile(): boolean
3099
3099
  run_main_loop(): boolean
3100
- set_gnome_wm_keybindings(wm_keybindings: string | null): void
3100
+ set_gnome_wm_keybindings(wm_keybindings: string): void
3101
3101
  set_plugin_gtype(plugin_gtype: GObject.GType): void
3102
- set_plugin_name(plugin_name: string | null): void
3102
+ set_plugin_name(plugin_name: string): void
3103
3103
  setup(): boolean
3104
3104
  start(): boolean
3105
3105
  terminate(): void
@@ -3476,7 +3476,7 @@ export interface Display {
3476
3476
  * @param handler function to run when the keybinding is invoked
3477
3477
  * @returns the corresponding keybinding action if the keybinding was added successfully, otherwise %META_KEYBINDING_ACTION_NONE
3478
3478
  */
3479
- add_keybinding(name: string | null, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3479
+ add_keybinding(name: string, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3480
3480
  begin_grab_op(window: Window, op: GrabOp, pointer_already_grabbed: boolean, frame_action: boolean, button: number, modmask: number, timestamp: number, root_x: number, root_y: number): boolean
3481
3481
  /**
3482
3482
  * Sets the mouse-mode flag to %FALSE, which means that motion events are
@@ -3591,7 +3591,7 @@ export interface Display {
3591
3591
  */
3592
3592
  get_tab_next(type: TabList, workspace: Workspace, window: Window | null, backward: boolean): Window
3593
3593
  get_workspace_manager(): WorkspaceManager
3594
- grab_accelerator(accelerator: string | null, flags: KeyBindingFlags): number
3594
+ grab_accelerator(accelerator: string, flags: KeyBindingFlags): number
3595
3595
  /**
3596
3596
  * Tells whether the event sequence is the used for pointer emulation
3597
3597
  * and single-touch interaction.
@@ -3611,7 +3611,7 @@ export interface Display {
3611
3611
  * @param name name of the keybinding to remove
3612
3612
  * @returns %TRUE if the binding has been removed successfully, otherwise %FALSE
3613
3613
  */
3614
- remove_keybinding(name: string | null): boolean
3614
+ remove_keybinding(name: string): boolean
3615
3615
  request_pad_osd(pad: Clutter.InputDevice, edition_mode: boolean): void
3616
3616
  set_cursor(cursor: Cursor): void
3617
3617
  set_input_focus(window: Window, focus_frame: boolean, timestamp: number): void
@@ -4014,7 +4014,7 @@ export interface MonitorManager {
4014
4014
  * Returns whether the built-in display (i.e. a laptop panel) is turned on.
4015
4015
  */
4016
4016
  get_is_builtin_display_on(): boolean
4017
- get_monitor_for_connector(connector: string | null): number
4017
+ get_monitor_for_connector(connector: string): number
4018
4018
  get_panel_orientation_managed(): boolean
4019
4019
  get_switch_config(): MonitorSwitchConfigType
4020
4020
  switch_config(config_type: MonitorSwitchConfigType): void
@@ -4404,7 +4404,7 @@ export interface Selection {
4404
4404
  * @param cancellable Cancellable
4405
4405
  * @param callback User callback
4406
4406
  */
4407
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4407
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4408
4408
 
4409
4409
  // Overloads of transfer_async
4410
4410
 
@@ -4420,7 +4420,7 @@ export interface Selection {
4420
4420
  * @param cancellable Cancellable
4421
4421
  * @returns A Promise of: #TRUE if the transfer was successful.
4422
4422
  */
4423
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4423
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4424
4424
  /**
4425
4425
  * Finishes the transfer of a queried mimetype.
4426
4426
  * @param result The async result
@@ -4508,7 +4508,7 @@ export interface SelectionSource {
4508
4508
  * @returns #TRUE if the source owns a selection.
4509
4509
  */
4510
4510
  is_active(): boolean
4511
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4511
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4512
4512
 
4513
4513
  // Overloads of read_async
4514
4514
 
@@ -4520,7 +4520,7 @@ export interface SelectionSource {
4520
4520
  * @param cancellable
4521
4521
  * @returns A Promise of: The resulting #GInputStream
4522
4522
  */
4523
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4523
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4524
4524
  /**
4525
4525
  * Finishes a read from the selection source.
4526
4526
  * @param result The async result
@@ -4538,7 +4538,7 @@ export interface SelectionSource {
4538
4538
  * @returns The supported mimetypes
4539
4539
  */
4540
4540
  vfunc_get_mimetypes(): string[]
4541
- vfunc_read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4541
+ vfunc_read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4542
4542
  /**
4543
4543
  * Finishes a read from the selection source.
4544
4544
  * @virtual
@@ -4606,8 +4606,8 @@ export class SelectionSourceMemory extends SelectionSource {
4606
4606
  // Constructors of Meta-10.Meta.SelectionSourceMemory
4607
4607
 
4608
4608
  constructor(config?: SelectionSourceMemory.ConstructorProperties)
4609
- constructor(mimetype: string | null, content: GLib.Bytes)
4610
- static new(mimetype: string | null, content: GLib.Bytes): SelectionSourceMemory
4609
+ constructor(mimetype: string, content: GLib.Bytes)
4610
+ static new(mimetype: string, content: GLib.Bytes): SelectionSourceMemory
4611
4611
  _init(config?: SelectionSourceMemory.ConstructorProperties): void
4612
4612
  }
4613
4613
 
@@ -4642,7 +4642,7 @@ export interface ShadowFactory {
4642
4642
  * @param class_name name of the class of shadow to get the params for
4643
4643
  * @param focused whether the shadow is for a focused window
4644
4644
  */
4645
- get_params(class_name: string | null, focused: boolean): /* params */ ShadowParams
4645
+ get_params(class_name: string, focused: boolean): /* params */ ShadowParams
4646
4646
  /**
4647
4647
  * Gets the appropriate shadow object for drawing shadows for the
4648
4648
  * specified window shape. The region that we are shadowing is specified
@@ -4656,7 +4656,7 @@ export interface ShadowFactory {
4656
4656
  * @param focused whether the shadow is for a focused window
4657
4657
  * @returns a newly referenced #MetaShadow; unref with meta_shadow_unref()
4658
4658
  */
4659
- get_shadow(shape: WindowShape, width: number, height: number, class_name: string | null, focused: boolean): Shadow
4659
+ get_shadow(shape: WindowShape, width: number, height: number, class_name: string, focused: boolean): Shadow
4660
4660
  /**
4661
4661
  * Updates the shadow parameters for a particular class of shadows
4662
4662
  * for either the focused or unfocused state. If the class name
@@ -4667,7 +4667,7 @@ export interface ShadowFactory {
4667
4667
  * @param focused whether the shadow is for a focused window
4668
4668
  * @param params new parameter values
4669
4669
  */
4670
- set_params(class_name: string | null, focused: boolean, params: ShadowParams): void
4670
+ set_params(class_name: string, focused: boolean, params: ShadowParams): void
4671
4671
 
4672
4672
  // Own signals of Meta-10.Meta.ShadowFactory
4673
4673
 
@@ -4786,14 +4786,14 @@ export interface SoundPlayer {
4786
4786
  * @param description description of the played sound
4787
4787
  * @param cancellable cancellable for the request
4788
4788
  */
4789
- play_from_file(file: Gio.File, description: string | null, cancellable: Gio.Cancellable | null): void
4789
+ play_from_file(file: Gio.File, description: string, cancellable: Gio.Cancellable | null): void
4790
4790
  /**
4791
4791
  * Plays a sound from the sound theme.
4792
4792
  * @param name sound theme name of the event
4793
4793
  * @param description description of the event
4794
4794
  * @param cancellable cancellable for the request
4795
4795
  */
4796
- play_from_theme(name: string | null, description: string | null, cancellable: Gio.Cancellable | null): void
4796
+ play_from_theme(name: string, description: string, cancellable: Gio.Cancellable | null): void
4797
4797
 
4798
4798
  // Class property signals of Meta-10.Meta.SoundPlayer
4799
4799
 
@@ -5226,8 +5226,8 @@ export interface StartupSequence {
5226
5226
  * @returns the icon name or %NULL.
5227
5227
  */
5228
5228
  get_icon_name(): string | null
5229
- get_id(): string | null
5230
- get_name(): string | null
5229
+ get_id(): string
5230
+ get_name(): string
5231
5231
  get_timestamp(): number
5232
5232
  /**
5233
5233
  * Get the wmclass of the startup sequence.
@@ -5555,7 +5555,7 @@ export interface Window {
5555
5555
  * @returns the wrapper object.
5556
5556
  */
5557
5557
  get_compositor_private(): GObject.Object
5558
- get_description(): string | null
5558
+ get_description(): string
5559
5559
  get_display(): Display
5560
5560
  /**
5561
5561
  * Gets a region representing the outer bounds of the window's frame.
@@ -5628,7 +5628,7 @@ export interface Window {
5628
5628
  * @returns the pid, or 0 if not known.
5629
5629
  */
5630
5630
  get_pid(): number
5631
- get_role(): string | null
5631
+ get_role(): string
5632
5632
  /**
5633
5633
  * Gets an unique id for a sandboxed app (currently flatpaks and snaps are
5634
5634
  * supported).
@@ -5661,7 +5661,7 @@ export interface Window {
5661
5661
  * @returns the matching tiled window or %NULL if it doesn't exist.
5662
5662
  */
5663
5663
  get_tile_match(): Window | null
5664
- get_title(): string | null
5664
+ get_title(): string
5665
5665
  /**
5666
5666
  * Returns the #MetaWindow for the window that is pointed to by the
5667
5667
  * WM_TRANSIENT_FOR hint on this window (see XGetTransientForHint()
@@ -7217,7 +7217,7 @@ export interface Group {
7217
7217
  // Owm methods of Meta-10.Meta.Group
7218
7218
 
7219
7219
  get_size(): number
7220
- get_startup_id(): string | null
7220
+ get_startup_id(): string
7221
7221
  list_windows(): Window[]
7222
7222
  update_layers(): void
7223
7223
  }
@@ -7265,7 +7265,7 @@ export interface KeyBinding {
7265
7265
 
7266
7266
  get_mask(): number
7267
7267
  get_modifiers(): VirtualModifier
7268
- get_name(): string | null
7268
+ get_name(): string
7269
7269
  is_builtin(): boolean
7270
7270
  is_reversed(): boolean
7271
7271
  }
@@ -7371,27 +7371,27 @@ export interface PluginInfo {
7371
7371
  * name of the plugin
7372
7372
  * @field
7373
7373
  */
7374
- name: string | null
7374
+ name: string
7375
7375
  /**
7376
7376
  * version of the plugin
7377
7377
  * @field
7378
7378
  */
7379
- version: string | null
7379
+ version: string
7380
7380
  /**
7381
7381
  * author of the plugin
7382
7382
  * @field
7383
7383
  */
7384
- author: string | null
7384
+ author: string
7385
7385
  /**
7386
7386
  * license of the plugin
7387
7387
  * @field
7388
7388
  */
7389
- license: string | null
7389
+ license: string
7390
7390
  /**
7391
7391
  * description of the plugin
7392
7392
  * @field
7393
7393
  */
7394
- description: string | null
7394
+ description: string
7395
7395
  }
7396
7396
 
7397
7397
  export class PluginInfo {
@@ -7499,7 +7499,7 @@ export interface SelectionSourceClass {
7499
7499
  activated: (source: SelectionSource) => void
7500
7500
  deactivated: (source: SelectionSource) => void
7501
7501
  get_mimetypes: (source: SelectionSource) => string[]
7502
- read_async: (source: SelectionSource, mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7502
+ read_async: (source: SelectionSource, mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7503
7503
  read_finish: (source: SelectionSource, result: Gio.AsyncResult) => Gio.InputStream
7504
7504
  }
7505
7505
 
package/meta-10.d.ts CHANGED
@@ -1460,7 +1460,7 @@ enum VirtualModifier {
1460
1460
  MOD5_MASK,
1461
1461
  }
1462
1462
  const CURRENT_TIME: number
1463
- const DEFAULT_ICON_NAME: string | null
1463
+ const DEFAULT_ICON_NAME: string
1464
1464
  const ICON_HEIGHT: number
1465
1465
  const ICON_WIDTH: number
1466
1466
  const MINI_ICON_HEIGHT: number
@@ -1485,7 +1485,7 @@ function clutter_init(): void
1485
1485
  * @param name Human readable name of display server or window manager
1486
1486
  * @returns A new context instance.
1487
1487
  */
1488
- function create_context(name: string | null): Context
1488
+ function create_context(name: string): Context
1489
1489
  /**
1490
1490
  * Disables unredirection, can be useful in situations where having
1491
1491
  * unredirected windows is undesirable like when recording a video.
@@ -1506,8 +1506,8 @@ function focus_stage_window(display: Display, timestamp: number): void
1506
1506
  * @param type a #MetaFrameType
1507
1507
  * @returns the string value
1508
1508
  */
1509
- function frame_type_to_string(type: FrameType): string | null
1510
- function g_utf8_strndup(src: string | null, n: number): string | null
1509
+ function frame_type_to_string(type: FrameType): string
1510
+ function g_utf8_strndup(src: string, n: number): string | null
1511
1511
  /**
1512
1512
  * Accessor for the singleton MetaBackend.
1513
1513
  * @returns The only #MetaBackend there is.
@@ -1521,7 +1521,7 @@ function get_stage_for_display(display: Display): Clutter.Actor
1521
1521
  function get_top_window_group_for_display(display: Display): Clutter.Actor
1522
1522
  function get_window_actors(display: Display): Clutter.Actor[]
1523
1523
  function get_window_group_for_display(display: Display): Clutter.Actor
1524
- function gravity_to_string(gravity: Gravity): string | null
1524
+ function gravity_to_string(gravity: Gravity): string
1525
1525
  /**
1526
1526
  * Returns %TRUE if this instance of Mutter comes from Mutter
1527
1527
  * restarting itself (for example to enable/disable stereo.)
@@ -1549,7 +1549,7 @@ function is_wayland_compositor(): boolean
1549
1549
  * @param handler The new handler function
1550
1550
  * @returns %TRUE if the binding known as @name was found, %FALSE otherwise.
1551
1551
  */
1552
- function keybindings_set_custom_handler(name: string | null, handler: KeyHandlerFunc | null): boolean
1552
+ function keybindings_set_custom_handler(name: string, handler: KeyHandlerFunc | null): boolean
1553
1553
  /**
1554
1554
  * Sets up a callback to be called at some later time. `when` determines the
1555
1555
  * particular later occasion at which it is called. This is much like g_idle_add(),
@@ -1568,9 +1568,9 @@ function later_add(when: LaterType, func: GLib.SourceFunc): number
1568
1568
  */
1569
1569
  function later_remove(later_id: number): void
1570
1570
  function pop_no_msg_prefix(): void
1571
- function preference_to_string(pref: Preference): string | null
1571
+ function preference_to_string(pref: Preference): string
1572
1572
  function prefs_bell_is_audible(): boolean
1573
- function prefs_change_workspace_name(i: number, name: string | null): void
1573
+ function prefs_change_workspace_name(i: number, name: string): void
1574
1574
  function prefs_get_action_double_click_titlebar(): GDesktopEnums.TitlebarAction
1575
1575
  function prefs_get_action_middle_click_titlebar(): GDesktopEnums.TitlebarAction
1576
1576
  function prefs_get_action_right_click_titlebar(): GDesktopEnums.TitlebarAction
@@ -1583,7 +1583,7 @@ function prefs_get_center_new_windows(): boolean
1583
1583
  function prefs_get_check_alive_timeout(): number
1584
1584
  function prefs_get_compositing_manager(): boolean
1585
1585
  function prefs_get_cursor_size(): number
1586
- function prefs_get_cursor_theme(): string | null
1586
+ function prefs_get_cursor_theme(): string
1587
1587
  function prefs_get_disable_workarounds(): boolean
1588
1588
  function prefs_get_drag_threshold(): number
1589
1589
  function prefs_get_draggable_border_width(): number
@@ -1595,7 +1595,7 @@ function prefs_get_focus_new_windows(): GDesktopEnums.FocusNewWindows
1595
1595
  function prefs_get_force_fullscreen(): boolean
1596
1596
  function prefs_get_gnome_accessibility(): boolean
1597
1597
  function prefs_get_gnome_animations(): boolean
1598
- function prefs_get_keybinding_action(name: string | null): KeyBindingAction
1598
+ function prefs_get_keybinding_action(name: string): KeyBindingAction
1599
1599
  function prefs_get_mouse_button_menu(): number
1600
1600
  function prefs_get_mouse_button_mods(): VirtualModifier
1601
1601
  function prefs_get_mouse_button_resize(): number
@@ -1605,7 +1605,7 @@ function prefs_get_show_fallback_app_menu(): boolean
1605
1605
  function prefs_get_titlebar_font(): Pango.FontDescription
1606
1606
  function prefs_get_visual_bell(): boolean
1607
1607
  function prefs_get_visual_bell_type(): GDesktopEnums.VisualBellType
1608
- function prefs_get_workspace_name(i: number): string | null
1608
+ function prefs_get_workspace_name(i: number): string
1609
1609
  function prefs_get_workspaces_only_on_primary(): boolean
1610
1610
  function prefs_set_force_fullscreen(whether: boolean): void
1611
1611
  function prefs_set_num_workspaces(n_workspaces: number): void
@@ -1634,7 +1634,7 @@ function remove_verbose_topic(topic: DebugTopic): void
1634
1634
  * @param message message to display to the user, or %NULL
1635
1635
  */
1636
1636
  function restart(message: string | null): void
1637
- function topic_to_string(topic: DebugTopic): string | null
1637
+ function topic_to_string(topic: DebugTopic): string
1638
1638
  function unsigned_long_equal(v1: any | null, v2: any | null): number
1639
1639
  function unsigned_long_hash(v: any | null): number
1640
1640
  function x11_error_trap_pop(x11_display: X11Display): void
@@ -1928,7 +1928,7 @@ interface Backend extends Gio.Initable {
1928
1928
  is_headless(): boolean
1929
1929
  is_rendering_hardware_accelerated(): boolean
1930
1930
  lock_layout_group(idx: number): void
1931
- set_keymap(layouts: string | null, variants: string | null, options: string | null): void
1931
+ set_keymap(layouts: string, variants: string, options: string): void
1932
1932
 
1933
1933
  // Own signals of Meta-10.Meta.Backend
1934
1934
 
@@ -3099,9 +3099,9 @@ interface Context {
3099
3099
  */
3100
3100
  restore_rlimit_nofile(): boolean
3101
3101
  run_main_loop(): boolean
3102
- set_gnome_wm_keybindings(wm_keybindings: string | null): void
3102
+ set_gnome_wm_keybindings(wm_keybindings: string): void
3103
3103
  set_plugin_gtype(plugin_gtype: GObject.GType): void
3104
- set_plugin_name(plugin_name: string | null): void
3104
+ set_plugin_name(plugin_name: string): void
3105
3105
  setup(): boolean
3106
3106
  start(): boolean
3107
3107
  terminate(): void
@@ -3478,7 +3478,7 @@ interface Display {
3478
3478
  * @param handler function to run when the keybinding is invoked
3479
3479
  * @returns the corresponding keybinding action if the keybinding was added successfully, otherwise %META_KEYBINDING_ACTION_NONE
3480
3480
  */
3481
- add_keybinding(name: string | null, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3481
+ add_keybinding(name: string, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3482
3482
  begin_grab_op(window: Window, op: GrabOp, pointer_already_grabbed: boolean, frame_action: boolean, button: number, modmask: number, timestamp: number, root_x: number, root_y: number): boolean
3483
3483
  /**
3484
3484
  * Sets the mouse-mode flag to %FALSE, which means that motion events are
@@ -3593,7 +3593,7 @@ interface Display {
3593
3593
  */
3594
3594
  get_tab_next(type: TabList, workspace: Workspace, window: Window | null, backward: boolean): Window
3595
3595
  get_workspace_manager(): WorkspaceManager
3596
- grab_accelerator(accelerator: string | null, flags: KeyBindingFlags): number
3596
+ grab_accelerator(accelerator: string, flags: KeyBindingFlags): number
3597
3597
  /**
3598
3598
  * Tells whether the event sequence is the used for pointer emulation
3599
3599
  * and single-touch interaction.
@@ -3613,7 +3613,7 @@ interface Display {
3613
3613
  * @param name name of the keybinding to remove
3614
3614
  * @returns %TRUE if the binding has been removed successfully, otherwise %FALSE
3615
3615
  */
3616
- remove_keybinding(name: string | null): boolean
3616
+ remove_keybinding(name: string): boolean
3617
3617
  request_pad_osd(pad: Clutter.InputDevice, edition_mode: boolean): void
3618
3618
  set_cursor(cursor: Cursor): void
3619
3619
  set_input_focus(window: Window, focus_frame: boolean, timestamp: number): void
@@ -4016,7 +4016,7 @@ interface MonitorManager {
4016
4016
  * Returns whether the built-in display (i.e. a laptop panel) is turned on.
4017
4017
  */
4018
4018
  get_is_builtin_display_on(): boolean
4019
- get_monitor_for_connector(connector: string | null): number
4019
+ get_monitor_for_connector(connector: string): number
4020
4020
  get_panel_orientation_managed(): boolean
4021
4021
  get_switch_config(): MonitorSwitchConfigType
4022
4022
  switch_config(config_type: MonitorSwitchConfigType): void
@@ -4406,7 +4406,7 @@ interface Selection {
4406
4406
  * @param cancellable Cancellable
4407
4407
  * @param callback User callback
4408
4408
  */
4409
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4409
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4410
4410
 
4411
4411
  // Overloads of transfer_async
4412
4412
 
@@ -4422,7 +4422,7 @@ interface Selection {
4422
4422
  * @param cancellable Cancellable
4423
4423
  * @returns A Promise of: #TRUE if the transfer was successful.
4424
4424
  */
4425
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4425
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4426
4426
  /**
4427
4427
  * Finishes the transfer of a queried mimetype.
4428
4428
  * @param result The async result
@@ -4510,7 +4510,7 @@ interface SelectionSource {
4510
4510
  * @returns #TRUE if the source owns a selection.
4511
4511
  */
4512
4512
  is_active(): boolean
4513
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4513
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4514
4514
 
4515
4515
  // Overloads of read_async
4516
4516
 
@@ -4522,7 +4522,7 @@ interface SelectionSource {
4522
4522
  * @param cancellable
4523
4523
  * @returns A Promise of: The resulting #GInputStream
4524
4524
  */
4525
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4525
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4526
4526
  /**
4527
4527
  * Finishes a read from the selection source.
4528
4528
  * @param result The async result
@@ -4540,7 +4540,7 @@ interface SelectionSource {
4540
4540
  * @returns The supported mimetypes
4541
4541
  */
4542
4542
  vfunc_get_mimetypes(): string[]
4543
- vfunc_read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4543
+ vfunc_read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4544
4544
  /**
4545
4545
  * Finishes a read from the selection source.
4546
4546
  * @virtual
@@ -4608,8 +4608,8 @@ class SelectionSourceMemory extends SelectionSource {
4608
4608
  // Constructors of Meta-10.Meta.SelectionSourceMemory
4609
4609
 
4610
4610
  constructor(config?: SelectionSourceMemory.ConstructorProperties)
4611
- constructor(mimetype: string | null, content: GLib.Bytes)
4612
- static new(mimetype: string | null, content: GLib.Bytes): SelectionSourceMemory
4611
+ constructor(mimetype: string, content: GLib.Bytes)
4612
+ static new(mimetype: string, content: GLib.Bytes): SelectionSourceMemory
4613
4613
  _init(config?: SelectionSourceMemory.ConstructorProperties): void
4614
4614
  }
4615
4615
 
@@ -4644,7 +4644,7 @@ interface ShadowFactory {
4644
4644
  * @param class_name name of the class of shadow to get the params for
4645
4645
  * @param focused whether the shadow is for a focused window
4646
4646
  */
4647
- get_params(class_name: string | null, focused: boolean): /* params */ ShadowParams
4647
+ get_params(class_name: string, focused: boolean): /* params */ ShadowParams
4648
4648
  /**
4649
4649
  * Gets the appropriate shadow object for drawing shadows for the
4650
4650
  * specified window shape. The region that we are shadowing is specified
@@ -4658,7 +4658,7 @@ interface ShadowFactory {
4658
4658
  * @param focused whether the shadow is for a focused window
4659
4659
  * @returns a newly referenced #MetaShadow; unref with meta_shadow_unref()
4660
4660
  */
4661
- get_shadow(shape: WindowShape, width: number, height: number, class_name: string | null, focused: boolean): Shadow
4661
+ get_shadow(shape: WindowShape, width: number, height: number, class_name: string, focused: boolean): Shadow
4662
4662
  /**
4663
4663
  * Updates the shadow parameters for a particular class of shadows
4664
4664
  * for either the focused or unfocused state. If the class name
@@ -4669,7 +4669,7 @@ interface ShadowFactory {
4669
4669
  * @param focused whether the shadow is for a focused window
4670
4670
  * @param params new parameter values
4671
4671
  */
4672
- set_params(class_name: string | null, focused: boolean, params: ShadowParams): void
4672
+ set_params(class_name: string, focused: boolean, params: ShadowParams): void
4673
4673
 
4674
4674
  // Own signals of Meta-10.Meta.ShadowFactory
4675
4675
 
@@ -4788,14 +4788,14 @@ interface SoundPlayer {
4788
4788
  * @param description description of the played sound
4789
4789
  * @param cancellable cancellable for the request
4790
4790
  */
4791
- play_from_file(file: Gio.File, description: string | null, cancellable: Gio.Cancellable | null): void
4791
+ play_from_file(file: Gio.File, description: string, cancellable: Gio.Cancellable | null): void
4792
4792
  /**
4793
4793
  * Plays a sound from the sound theme.
4794
4794
  * @param name sound theme name of the event
4795
4795
  * @param description description of the event
4796
4796
  * @param cancellable cancellable for the request
4797
4797
  */
4798
- play_from_theme(name: string | null, description: string | null, cancellable: Gio.Cancellable | null): void
4798
+ play_from_theme(name: string, description: string, cancellable: Gio.Cancellable | null): void
4799
4799
 
4800
4800
  // Class property signals of Meta-10.Meta.SoundPlayer
4801
4801
 
@@ -5228,8 +5228,8 @@ interface StartupSequence {
5228
5228
  * @returns the icon name or %NULL.
5229
5229
  */
5230
5230
  get_icon_name(): string | null
5231
- get_id(): string | null
5232
- get_name(): string | null
5231
+ get_id(): string
5232
+ get_name(): string
5233
5233
  get_timestamp(): number
5234
5234
  /**
5235
5235
  * Get the wmclass of the startup sequence.
@@ -5557,7 +5557,7 @@ interface Window {
5557
5557
  * @returns the wrapper object.
5558
5558
  */
5559
5559
  get_compositor_private(): GObject.Object
5560
- get_description(): string | null
5560
+ get_description(): string
5561
5561
  get_display(): Display
5562
5562
  /**
5563
5563
  * Gets a region representing the outer bounds of the window's frame.
@@ -5630,7 +5630,7 @@ interface Window {
5630
5630
  * @returns the pid, or 0 if not known.
5631
5631
  */
5632
5632
  get_pid(): number
5633
- get_role(): string | null
5633
+ get_role(): string
5634
5634
  /**
5635
5635
  * Gets an unique id for a sandboxed app (currently flatpaks and snaps are
5636
5636
  * supported).
@@ -5663,7 +5663,7 @@ interface Window {
5663
5663
  * @returns the matching tiled window or %NULL if it doesn't exist.
5664
5664
  */
5665
5665
  get_tile_match(): Window | null
5666
- get_title(): string | null
5666
+ get_title(): string
5667
5667
  /**
5668
5668
  * Returns the #MetaWindow for the window that is pointed to by the
5669
5669
  * WM_TRANSIENT_FOR hint on this window (see XGetTransientForHint()
@@ -7219,7 +7219,7 @@ interface Group {
7219
7219
  // Owm methods of Meta-10.Meta.Group
7220
7220
 
7221
7221
  get_size(): number
7222
- get_startup_id(): string | null
7222
+ get_startup_id(): string
7223
7223
  list_windows(): Window[]
7224
7224
  update_layers(): void
7225
7225
  }
@@ -7267,7 +7267,7 @@ interface KeyBinding {
7267
7267
 
7268
7268
  get_mask(): number
7269
7269
  get_modifiers(): VirtualModifier
7270
- get_name(): string | null
7270
+ get_name(): string
7271
7271
  is_builtin(): boolean
7272
7272
  is_reversed(): boolean
7273
7273
  }
@@ -7373,27 +7373,27 @@ interface PluginInfo {
7373
7373
  * name of the plugin
7374
7374
  * @field
7375
7375
  */
7376
- name: string | null
7376
+ name: string
7377
7377
  /**
7378
7378
  * version of the plugin
7379
7379
  * @field
7380
7380
  */
7381
- version: string | null
7381
+ version: string
7382
7382
  /**
7383
7383
  * author of the plugin
7384
7384
  * @field
7385
7385
  */
7386
- author: string | null
7386
+ author: string
7387
7387
  /**
7388
7388
  * license of the plugin
7389
7389
  * @field
7390
7390
  */
7391
- license: string | null
7391
+ license: string
7392
7392
  /**
7393
7393
  * description of the plugin
7394
7394
  * @field
7395
7395
  */
7396
- description: string | null
7396
+ description: string
7397
7397
  }
7398
7398
 
7399
7399
  class PluginInfo {
@@ -7501,7 +7501,7 @@ interface SelectionSourceClass {
7501
7501
  activated: (source: SelectionSource) => void
7502
7502
  deactivated: (source: SelectionSource) => void
7503
7503
  get_mimetypes: (source: SelectionSource) => string[]
7504
- read_async: (source: SelectionSource, mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7504
+ read_async: (source: SelectionSource, mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7505
7505
  read_finish: (source: SelectionSource, result: Gio.AsyncResult) => Gio.InputStream
7506
7506
  }
7507
7507
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/meta-10",
3
- "version": "10.0.0-3.2.6",
3
+ "version": "10.0.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for Meta-10, generated from library version 10.0.0",
5
5
  "type": "module",
6
6
  "module": "meta-10.js",
@@ -25,29 +25,29 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit meta-10.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-10": "^10.0.0-3.2.6",
31
- "@girs/cogl-10": "^10.0.0-3.2.6",
32
- "@girs/coglpango-10": "^10.0.0-3.2.6",
33
- "@girs/freetype2-2.0": "^2.0.0-3.2.6",
34
- "@girs/gdesktopenums-3.0": "^3.0.0-3.2.6",
35
- "@girs/gdk-3.0": "^3.24.38-3.2.6",
36
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.6",
37
- "@girs/gio-2.0": "^2.78.0-3.2.6",
38
- "@girs/gjs": "^3.2.6",
39
- "@girs/gl-1.0": "^1.0.0-3.2.6",
40
- "@girs/glib-2.0": "^2.78.0-3.2.6",
41
- "@girs/gmodule-2.0": "^2.0.0-3.2.6",
42
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
43
- "@girs/graphene-1.0": "^1.0.0-3.2.6",
44
- "@girs/gtk-3.0": "^3.24.38-3.2.6",
45
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.6",
46
- "@girs/json-1.0": "^1.7.1-3.2.6",
47
- "@girs/pango-1.0": "^1.51.0-3.2.6",
48
- "@girs/pangocairo-1.0": "^1.0.0-3.2.6",
49
- "@girs/xfixes-4.0": "^4.0.0-3.2.6",
50
- "@girs/xlib-2.0": "^2.0.0-3.2.6"
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-10": "^10.0.0-3.2.7",
31
+ "@girs/cogl-10": "^10.0.0-3.2.7",
32
+ "@girs/coglpango-10": "^10.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": "*"