@girs/meta-12 12.0.0-3.2.6 → 12.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-12)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Meta-12, generated from library version 12.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for Meta-12, generated from library version 12.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-12.d.cts CHANGED
@@ -1474,7 +1474,7 @@ export enum VirtualModifier {
1474
1474
  MOD5_MASK,
1475
1475
  }
1476
1476
  export const CURRENT_TIME: number
1477
- export const DEFAULT_ICON_NAME: string | null
1477
+ export const DEFAULT_ICON_NAME: string
1478
1478
  export const ICON_HEIGHT: number
1479
1479
  export const ICON_WIDTH: number
1480
1480
  export const MINI_ICON_HEIGHT: number
@@ -1506,7 +1506,7 @@ export function clutter_init(): void
1506
1506
  * @param name Human readable name of display server or window manager
1507
1507
  * @returns A new context instance.
1508
1508
  */
1509
- export function create_context(name: string | null): Context
1509
+ export function create_context(name: string): Context
1510
1510
  /**
1511
1511
  * Disables unredirection, can be useful in situations where having
1512
1512
  * unredirected windows is undesirable like when recording a video.
@@ -1527,8 +1527,8 @@ export function focus_stage_window(display: Display, timestamp: number): void
1527
1527
  * @param type a #MetaFrameType
1528
1528
  * @returns the string value
1529
1529
  */
1530
- export function frame_type_to_string(type: FrameType): string | null
1531
- export function g_utf8_strndup(src: string | null, n: number): string | null
1530
+ export function frame_type_to_string(type: FrameType): string
1531
+ export function g_utf8_strndup(src: string, n: number): string | null
1532
1532
  export function get_clutter_debug_flags(): [ /* debug_flags */ Clutter.DebugFlag, /* draw_flags */ Clutter.DrawDebugFlag, /* pick_flags */ Clutter.PickDebugFlag ]
1533
1533
  export function get_debug_paint_flags(): DebugPaintFlag
1534
1534
  export function get_feedback_group_for_display(display: Display): Clutter.Actor
@@ -1537,7 +1537,7 @@ export function get_stage_for_display(display: Display): Clutter.Actor
1537
1537
  export function get_top_window_group_for_display(display: Display): Clutter.Actor
1538
1538
  export function get_window_actors(display: Display): Clutter.Actor[]
1539
1539
  export function get_window_group_for_display(display: Display): Clutter.Actor
1540
- export function gravity_to_string(gravity: Gravity): string | null
1540
+ export function gravity_to_string(gravity: Gravity): string
1541
1541
  /**
1542
1542
  * Returns %TRUE if this instance of Mutter comes from Mutter
1543
1543
  * restarting itself (for example to enable/disable stereo.)
@@ -1555,11 +1555,11 @@ export function is_wayland_compositor(): boolean
1555
1555
  * @param handler The new handler function
1556
1556
  * @returns %TRUE if the binding known as @name was found, %FALSE otherwise.
1557
1557
  */
1558
- export function keybindings_set_custom_handler(name: string | null, handler: KeyHandlerFunc | null): boolean
1558
+ export function keybindings_set_custom_handler(name: string, handler: KeyHandlerFunc | null): boolean
1559
1559
  export function pop_no_msg_prefix(): void
1560
- export function preference_to_string(pref: Preference): string | null
1560
+ export function preference_to_string(pref: Preference): string
1561
1561
  export function prefs_bell_is_audible(): boolean
1562
- export function prefs_change_workspace_name(i: number, name: string | null): void
1562
+ export function prefs_change_workspace_name(i: number, name: string): void
1563
1563
  export function prefs_get_action_double_click_titlebar(): GDesktopEnums.TitlebarAction
1564
1564
  export function prefs_get_action_middle_click_titlebar(): GDesktopEnums.TitlebarAction
1565
1565
  export function prefs_get_action_right_click_titlebar(): GDesktopEnums.TitlebarAction
@@ -1572,7 +1572,7 @@ export function prefs_get_center_new_windows(): boolean
1572
1572
  export function prefs_get_check_alive_timeout(): number
1573
1573
  export function prefs_get_compositing_manager(): boolean
1574
1574
  export function prefs_get_cursor_size(): number
1575
- export function prefs_get_cursor_theme(): string | null
1575
+ export function prefs_get_cursor_theme(): string
1576
1576
  export function prefs_get_disable_workarounds(): boolean
1577
1577
  export function prefs_get_drag_threshold(): number
1578
1578
  export function prefs_get_draggable_border_width(): number
@@ -1584,8 +1584,8 @@ export function prefs_get_focus_new_windows(): GDesktopEnums.FocusNewWindows
1584
1584
  export function prefs_get_force_fullscreen(): boolean
1585
1585
  export function prefs_get_gnome_accessibility(): boolean
1586
1586
  export function prefs_get_gnome_animations(): boolean
1587
- export function prefs_get_keybinding_action(name: string | null): KeyBindingAction
1588
- export function prefs_get_keybinding_label(name: string | null): string | null
1587
+ export function prefs_get_keybinding_action(name: string): KeyBindingAction
1588
+ export function prefs_get_keybinding_label(name: string): string | null
1589
1589
  export function prefs_get_mouse_button_menu(): number
1590
1590
  export function prefs_get_mouse_button_mods(): Clutter.ModifierType
1591
1591
  export function prefs_get_mouse_button_resize(): number
@@ -1595,7 +1595,7 @@ export function prefs_get_show_fallback_app_menu(): boolean
1595
1595
  export function prefs_get_titlebar_font(): Pango.FontDescription
1596
1596
  export function prefs_get_visual_bell(): boolean
1597
1597
  export function prefs_get_visual_bell_type(): GDesktopEnums.VisualBellType
1598
- export function prefs_get_workspace_name(i: number): string | null
1598
+ export function prefs_get_workspace_name(i: number): string
1599
1599
  export function prefs_get_workspaces_only_on_primary(): boolean
1600
1600
  export function prefs_set_force_fullscreen(whether: boolean): void
1601
1601
  export function prefs_set_num_workspaces(n_workspaces: number): void
@@ -1625,7 +1625,7 @@ export function remove_verbose_topic(topic: DebugTopic): void
1625
1625
  * @param context a #MetaContext
1626
1626
  */
1627
1627
  export function restart(message: string | null, context: Context): void
1628
- export function topic_to_string(topic: DebugTopic): string | null
1628
+ export function topic_to_string(topic: DebugTopic): string
1629
1629
  export function unsigned_long_equal(v1: any | null, v2: any | null): number
1630
1630
  export function unsigned_long_hash(v: any | null): number
1631
1631
  export function x11_error_trap_pop(x11_display: X11Display): void
@@ -1920,7 +1920,7 @@ export interface Backend extends Gio.Initable {
1920
1920
  is_headless(): boolean
1921
1921
  is_rendering_hardware_accelerated(): boolean
1922
1922
  lock_layout_group(idx: number): void
1923
- set_keymap(layouts: string | null, variants: string | null, options: string | null): void
1923
+ set_keymap(layouts: string, variants: string, options: string): void
1924
1924
 
1925
1925
  // Own signals of Meta-12.Meta.Backend
1926
1926
 
@@ -3098,9 +3098,9 @@ export interface Context {
3098
3098
  */
3099
3099
  restore_rlimit_nofile(): boolean
3100
3100
  run_main_loop(): boolean
3101
- set_gnome_wm_keybindings(wm_keybindings: string | null): void
3101
+ set_gnome_wm_keybindings(wm_keybindings: string): void
3102
3102
  set_plugin_gtype(plugin_gtype: GObject.GType): void
3103
- set_plugin_name(plugin_name: string | null): void
3103
+ set_plugin_name(plugin_name: string): void
3104
3104
  setup(): boolean
3105
3105
  start(): boolean
3106
3106
  terminate(): void
@@ -3489,7 +3489,7 @@ export interface Display {
3489
3489
  * @param handler function to run when the keybinding is invoked
3490
3490
  * @returns the corresponding keybinding action if the keybinding was added successfully, otherwise %META_KEYBINDING_ACTION_NONE
3491
3491
  */
3492
- add_keybinding(name: string | null, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3492
+ add_keybinding(name: string, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3493
3493
  /**
3494
3494
  * Sets the mouse-mode flag to %FALSE, which means that motion events are
3495
3495
  * no longer ignored in mouse or sloppy focus.
@@ -3598,7 +3598,7 @@ export interface Display {
3598
3598
  */
3599
3599
  get_tab_next(type: TabList, workspace: Workspace, window: Window | null, backward: boolean): Window
3600
3600
  get_workspace_manager(): WorkspaceManager
3601
- grab_accelerator(accelerator: string | null, flags: KeyBindingFlags): number
3601
+ grab_accelerator(accelerator: string, flags: KeyBindingFlags): number
3602
3602
  /**
3603
3603
  * Returns %TRUE if there is an ongoing grab operation.
3604
3604
  * @returns Whether there is an active display grab operation.
@@ -3623,7 +3623,7 @@ export interface Display {
3623
3623
  * @param name name of the keybinding to remove
3624
3624
  * @returns %TRUE if the binding has been removed successfully, otherwise %FALSE
3625
3625
  */
3626
- remove_keybinding(name: string | null): boolean
3626
+ remove_keybinding(name: string): boolean
3627
3627
  request_pad_osd(pad: Clutter.InputDevice, edition_mode: boolean): void
3628
3628
  set_cursor(cursor: Cursor): void
3629
3629
  set_input_focus(window: Window, focus_frame: boolean, timestamp: number): void
@@ -4085,7 +4085,7 @@ export interface MonitorManager {
4085
4085
  * Returns whether the built-in display (i.e. a laptop panel) is turned on.
4086
4086
  */
4087
4087
  get_is_builtin_display_on(): boolean
4088
- get_monitor_for_connector(connector: string | null): number
4088
+ get_monitor_for_connector(connector: string): number
4089
4089
  get_panel_orientation_managed(): boolean
4090
4090
  get_switch_config(): MonitorSwitchConfigType
4091
4091
  switch_config(config_type: MonitorSwitchConfigType): void
@@ -4475,7 +4475,7 @@ export interface Selection {
4475
4475
  * @param cancellable Cancellable
4476
4476
  * @param callback User callback
4477
4477
  */
4478
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4478
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4479
4479
 
4480
4480
  // Overloads of transfer_async
4481
4481
 
@@ -4491,7 +4491,7 @@ export interface Selection {
4491
4491
  * @param cancellable Cancellable
4492
4492
  * @returns A Promise of: #TRUE if the transfer was successful.
4493
4493
  */
4494
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4494
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4495
4495
  /**
4496
4496
  * Finishes the transfer of a queried mimetype.
4497
4497
  * @param result The async result
@@ -4579,7 +4579,7 @@ export interface SelectionSource {
4579
4579
  * @returns #TRUE if the source owns a selection.
4580
4580
  */
4581
4581
  is_active(): boolean
4582
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4582
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4583
4583
 
4584
4584
  // Overloads of read_async
4585
4585
 
@@ -4591,7 +4591,7 @@ export interface SelectionSource {
4591
4591
  * @param cancellable
4592
4592
  * @returns A Promise of: The resulting #GInputStream
4593
4593
  */
4594
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4594
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4595
4595
  /**
4596
4596
  * Finishes a read from the selection source.
4597
4597
  * @param result The async result
@@ -4609,7 +4609,7 @@ export interface SelectionSource {
4609
4609
  * @returns The supported mimetypes
4610
4610
  */
4611
4611
  vfunc_get_mimetypes(): string[]
4612
- vfunc_read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4612
+ vfunc_read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4613
4613
  /**
4614
4614
  * Finishes a read from the selection source.
4615
4615
  * @virtual
@@ -4677,8 +4677,8 @@ export class SelectionSourceMemory extends SelectionSource {
4677
4677
  // Constructors of Meta-12.Meta.SelectionSourceMemory
4678
4678
 
4679
4679
  constructor(config?: SelectionSourceMemory.ConstructorProperties)
4680
- constructor(mimetype: string | null, content: GLib.Bytes)
4681
- static new(mimetype: string | null, content: GLib.Bytes): SelectionSourceMemory
4680
+ constructor(mimetype: string, content: GLib.Bytes)
4681
+ static new(mimetype: string, content: GLib.Bytes): SelectionSourceMemory
4682
4682
  _init(config?: SelectionSourceMemory.ConstructorProperties): void
4683
4683
  }
4684
4684
 
@@ -4713,7 +4713,7 @@ export interface ShadowFactory {
4713
4713
  * @param class_name name of the class of shadow to get the params for
4714
4714
  * @param focused whether the shadow is for a focused window
4715
4715
  */
4716
- get_params(class_name: string | null, focused: boolean): /* params */ ShadowParams
4716
+ get_params(class_name: string, focused: boolean): /* params */ ShadowParams
4717
4717
  /**
4718
4718
  * Gets the appropriate shadow object for drawing shadows for the
4719
4719
  * specified window shape. The region that we are shadowing is specified
@@ -4727,7 +4727,7 @@ export interface ShadowFactory {
4727
4727
  * @param focused whether the shadow is for a focused window
4728
4728
  * @returns a newly referenced #MetaShadow; unref with meta_shadow_unref()
4729
4729
  */
4730
- get_shadow(shape: WindowShape, width: number, height: number, class_name: string | null, focused: boolean): Shadow
4730
+ get_shadow(shape: WindowShape, width: number, height: number, class_name: string, focused: boolean): Shadow
4731
4731
  /**
4732
4732
  * Updates the shadow parameters for a particular class of shadows
4733
4733
  * for either the focused or unfocused state. If the class name
@@ -4738,7 +4738,7 @@ export interface ShadowFactory {
4738
4738
  * @param focused whether the shadow is for a focused window
4739
4739
  * @param params new parameter values
4740
4740
  */
4741
- set_params(class_name: string | null, focused: boolean, params: ShadowParams): void
4741
+ set_params(class_name: string, focused: boolean, params: ShadowParams): void
4742
4742
 
4743
4743
  // Own signals of Meta-12.Meta.ShadowFactory
4744
4744
 
@@ -4857,14 +4857,14 @@ export interface SoundPlayer {
4857
4857
  * @param description description of the played sound
4858
4858
  * @param cancellable cancellable for the request
4859
4859
  */
4860
- play_from_file(file: Gio.File, description: string | null, cancellable: Gio.Cancellable | null): void
4860
+ play_from_file(file: Gio.File, description: string, cancellable: Gio.Cancellable | null): void
4861
4861
  /**
4862
4862
  * Plays a sound from the sound theme.
4863
4863
  * @param name sound theme name of the event
4864
4864
  * @param description description of the event
4865
4865
  * @param cancellable cancellable for the request
4866
4866
  */
4867
- play_from_theme(name: string | null, description: string | null, cancellable: Gio.Cancellable | null): void
4867
+ play_from_theme(name: string, description: string, cancellable: Gio.Cancellable | null): void
4868
4868
 
4869
4869
  // Class property signals of Meta-12.Meta.SoundPlayer
4870
4870
 
@@ -5302,8 +5302,8 @@ export interface StartupSequence {
5302
5302
  * @returns the icon name or %NULL.
5303
5303
  */
5304
5304
  get_icon_name(): string | null
5305
- get_id(): string | null
5306
- get_name(): string | null
5305
+ get_id(): string
5306
+ get_name(): string
5307
5307
  get_timestamp(): number
5308
5308
  /**
5309
5309
  * Get the wmclass of the startup sequence.
@@ -5653,7 +5653,7 @@ export interface Window extends Gio.Initable {
5653
5653
  * @returns the wrapper object.
5654
5654
  */
5655
5655
  get_compositor_private(): GObject.Object
5656
- get_description(): string | null
5656
+ get_description(): string
5657
5657
  get_display(): Display
5658
5658
  /**
5659
5659
  * Gets a region representing the outer bounds of the window's frame.
@@ -5726,7 +5726,7 @@ export interface Window extends Gio.Initable {
5726
5726
  * @returns the pid, or 0 if not known.
5727
5727
  */
5728
5728
  get_pid(): number
5729
- get_role(): string | null
5729
+ get_role(): string
5730
5730
  /**
5731
5731
  * Gets an unique id for a sandboxed app (currently flatpaks and snaps are
5732
5732
  * supported).
@@ -5759,7 +5759,7 @@ export interface Window extends Gio.Initable {
5759
5759
  * @returns the matching tiled window or %NULL if it doesn't exist.
5760
5760
  */
5761
5761
  get_tile_match(): Window | null
5762
- get_title(): string | null
5762
+ get_title(): string
5763
5763
  /**
5764
5764
  * Returns the #MetaWindow for the window that is pointed to by the
5765
5765
  * WM_TRANSIENT_FOR hint on this window (see XGetTransientForHint()
@@ -7341,7 +7341,7 @@ export interface Group {
7341
7341
  // Owm methods of Meta-12.Meta.Group
7342
7342
 
7343
7343
  get_size(): number
7344
- get_startup_id(): string | null
7344
+ get_startup_id(): string
7345
7345
  list_windows(): Window[]
7346
7346
  update_layers(): void
7347
7347
  }
@@ -7389,7 +7389,7 @@ export interface KeyBinding {
7389
7389
 
7390
7390
  get_mask(): number
7391
7391
  get_modifiers(): Clutter.ModifierType
7392
- get_name(): string | null
7392
+ get_name(): string
7393
7393
  is_builtin(): boolean
7394
7394
  is_reversed(): boolean
7395
7395
  }
@@ -7479,27 +7479,27 @@ export interface PluginInfo {
7479
7479
  * name of the plugin
7480
7480
  * @field
7481
7481
  */
7482
- name: string | null
7482
+ name: string
7483
7483
  /**
7484
7484
  * version of the plugin
7485
7485
  * @field
7486
7486
  */
7487
- version: string | null
7487
+ version: string
7488
7488
  /**
7489
7489
  * author of the plugin
7490
7490
  * @field
7491
7491
  */
7492
- author: string | null
7492
+ author: string
7493
7493
  /**
7494
7494
  * license of the plugin
7495
7495
  * @field
7496
7496
  */
7497
- license: string | null
7497
+ license: string
7498
7498
  /**
7499
7499
  * description of the plugin
7500
7500
  * @field
7501
7501
  */
7502
- description: string | null
7502
+ description: string
7503
7503
  }
7504
7504
 
7505
7505
  export class PluginInfo {
@@ -7607,7 +7607,7 @@ export interface SelectionSourceClass {
7607
7607
  activated: (source: SelectionSource) => void
7608
7608
  deactivated: (source: SelectionSource) => void
7609
7609
  get_mimetypes: (source: SelectionSource) => string[]
7610
- read_async: (source: SelectionSource, mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7610
+ read_async: (source: SelectionSource, mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7611
7611
  read_finish: (source: SelectionSource, result: Gio.AsyncResult) => Gio.InputStream
7612
7612
  }
7613
7613
 
package/meta-12.d.ts CHANGED
@@ -1476,7 +1476,7 @@ enum VirtualModifier {
1476
1476
  MOD5_MASK,
1477
1477
  }
1478
1478
  const CURRENT_TIME: number
1479
- const DEFAULT_ICON_NAME: string | null
1479
+ const DEFAULT_ICON_NAME: string
1480
1480
  const ICON_HEIGHT: number
1481
1481
  const ICON_WIDTH: number
1482
1482
  const MINI_ICON_HEIGHT: number
@@ -1508,7 +1508,7 @@ function clutter_init(): void
1508
1508
  * @param name Human readable name of display server or window manager
1509
1509
  * @returns A new context instance.
1510
1510
  */
1511
- function create_context(name: string | null): Context
1511
+ function create_context(name: string): Context
1512
1512
  /**
1513
1513
  * Disables unredirection, can be useful in situations where having
1514
1514
  * unredirected windows is undesirable like when recording a video.
@@ -1529,8 +1529,8 @@ function focus_stage_window(display: Display, timestamp: number): void
1529
1529
  * @param type a #MetaFrameType
1530
1530
  * @returns the string value
1531
1531
  */
1532
- function frame_type_to_string(type: FrameType): string | null
1533
- function g_utf8_strndup(src: string | null, n: number): string | null
1532
+ function frame_type_to_string(type: FrameType): string
1533
+ function g_utf8_strndup(src: string, n: number): string | null
1534
1534
  function get_clutter_debug_flags(): [ /* debug_flags */ Clutter.DebugFlag, /* draw_flags */ Clutter.DrawDebugFlag, /* pick_flags */ Clutter.PickDebugFlag ]
1535
1535
  function get_debug_paint_flags(): DebugPaintFlag
1536
1536
  function get_feedback_group_for_display(display: Display): Clutter.Actor
@@ -1539,7 +1539,7 @@ function get_stage_for_display(display: Display): Clutter.Actor
1539
1539
  function get_top_window_group_for_display(display: Display): Clutter.Actor
1540
1540
  function get_window_actors(display: Display): Clutter.Actor[]
1541
1541
  function get_window_group_for_display(display: Display): Clutter.Actor
1542
- function gravity_to_string(gravity: Gravity): string | null
1542
+ function gravity_to_string(gravity: Gravity): string
1543
1543
  /**
1544
1544
  * Returns %TRUE if this instance of Mutter comes from Mutter
1545
1545
  * restarting itself (for example to enable/disable stereo.)
@@ -1557,11 +1557,11 @@ function is_wayland_compositor(): boolean
1557
1557
  * @param handler The new handler function
1558
1558
  * @returns %TRUE if the binding known as @name was found, %FALSE otherwise.
1559
1559
  */
1560
- function keybindings_set_custom_handler(name: string | null, handler: KeyHandlerFunc | null): boolean
1560
+ function keybindings_set_custom_handler(name: string, handler: KeyHandlerFunc | null): boolean
1561
1561
  function pop_no_msg_prefix(): void
1562
- function preference_to_string(pref: Preference): string | null
1562
+ function preference_to_string(pref: Preference): string
1563
1563
  function prefs_bell_is_audible(): boolean
1564
- function prefs_change_workspace_name(i: number, name: string | null): void
1564
+ function prefs_change_workspace_name(i: number, name: string): void
1565
1565
  function prefs_get_action_double_click_titlebar(): GDesktopEnums.TitlebarAction
1566
1566
  function prefs_get_action_middle_click_titlebar(): GDesktopEnums.TitlebarAction
1567
1567
  function prefs_get_action_right_click_titlebar(): GDesktopEnums.TitlebarAction
@@ -1574,7 +1574,7 @@ function prefs_get_center_new_windows(): boolean
1574
1574
  function prefs_get_check_alive_timeout(): number
1575
1575
  function prefs_get_compositing_manager(): boolean
1576
1576
  function prefs_get_cursor_size(): number
1577
- function prefs_get_cursor_theme(): string | null
1577
+ function prefs_get_cursor_theme(): string
1578
1578
  function prefs_get_disable_workarounds(): boolean
1579
1579
  function prefs_get_drag_threshold(): number
1580
1580
  function prefs_get_draggable_border_width(): number
@@ -1586,8 +1586,8 @@ function prefs_get_focus_new_windows(): GDesktopEnums.FocusNewWindows
1586
1586
  function prefs_get_force_fullscreen(): boolean
1587
1587
  function prefs_get_gnome_accessibility(): boolean
1588
1588
  function prefs_get_gnome_animations(): boolean
1589
- function prefs_get_keybinding_action(name: string | null): KeyBindingAction
1590
- function prefs_get_keybinding_label(name: string | null): string | null
1589
+ function prefs_get_keybinding_action(name: string): KeyBindingAction
1590
+ function prefs_get_keybinding_label(name: string): string | null
1591
1591
  function prefs_get_mouse_button_menu(): number
1592
1592
  function prefs_get_mouse_button_mods(): Clutter.ModifierType
1593
1593
  function prefs_get_mouse_button_resize(): number
@@ -1597,7 +1597,7 @@ function prefs_get_show_fallback_app_menu(): boolean
1597
1597
  function prefs_get_titlebar_font(): Pango.FontDescription
1598
1598
  function prefs_get_visual_bell(): boolean
1599
1599
  function prefs_get_visual_bell_type(): GDesktopEnums.VisualBellType
1600
- function prefs_get_workspace_name(i: number): string | null
1600
+ function prefs_get_workspace_name(i: number): string
1601
1601
  function prefs_get_workspaces_only_on_primary(): boolean
1602
1602
  function prefs_set_force_fullscreen(whether: boolean): void
1603
1603
  function prefs_set_num_workspaces(n_workspaces: number): void
@@ -1627,7 +1627,7 @@ function remove_verbose_topic(topic: DebugTopic): void
1627
1627
  * @param context a #MetaContext
1628
1628
  */
1629
1629
  function restart(message: string | null, context: Context): void
1630
- function topic_to_string(topic: DebugTopic): string | null
1630
+ function topic_to_string(topic: DebugTopic): string
1631
1631
  function unsigned_long_equal(v1: any | null, v2: any | null): number
1632
1632
  function unsigned_long_hash(v: any | null): number
1633
1633
  function x11_error_trap_pop(x11_display: X11Display): void
@@ -1922,7 +1922,7 @@ interface Backend extends Gio.Initable {
1922
1922
  is_headless(): boolean
1923
1923
  is_rendering_hardware_accelerated(): boolean
1924
1924
  lock_layout_group(idx: number): void
1925
- set_keymap(layouts: string | null, variants: string | null, options: string | null): void
1925
+ set_keymap(layouts: string, variants: string, options: string): void
1926
1926
 
1927
1927
  // Own signals of Meta-12.Meta.Backend
1928
1928
 
@@ -3100,9 +3100,9 @@ interface Context {
3100
3100
  */
3101
3101
  restore_rlimit_nofile(): boolean
3102
3102
  run_main_loop(): boolean
3103
- set_gnome_wm_keybindings(wm_keybindings: string | null): void
3103
+ set_gnome_wm_keybindings(wm_keybindings: string): void
3104
3104
  set_plugin_gtype(plugin_gtype: GObject.GType): void
3105
- set_plugin_name(plugin_name: string | null): void
3105
+ set_plugin_name(plugin_name: string): void
3106
3106
  setup(): boolean
3107
3107
  start(): boolean
3108
3108
  terminate(): void
@@ -3491,7 +3491,7 @@ interface Display {
3491
3491
  * @param handler function to run when the keybinding is invoked
3492
3492
  * @returns the corresponding keybinding action if the keybinding was added successfully, otherwise %META_KEYBINDING_ACTION_NONE
3493
3493
  */
3494
- add_keybinding(name: string | null, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3494
+ add_keybinding(name: string, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3495
3495
  /**
3496
3496
  * Sets the mouse-mode flag to %FALSE, which means that motion events are
3497
3497
  * no longer ignored in mouse or sloppy focus.
@@ -3600,7 +3600,7 @@ interface Display {
3600
3600
  */
3601
3601
  get_tab_next(type: TabList, workspace: Workspace, window: Window | null, backward: boolean): Window
3602
3602
  get_workspace_manager(): WorkspaceManager
3603
- grab_accelerator(accelerator: string | null, flags: KeyBindingFlags): number
3603
+ grab_accelerator(accelerator: string, flags: KeyBindingFlags): number
3604
3604
  /**
3605
3605
  * Returns %TRUE if there is an ongoing grab operation.
3606
3606
  * @returns Whether there is an active display grab operation.
@@ -3625,7 +3625,7 @@ interface Display {
3625
3625
  * @param name name of the keybinding to remove
3626
3626
  * @returns %TRUE if the binding has been removed successfully, otherwise %FALSE
3627
3627
  */
3628
- remove_keybinding(name: string | null): boolean
3628
+ remove_keybinding(name: string): boolean
3629
3629
  request_pad_osd(pad: Clutter.InputDevice, edition_mode: boolean): void
3630
3630
  set_cursor(cursor: Cursor): void
3631
3631
  set_input_focus(window: Window, focus_frame: boolean, timestamp: number): void
@@ -4087,7 +4087,7 @@ interface MonitorManager {
4087
4087
  * Returns whether the built-in display (i.e. a laptop panel) is turned on.
4088
4088
  */
4089
4089
  get_is_builtin_display_on(): boolean
4090
- get_monitor_for_connector(connector: string | null): number
4090
+ get_monitor_for_connector(connector: string): number
4091
4091
  get_panel_orientation_managed(): boolean
4092
4092
  get_switch_config(): MonitorSwitchConfigType
4093
4093
  switch_config(config_type: MonitorSwitchConfigType): void
@@ -4477,7 +4477,7 @@ interface Selection {
4477
4477
  * @param cancellable Cancellable
4478
4478
  * @param callback User callback
4479
4479
  */
4480
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4480
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4481
4481
 
4482
4482
  // Overloads of transfer_async
4483
4483
 
@@ -4493,7 +4493,7 @@ interface Selection {
4493
4493
  * @param cancellable Cancellable
4494
4494
  * @returns A Promise of: #TRUE if the transfer was successful.
4495
4495
  */
4496
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4496
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4497
4497
  /**
4498
4498
  * Finishes the transfer of a queried mimetype.
4499
4499
  * @param result The async result
@@ -4581,7 +4581,7 @@ interface SelectionSource {
4581
4581
  * @returns #TRUE if the source owns a selection.
4582
4582
  */
4583
4583
  is_active(): boolean
4584
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4584
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4585
4585
 
4586
4586
  // Overloads of read_async
4587
4587
 
@@ -4593,7 +4593,7 @@ interface SelectionSource {
4593
4593
  * @param cancellable
4594
4594
  * @returns A Promise of: The resulting #GInputStream
4595
4595
  */
4596
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4596
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4597
4597
  /**
4598
4598
  * Finishes a read from the selection source.
4599
4599
  * @param result The async result
@@ -4611,7 +4611,7 @@ interface SelectionSource {
4611
4611
  * @returns The supported mimetypes
4612
4612
  */
4613
4613
  vfunc_get_mimetypes(): string[]
4614
- vfunc_read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4614
+ vfunc_read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4615
4615
  /**
4616
4616
  * Finishes a read from the selection source.
4617
4617
  * @virtual
@@ -4679,8 +4679,8 @@ class SelectionSourceMemory extends SelectionSource {
4679
4679
  // Constructors of Meta-12.Meta.SelectionSourceMemory
4680
4680
 
4681
4681
  constructor(config?: SelectionSourceMemory.ConstructorProperties)
4682
- constructor(mimetype: string | null, content: GLib.Bytes)
4683
- static new(mimetype: string | null, content: GLib.Bytes): SelectionSourceMemory
4682
+ constructor(mimetype: string, content: GLib.Bytes)
4683
+ static new(mimetype: string, content: GLib.Bytes): SelectionSourceMemory
4684
4684
  _init(config?: SelectionSourceMemory.ConstructorProperties): void
4685
4685
  }
4686
4686
 
@@ -4715,7 +4715,7 @@ interface ShadowFactory {
4715
4715
  * @param class_name name of the class of shadow to get the params for
4716
4716
  * @param focused whether the shadow is for a focused window
4717
4717
  */
4718
- get_params(class_name: string | null, focused: boolean): /* params */ ShadowParams
4718
+ get_params(class_name: string, focused: boolean): /* params */ ShadowParams
4719
4719
  /**
4720
4720
  * Gets the appropriate shadow object for drawing shadows for the
4721
4721
  * specified window shape. The region that we are shadowing is specified
@@ -4729,7 +4729,7 @@ interface ShadowFactory {
4729
4729
  * @param focused whether the shadow is for a focused window
4730
4730
  * @returns a newly referenced #MetaShadow; unref with meta_shadow_unref()
4731
4731
  */
4732
- get_shadow(shape: WindowShape, width: number, height: number, class_name: string | null, focused: boolean): Shadow
4732
+ get_shadow(shape: WindowShape, width: number, height: number, class_name: string, focused: boolean): Shadow
4733
4733
  /**
4734
4734
  * Updates the shadow parameters for a particular class of shadows
4735
4735
  * for either the focused or unfocused state. If the class name
@@ -4740,7 +4740,7 @@ interface ShadowFactory {
4740
4740
  * @param focused whether the shadow is for a focused window
4741
4741
  * @param params new parameter values
4742
4742
  */
4743
- set_params(class_name: string | null, focused: boolean, params: ShadowParams): void
4743
+ set_params(class_name: string, focused: boolean, params: ShadowParams): void
4744
4744
 
4745
4745
  // Own signals of Meta-12.Meta.ShadowFactory
4746
4746
 
@@ -4859,14 +4859,14 @@ interface SoundPlayer {
4859
4859
  * @param description description of the played sound
4860
4860
  * @param cancellable cancellable for the request
4861
4861
  */
4862
- play_from_file(file: Gio.File, description: string | null, cancellable: Gio.Cancellable | null): void
4862
+ play_from_file(file: Gio.File, description: string, cancellable: Gio.Cancellable | null): void
4863
4863
  /**
4864
4864
  * Plays a sound from the sound theme.
4865
4865
  * @param name sound theme name of the event
4866
4866
  * @param description description of the event
4867
4867
  * @param cancellable cancellable for the request
4868
4868
  */
4869
- play_from_theme(name: string | null, description: string | null, cancellable: Gio.Cancellable | null): void
4869
+ play_from_theme(name: string, description: string, cancellable: Gio.Cancellable | null): void
4870
4870
 
4871
4871
  // Class property signals of Meta-12.Meta.SoundPlayer
4872
4872
 
@@ -5304,8 +5304,8 @@ interface StartupSequence {
5304
5304
  * @returns the icon name or %NULL.
5305
5305
  */
5306
5306
  get_icon_name(): string | null
5307
- get_id(): string | null
5308
- get_name(): string | null
5307
+ get_id(): string
5308
+ get_name(): string
5309
5309
  get_timestamp(): number
5310
5310
  /**
5311
5311
  * Get the wmclass of the startup sequence.
@@ -5655,7 +5655,7 @@ interface Window extends Gio.Initable {
5655
5655
  * @returns the wrapper object.
5656
5656
  */
5657
5657
  get_compositor_private(): GObject.Object
5658
- get_description(): string | null
5658
+ get_description(): string
5659
5659
  get_display(): Display
5660
5660
  /**
5661
5661
  * Gets a region representing the outer bounds of the window's frame.
@@ -5728,7 +5728,7 @@ interface Window extends Gio.Initable {
5728
5728
  * @returns the pid, or 0 if not known.
5729
5729
  */
5730
5730
  get_pid(): number
5731
- get_role(): string | null
5731
+ get_role(): string
5732
5732
  /**
5733
5733
  * Gets an unique id for a sandboxed app (currently flatpaks and snaps are
5734
5734
  * supported).
@@ -5761,7 +5761,7 @@ interface Window extends Gio.Initable {
5761
5761
  * @returns the matching tiled window or %NULL if it doesn't exist.
5762
5762
  */
5763
5763
  get_tile_match(): Window | null
5764
- get_title(): string | null
5764
+ get_title(): string
5765
5765
  /**
5766
5766
  * Returns the #MetaWindow for the window that is pointed to by the
5767
5767
  * WM_TRANSIENT_FOR hint on this window (see XGetTransientForHint()
@@ -7343,7 +7343,7 @@ interface Group {
7343
7343
  // Owm methods of Meta-12.Meta.Group
7344
7344
 
7345
7345
  get_size(): number
7346
- get_startup_id(): string | null
7346
+ get_startup_id(): string
7347
7347
  list_windows(): Window[]
7348
7348
  update_layers(): void
7349
7349
  }
@@ -7391,7 +7391,7 @@ interface KeyBinding {
7391
7391
 
7392
7392
  get_mask(): number
7393
7393
  get_modifiers(): Clutter.ModifierType
7394
- get_name(): string | null
7394
+ get_name(): string
7395
7395
  is_builtin(): boolean
7396
7396
  is_reversed(): boolean
7397
7397
  }
@@ -7481,27 +7481,27 @@ interface PluginInfo {
7481
7481
  * name of the plugin
7482
7482
  * @field
7483
7483
  */
7484
- name: string | null
7484
+ name: string
7485
7485
  /**
7486
7486
  * version of the plugin
7487
7487
  * @field
7488
7488
  */
7489
- version: string | null
7489
+ version: string
7490
7490
  /**
7491
7491
  * author of the plugin
7492
7492
  * @field
7493
7493
  */
7494
- author: string | null
7494
+ author: string
7495
7495
  /**
7496
7496
  * license of the plugin
7497
7497
  * @field
7498
7498
  */
7499
- license: string | null
7499
+ license: string
7500
7500
  /**
7501
7501
  * description of the plugin
7502
7502
  * @field
7503
7503
  */
7504
- description: string | null
7504
+ description: string
7505
7505
  }
7506
7506
 
7507
7507
  class PluginInfo {
@@ -7609,7 +7609,7 @@ interface SelectionSourceClass {
7609
7609
  activated: (source: SelectionSource) => void
7610
7610
  deactivated: (source: SelectionSource) => void
7611
7611
  get_mimetypes: (source: SelectionSource) => string[]
7612
- read_async: (source: SelectionSource, mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7612
+ read_async: (source: SelectionSource, mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
7613
7613
  read_finish: (source: SelectionSource, result: Gio.AsyncResult) => Gio.InputStream
7614
7614
  }
7615
7615
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/meta-12",
3
- "version": "12.0.0-3.2.6",
3
+ "version": "12.0.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for Meta-12, generated from library version 12.0.0",
5
5
  "type": "module",
6
6
  "module": "meta-12.js",
@@ -25,25 +25,25 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit meta-12.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-12": "^12.0.0-3.2.6",
31
- "@girs/cogl-12": "^12.0.0-3.2.6",
32
- "@girs/coglpango-12": "^12.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/gio-2.0": "^2.78.0-3.2.6",
36
- "@girs/gjs": "^3.2.6",
37
- "@girs/gl-1.0": "^1.0.0-3.2.6",
38
- "@girs/glib-2.0": "^2.78.0-3.2.6",
39
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
40
- "@girs/graphene-1.0": "^1.0.0-3.2.6",
41
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.6",
42
- "@girs/json-1.0": "^1.7.1-3.2.6",
43
- "@girs/pango-1.0": "^1.51.0-3.2.6",
44
- "@girs/pangocairo-1.0": "^1.0.0-3.2.6",
45
- "@girs/xfixes-4.0": "^4.0.0-3.2.6",
46
- "@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-12": "^12.0.0-3.2.7",
31
+ "@girs/cogl-12": "^12.0.0-3.2.7",
32
+ "@girs/coglpango-12": "^12.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/gio-2.0": "^2.78.0-3.2.7",
36
+ "@girs/gjs": "^3.2.7",
37
+ "@girs/gl-1.0": "^1.0.0-3.2.7",
38
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
39
+ "@girs/gobject-2.0": "^2.78.0-3.2.7",
40
+ "@girs/graphene-1.0": "^1.0.0-3.2.7",
41
+ "@girs/harfbuzz-0.0": "^8.2.1-3.2.7",
42
+ "@girs/json-1.0": "^1.7.1-3.2.7",
43
+ "@girs/pango-1.0": "^1.51.0-3.2.7",
44
+ "@girs/pangocairo-1.0": "^1.0.0-3.2.7",
45
+ "@girs/xfixes-4.0": "^4.0.0-3.2.7",
46
+ "@girs/xlib-2.0": "^2.0.0-3.2.7"
47
47
  },
48
48
  "devDependencies": {
49
49
  "typescript": "*"