@girs/meta-13 13.0.0-3.2.6 → 13.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-13)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Meta-13, generated from library version 13.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for Meta-13, generated from library version 13.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-13.d.cts CHANGED
@@ -1465,7 +1465,7 @@ export enum VirtualModifier {
1465
1465
  MOD5_MASK,
1466
1466
  }
1467
1467
  export const CURRENT_TIME: number
1468
- export const DEFAULT_ICON_NAME: string | null
1468
+ export const DEFAULT_ICON_NAME: string
1469
1469
  export const ICON_HEIGHT: number
1470
1470
  export const ICON_WIDTH: number
1471
1471
  export const MINI_ICON_HEIGHT: number
@@ -1497,7 +1497,7 @@ export function clutter_init(): void
1497
1497
  * @param name Human readable name of display server or window manager
1498
1498
  * @returns A new context instance.
1499
1499
  */
1500
- export function create_context(name: string | null): Context
1500
+ export function create_context(name: string): Context
1501
1501
  /**
1502
1502
  * Disables unredirection, can be useful in situations where having
1503
1503
  * unredirected windows is undesirable like when recording a video.
@@ -1518,8 +1518,8 @@ export function focus_stage_window(display: Display, timestamp: number): void
1518
1518
  * @param type a #MetaFrameType
1519
1519
  * @returns the string value
1520
1520
  */
1521
- export function frame_type_to_string(type: FrameType): string | null
1522
- export function g_utf8_strndup(src: string | null, n: number): string | null
1521
+ export function frame_type_to_string(type: FrameType): string
1522
+ export function g_utf8_strndup(src: string, n: number): string | null
1523
1523
  export function get_clutter_debug_flags(): [ /* debug_flags */ Clutter.DebugFlag, /* draw_flags */ Clutter.DrawDebugFlag, /* pick_flags */ Clutter.PickDebugFlag ]
1524
1524
  export function get_debug_paint_flags(): DebugPaintFlag
1525
1525
  export function get_feedback_group_for_display(display: Display): Clutter.Actor
@@ -1528,7 +1528,7 @@ export function get_stage_for_display(display: Display): Clutter.Actor
1528
1528
  export function get_top_window_group_for_display(display: Display): Clutter.Actor
1529
1529
  export function get_window_actors(display: Display): Clutter.Actor[]
1530
1530
  export function get_window_group_for_display(display: Display): Clutter.Actor
1531
- export function gravity_to_string(gravity: Gravity): string | null
1531
+ export function gravity_to_string(gravity: Gravity): string
1532
1532
  /**
1533
1533
  * Returns %TRUE if this instance of Mutter comes from Mutter
1534
1534
  * restarting itself (for example to enable/disable stereo.)
@@ -1547,11 +1547,11 @@ 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
  export function pop_no_msg_prefix(): void
1552
- export function preference_to_string(pref: Preference): string | null
1552
+ export function preference_to_string(pref: Preference): string
1553
1553
  export function prefs_bell_is_audible(): boolean
1554
- export function prefs_change_workspace_name(i: number, name: string | null): void
1554
+ export function prefs_change_workspace_name(i: number, name: string): void
1555
1555
  export function prefs_get_action_double_click_titlebar(): GDesktopEnums.TitlebarAction
1556
1556
  export function prefs_get_action_middle_click_titlebar(): GDesktopEnums.TitlebarAction
1557
1557
  export function prefs_get_action_right_click_titlebar(): GDesktopEnums.TitlebarAction
@@ -1564,7 +1564,7 @@ export function prefs_get_center_new_windows(): boolean
1564
1564
  export function prefs_get_check_alive_timeout(): number
1565
1565
  export function prefs_get_compositing_manager(): boolean
1566
1566
  export function prefs_get_cursor_size(): number
1567
- export function prefs_get_cursor_theme(): string | null
1567
+ export function prefs_get_cursor_theme(): string
1568
1568
  export function prefs_get_disable_workarounds(): boolean
1569
1569
  export function prefs_get_drag_threshold(): number
1570
1570
  export function prefs_get_draggable_border_width(): number
@@ -1576,8 +1576,8 @@ export function prefs_get_focus_new_windows(): GDesktopEnums.FocusNewWindows
1576
1576
  export function prefs_get_force_fullscreen(): boolean
1577
1577
  export function prefs_get_gnome_accessibility(): boolean
1578
1578
  export function prefs_get_gnome_animations(): boolean
1579
- export function prefs_get_keybinding_action(name: string | null): KeyBindingAction
1580
- export function prefs_get_keybinding_label(name: string | null): string | null
1579
+ export function prefs_get_keybinding_action(name: string): KeyBindingAction
1580
+ export function prefs_get_keybinding_label(name: string): string | null
1581
1581
  export function prefs_get_mouse_button_menu(): number
1582
1582
  export function prefs_get_mouse_button_mods(): Clutter.ModifierType
1583
1583
  export function prefs_get_mouse_button_resize(): number
@@ -1586,7 +1586,7 @@ export function prefs_get_raise_on_click(): boolean
1586
1586
  export function prefs_get_show_fallback_app_menu(): boolean
1587
1587
  export function prefs_get_visual_bell(): boolean
1588
1588
  export function prefs_get_visual_bell_type(): GDesktopEnums.VisualBellType
1589
- export function prefs_get_workspace_name(i: number): string | null
1589
+ export function prefs_get_workspace_name(i: number): string
1590
1590
  export function prefs_get_workspaces_only_on_primary(): boolean
1591
1591
  export function prefs_set_force_fullscreen(whether: boolean): void
1592
1592
  export function prefs_set_num_workspaces(n_workspaces: number): void
@@ -1621,7 +1621,7 @@ export function remove_verbose_topic(topic: DebugTopic): void
1621
1621
  * @param context a #MetaContext
1622
1622
  */
1623
1623
  export function restart(message: string | null, context: Context): void
1624
- export function topic_to_string(topic: DebugTopic): string | null
1624
+ export function topic_to_string(topic: DebugTopic): string
1625
1625
  export function unsigned_long_equal(v1: any | null, v2: any | null): number
1626
1626
  export function unsigned_long_hash(v: any | null): number
1627
1627
  export function x11_error_trap_pop(x11_display: X11Display): void
@@ -1916,7 +1916,7 @@ export interface Backend extends Gio.Initable {
1916
1916
  is_headless(): boolean
1917
1917
  is_rendering_hardware_accelerated(): boolean
1918
1918
  lock_layout_group(idx: number): void
1919
- set_keymap(layouts: string | null, variants: string | null, options: string | null): void
1919
+ set_keymap(layouts: string, variants: string, options: string): void
1920
1920
 
1921
1921
  // Own signals of Meta-13.Meta.Backend
1922
1922
 
@@ -3242,9 +3242,9 @@ export interface Context {
3242
3242
  */
3243
3243
  restore_rlimit_nofile(): boolean
3244
3244
  run_main_loop(): boolean
3245
- set_gnome_wm_keybindings(wm_keybindings: string | null): void
3245
+ set_gnome_wm_keybindings(wm_keybindings: string): void
3246
3246
  set_plugin_gtype(plugin_gtype: GObject.GType): void
3247
- set_plugin_name(plugin_name: string | null): void
3247
+ set_plugin_name(plugin_name: string): void
3248
3248
  setup(): boolean
3249
3249
  start(): boolean
3250
3250
  terminate(): void
@@ -3638,7 +3638,7 @@ export interface Display {
3638
3638
  * @param handler function to run when the keybinding is invoked
3639
3639
  * @returns the corresponding keybinding action if the keybinding was added successfully, otherwise %META_KEYBINDING_ACTION_NONE
3640
3640
  */
3641
- add_keybinding(name: string | null, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3641
+ add_keybinding(name: string, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3642
3642
  /**
3643
3643
  * Sets the mouse-mode flag to %FALSE, which means that motion events are
3644
3644
  * no longer ignored in mouse or sloppy focus.
@@ -3748,7 +3748,7 @@ export interface Display {
3748
3748
  */
3749
3749
  get_tab_next(type: TabList, workspace: Workspace, window: Window | null, backward: boolean): Window
3750
3750
  get_workspace_manager(): WorkspaceManager
3751
- grab_accelerator(accelerator: string | null, flags: KeyBindingFlags): number
3751
+ grab_accelerator(accelerator: string, flags: KeyBindingFlags): number
3752
3752
  /**
3753
3753
  * Returns %TRUE if there is an ongoing grab operation.
3754
3754
  * @returns Whether there is an active display grab operation.
@@ -3773,7 +3773,7 @@ export interface Display {
3773
3773
  * @param name name of the keybinding to remove
3774
3774
  * @returns %TRUE if the binding has been removed successfully, otherwise %FALSE
3775
3775
  */
3776
- remove_keybinding(name: string | null): boolean
3776
+ remove_keybinding(name: string): boolean
3777
3777
  request_pad_osd(pad: Clutter.InputDevice, edition_mode: boolean): void
3778
3778
  set_cursor(cursor: Cursor): void
3779
3779
  set_input_focus(window: Window, focus_frame: boolean, timestamp: number): void
@@ -4245,7 +4245,7 @@ export interface MonitorManager {
4245
4245
  * Returns whether the built-in display (i.e. a laptop panel) is turned on.
4246
4246
  */
4247
4247
  get_is_builtin_display_on(): boolean
4248
- get_monitor_for_connector(connector: string | null): number
4248
+ get_monitor_for_connector(connector: string): number
4249
4249
  get_panel_orientation_managed(): boolean
4250
4250
  get_switch_config(): MonitorSwitchConfigType
4251
4251
  switch_config(config_type: MonitorSwitchConfigType): void
@@ -4760,7 +4760,7 @@ export interface Selection {
4760
4760
  * @param cancellable Cancellable
4761
4761
  * @param callback User callback
4762
4762
  */
4763
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4763
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4764
4764
 
4765
4765
  // Overloads of transfer_async
4766
4766
 
@@ -4776,7 +4776,7 @@ export interface Selection {
4776
4776
  * @param cancellable Cancellable
4777
4777
  * @returns A Promise of: #TRUE if the transfer was successful.
4778
4778
  */
4779
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4779
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4780
4780
  /**
4781
4781
  * Finishes the transfer of a queried mimetype.
4782
4782
  * @param result The async result
@@ -4864,7 +4864,7 @@ export interface SelectionSource {
4864
4864
  * @returns #TRUE if the source owns a selection.
4865
4865
  */
4866
4866
  is_active(): boolean
4867
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4867
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4868
4868
 
4869
4869
  // Overloads of read_async
4870
4870
 
@@ -4876,7 +4876,7 @@ export interface SelectionSource {
4876
4876
  * @param cancellable
4877
4877
  * @returns A Promise of: The resulting #GInputStream
4878
4878
  */
4879
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4879
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4880
4880
  /**
4881
4881
  * Finishes a read from the selection source.
4882
4882
  * @param result The async result
@@ -4894,7 +4894,7 @@ export interface SelectionSource {
4894
4894
  * @returns The supported mimetypes
4895
4895
  */
4896
4896
  vfunc_get_mimetypes(): string[]
4897
- vfunc_read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4897
+ vfunc_read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4898
4898
  /**
4899
4899
  * Finishes a read from the selection source.
4900
4900
  * @virtual
@@ -4962,8 +4962,8 @@ export class SelectionSourceMemory extends SelectionSource {
4962
4962
  // Constructors of Meta-13.Meta.SelectionSourceMemory
4963
4963
 
4964
4964
  constructor(config?: SelectionSourceMemory.ConstructorProperties)
4965
- constructor(mimetype: string | null, content: GLib.Bytes)
4966
- static new(mimetype: string | null, content: GLib.Bytes): SelectionSourceMemory
4965
+ constructor(mimetype: string, content: GLib.Bytes)
4966
+ static new(mimetype: string, content: GLib.Bytes): SelectionSourceMemory
4967
4967
  _init(config?: SelectionSourceMemory.ConstructorProperties): void
4968
4968
  }
4969
4969
 
@@ -4998,7 +4998,7 @@ export interface ShadowFactory {
4998
4998
  * @param class_name name of the class of shadow to get the params for
4999
4999
  * @param focused whether the shadow is for a focused window
5000
5000
  */
5001
- get_params(class_name: string | null, focused: boolean): /* params */ ShadowParams
5001
+ get_params(class_name: string, focused: boolean): /* params */ ShadowParams
5002
5002
  /**
5003
5003
  * Gets the appropriate shadow object for drawing shadows for the
5004
5004
  * specified window shape. The region that we are shadowing is specified
@@ -5012,7 +5012,7 @@ export interface ShadowFactory {
5012
5012
  * @param focused whether the shadow is for a focused window
5013
5013
  * @returns a newly referenced #MetaShadow; unref with meta_shadow_unref()
5014
5014
  */
5015
- get_shadow(shape: WindowShape, width: number, height: number, class_name: string | null, focused: boolean): Shadow
5015
+ get_shadow(shape: WindowShape, width: number, height: number, class_name: string, focused: boolean): Shadow
5016
5016
  /**
5017
5017
  * Updates the shadow parameters for a particular class of shadows
5018
5018
  * for either the focused or unfocused state. If the class name
@@ -5023,7 +5023,7 @@ export interface ShadowFactory {
5023
5023
  * @param focused whether the shadow is for a focused window
5024
5024
  * @param params new parameter values
5025
5025
  */
5026
- set_params(class_name: string | null, focused: boolean, params: ShadowParams): void
5026
+ set_params(class_name: string, focused: boolean, params: ShadowParams): void
5027
5027
 
5028
5028
  // Own signals of Meta-13.Meta.ShadowFactory
5029
5029
 
@@ -5152,14 +5152,14 @@ export interface SoundPlayer {
5152
5152
  * @param description description of the played sound
5153
5153
  * @param cancellable cancellable for the request
5154
5154
  */
5155
- play_from_file(file: Gio.File, description: string | null, cancellable: Gio.Cancellable | null): void
5155
+ play_from_file(file: Gio.File, description: string, cancellable: Gio.Cancellable | null): void
5156
5156
  /**
5157
5157
  * Plays a sound from the sound theme.
5158
5158
  * @param name sound theme name of the event
5159
5159
  * @param description description of the event
5160
5160
  * @param cancellable cancellable for the request
5161
5161
  */
5162
- play_from_theme(name: string | null, description: string | null, cancellable: Gio.Cancellable | null): void
5162
+ play_from_theme(name: string, description: string, cancellable: Gio.Cancellable | null): void
5163
5163
 
5164
5164
  // Class property signals of Meta-13.Meta.SoundPlayer
5165
5165
 
@@ -5584,8 +5584,8 @@ export interface StartupSequence {
5584
5584
  * @returns the icon name or %NULL.
5585
5585
  */
5586
5586
  get_icon_name(): string | null
5587
- get_id(): string | null
5588
- get_name(): string | null
5587
+ get_id(): string
5588
+ get_name(): string
5589
5589
  get_timestamp(): number
5590
5590
  /**
5591
5591
  * Get the wmclass of the startup sequence.
@@ -5994,7 +5994,7 @@ export interface Window extends Gio.Initable {
5994
5994
  * @returns the wrapper object.
5995
5995
  */
5996
5996
  get_compositor_private(): GObject.Object
5997
- get_description(): string | null
5997
+ get_description(): string
5998
5998
  get_display(): Display
5999
5999
  /**
6000
6000
  * Gets a region representing the outer bounds of the window's frame.
@@ -6069,7 +6069,7 @@ export interface Window extends Gio.Initable {
6069
6069
  * @returns the pid, or 0 if not known.
6070
6070
  */
6071
6071
  get_pid(): number
6072
- get_role(): string | null
6072
+ get_role(): string
6073
6073
  /**
6074
6074
  * Gets an unique id for a sandboxed app (currently flatpaks and snaps are
6075
6075
  * supported).
@@ -6102,7 +6102,7 @@ export interface Window extends Gio.Initable {
6102
6102
  * @returns the matching tiled window or %NULL if it doesn't exist.
6103
6103
  */
6104
6104
  get_tile_match(): Window | null
6105
- get_title(): string | null
6105
+ get_title(): string
6106
6106
  /**
6107
6107
  * Returns the #MetaWindow for the window that is pointed to by the
6108
6108
  * WM_TRANSIENT_FOR hint on this window (see XGetTransientForHint()
@@ -7762,7 +7762,7 @@ export interface Group {
7762
7762
  // Owm methods of Meta-13.Meta.Group
7763
7763
 
7764
7764
  get_size(): number
7765
- get_startup_id(): string | null
7765
+ get_startup_id(): string
7766
7766
  list_windows(): Window[]
7767
7767
  update_layers(): void
7768
7768
  }
@@ -7814,7 +7814,7 @@ export interface KeyBinding {
7814
7814
 
7815
7815
  get_mask(): number
7816
7816
  get_modifiers(): Clutter.ModifierType
7817
- get_name(): string | null
7817
+ get_name(): string
7818
7818
  is_builtin(): boolean
7819
7819
  is_reversed(): boolean
7820
7820
  }
@@ -7918,27 +7918,27 @@ export interface PluginInfo {
7918
7918
  * name of the plugin
7919
7919
  * @field
7920
7920
  */
7921
- name: string | null
7921
+ name: string
7922
7922
  /**
7923
7923
  * version of the plugin
7924
7924
  * @field
7925
7925
  */
7926
- version: string | null
7926
+ version: string
7927
7927
  /**
7928
7928
  * author of the plugin
7929
7929
  * @field
7930
7930
  */
7931
- author: string | null
7931
+ author: string
7932
7932
  /**
7933
7933
  * license of the plugin
7934
7934
  * @field
7935
7935
  */
7936
- license: string | null
7936
+ license: string
7937
7937
  /**
7938
7938
  * description of the plugin
7939
7939
  * @field
7940
7940
  */
7941
- description: string | null
7941
+ description: string
7942
7942
  }
7943
7943
 
7944
7944
  export class PluginInfo {
@@ -7999,7 +7999,7 @@ export interface SelectionSourceClass {
7999
7999
  activated: (source: SelectionSource) => void
8000
8000
  deactivated: (source: SelectionSource) => void
8001
8001
  get_mimetypes: (source: SelectionSource) => string[]
8002
- read_async: (source: SelectionSource, mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
8002
+ read_async: (source: SelectionSource, mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
8003
8003
  read_finish: (source: SelectionSource, result: Gio.AsyncResult) => Gio.InputStream
8004
8004
  }
8005
8005
 
package/meta-13.d.ts CHANGED
@@ -1467,7 +1467,7 @@ enum VirtualModifier {
1467
1467
  MOD5_MASK,
1468
1468
  }
1469
1469
  const CURRENT_TIME: number
1470
- const DEFAULT_ICON_NAME: string | null
1470
+ const DEFAULT_ICON_NAME: string
1471
1471
  const ICON_HEIGHT: number
1472
1472
  const ICON_WIDTH: number
1473
1473
  const MINI_ICON_HEIGHT: number
@@ -1499,7 +1499,7 @@ function clutter_init(): void
1499
1499
  * @param name Human readable name of display server or window manager
1500
1500
  * @returns A new context instance.
1501
1501
  */
1502
- function create_context(name: string | null): Context
1502
+ function create_context(name: string): Context
1503
1503
  /**
1504
1504
  * Disables unredirection, can be useful in situations where having
1505
1505
  * unredirected windows is undesirable like when recording a video.
@@ -1520,8 +1520,8 @@ function focus_stage_window(display: Display, timestamp: number): void
1520
1520
  * @param type a #MetaFrameType
1521
1521
  * @returns the string value
1522
1522
  */
1523
- function frame_type_to_string(type: FrameType): string | null
1524
- function g_utf8_strndup(src: string | null, n: number): string | null
1523
+ function frame_type_to_string(type: FrameType): string
1524
+ function g_utf8_strndup(src: string, n: number): string | null
1525
1525
  function get_clutter_debug_flags(): [ /* debug_flags */ Clutter.DebugFlag, /* draw_flags */ Clutter.DrawDebugFlag, /* pick_flags */ Clutter.PickDebugFlag ]
1526
1526
  function get_debug_paint_flags(): DebugPaintFlag
1527
1527
  function get_feedback_group_for_display(display: Display): Clutter.Actor
@@ -1530,7 +1530,7 @@ function get_stage_for_display(display: Display): Clutter.Actor
1530
1530
  function get_top_window_group_for_display(display: Display): Clutter.Actor
1531
1531
  function get_window_actors(display: Display): Clutter.Actor[]
1532
1532
  function get_window_group_for_display(display: Display): Clutter.Actor
1533
- function gravity_to_string(gravity: Gravity): string | null
1533
+ function gravity_to_string(gravity: Gravity): string
1534
1534
  /**
1535
1535
  * Returns %TRUE if this instance of Mutter comes from Mutter
1536
1536
  * restarting itself (for example to enable/disable stereo.)
@@ -1549,11 +1549,11 @@ 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
  function pop_no_msg_prefix(): void
1554
- function preference_to_string(pref: Preference): string | null
1554
+ function preference_to_string(pref: Preference): string
1555
1555
  function prefs_bell_is_audible(): boolean
1556
- function prefs_change_workspace_name(i: number, name: string | null): void
1556
+ function prefs_change_workspace_name(i: number, name: string): void
1557
1557
  function prefs_get_action_double_click_titlebar(): GDesktopEnums.TitlebarAction
1558
1558
  function prefs_get_action_middle_click_titlebar(): GDesktopEnums.TitlebarAction
1559
1559
  function prefs_get_action_right_click_titlebar(): GDesktopEnums.TitlebarAction
@@ -1566,7 +1566,7 @@ function prefs_get_center_new_windows(): boolean
1566
1566
  function prefs_get_check_alive_timeout(): number
1567
1567
  function prefs_get_compositing_manager(): boolean
1568
1568
  function prefs_get_cursor_size(): number
1569
- function prefs_get_cursor_theme(): string | null
1569
+ function prefs_get_cursor_theme(): string
1570
1570
  function prefs_get_disable_workarounds(): boolean
1571
1571
  function prefs_get_drag_threshold(): number
1572
1572
  function prefs_get_draggable_border_width(): number
@@ -1578,8 +1578,8 @@ function prefs_get_focus_new_windows(): GDesktopEnums.FocusNewWindows
1578
1578
  function prefs_get_force_fullscreen(): boolean
1579
1579
  function prefs_get_gnome_accessibility(): boolean
1580
1580
  function prefs_get_gnome_animations(): boolean
1581
- function prefs_get_keybinding_action(name: string | null): KeyBindingAction
1582
- function prefs_get_keybinding_label(name: string | null): string | null
1581
+ function prefs_get_keybinding_action(name: string): KeyBindingAction
1582
+ function prefs_get_keybinding_label(name: string): string | null
1583
1583
  function prefs_get_mouse_button_menu(): number
1584
1584
  function prefs_get_mouse_button_mods(): Clutter.ModifierType
1585
1585
  function prefs_get_mouse_button_resize(): number
@@ -1588,7 +1588,7 @@ function prefs_get_raise_on_click(): boolean
1588
1588
  function prefs_get_show_fallback_app_menu(): boolean
1589
1589
  function prefs_get_visual_bell(): boolean
1590
1590
  function prefs_get_visual_bell_type(): GDesktopEnums.VisualBellType
1591
- function prefs_get_workspace_name(i: number): string | null
1591
+ function prefs_get_workspace_name(i: number): string
1592
1592
  function prefs_get_workspaces_only_on_primary(): boolean
1593
1593
  function prefs_set_force_fullscreen(whether: boolean): void
1594
1594
  function prefs_set_num_workspaces(n_workspaces: number): void
@@ -1623,7 +1623,7 @@ function remove_verbose_topic(topic: DebugTopic): void
1623
1623
  * @param context a #MetaContext
1624
1624
  */
1625
1625
  function restart(message: string | null, context: Context): void
1626
- function topic_to_string(topic: DebugTopic): string | null
1626
+ function topic_to_string(topic: DebugTopic): string
1627
1627
  function unsigned_long_equal(v1: any | null, v2: any | null): number
1628
1628
  function unsigned_long_hash(v: any | null): number
1629
1629
  function x11_error_trap_pop(x11_display: X11Display): void
@@ -1918,7 +1918,7 @@ interface Backend extends Gio.Initable {
1918
1918
  is_headless(): boolean
1919
1919
  is_rendering_hardware_accelerated(): boolean
1920
1920
  lock_layout_group(idx: number): void
1921
- set_keymap(layouts: string | null, variants: string | null, options: string | null): void
1921
+ set_keymap(layouts: string, variants: string, options: string): void
1922
1922
 
1923
1923
  // Own signals of Meta-13.Meta.Backend
1924
1924
 
@@ -3244,9 +3244,9 @@ interface Context {
3244
3244
  */
3245
3245
  restore_rlimit_nofile(): boolean
3246
3246
  run_main_loop(): boolean
3247
- set_gnome_wm_keybindings(wm_keybindings: string | null): void
3247
+ set_gnome_wm_keybindings(wm_keybindings: string): void
3248
3248
  set_plugin_gtype(plugin_gtype: GObject.GType): void
3249
- set_plugin_name(plugin_name: string | null): void
3249
+ set_plugin_name(plugin_name: string): void
3250
3250
  setup(): boolean
3251
3251
  start(): boolean
3252
3252
  terminate(): void
@@ -3640,7 +3640,7 @@ interface Display {
3640
3640
  * @param handler function to run when the keybinding is invoked
3641
3641
  * @returns the corresponding keybinding action if the keybinding was added successfully, otherwise %META_KEYBINDING_ACTION_NONE
3642
3642
  */
3643
- add_keybinding(name: string | null, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3643
+ add_keybinding(name: string, settings: Gio.Settings, flags: KeyBindingFlags, handler: KeyHandlerFunc): number
3644
3644
  /**
3645
3645
  * Sets the mouse-mode flag to %FALSE, which means that motion events are
3646
3646
  * no longer ignored in mouse or sloppy focus.
@@ -3750,7 +3750,7 @@ interface Display {
3750
3750
  */
3751
3751
  get_tab_next(type: TabList, workspace: Workspace, window: Window | null, backward: boolean): Window
3752
3752
  get_workspace_manager(): WorkspaceManager
3753
- grab_accelerator(accelerator: string | null, flags: KeyBindingFlags): number
3753
+ grab_accelerator(accelerator: string, flags: KeyBindingFlags): number
3754
3754
  /**
3755
3755
  * Returns %TRUE if there is an ongoing grab operation.
3756
3756
  * @returns Whether there is an active display grab operation.
@@ -3775,7 +3775,7 @@ interface Display {
3775
3775
  * @param name name of the keybinding to remove
3776
3776
  * @returns %TRUE if the binding has been removed successfully, otherwise %FALSE
3777
3777
  */
3778
- remove_keybinding(name: string | null): boolean
3778
+ remove_keybinding(name: string): boolean
3779
3779
  request_pad_osd(pad: Clutter.InputDevice, edition_mode: boolean): void
3780
3780
  set_cursor(cursor: Cursor): void
3781
3781
  set_input_focus(window: Window, focus_frame: boolean, timestamp: number): void
@@ -4247,7 +4247,7 @@ interface MonitorManager {
4247
4247
  * Returns whether the built-in display (i.e. a laptop panel) is turned on.
4248
4248
  */
4249
4249
  get_is_builtin_display_on(): boolean
4250
- get_monitor_for_connector(connector: string | null): number
4250
+ get_monitor_for_connector(connector: string): number
4251
4251
  get_panel_orientation_managed(): boolean
4252
4252
  get_switch_config(): MonitorSwitchConfigType
4253
4253
  switch_config(config_type: MonitorSwitchConfigType): void
@@ -4762,7 +4762,7 @@ interface Selection {
4762
4762
  * @param cancellable Cancellable
4763
4763
  * @param callback User callback
4764
4764
  */
4765
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4765
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4766
4766
 
4767
4767
  // Overloads of transfer_async
4768
4768
 
@@ -4778,7 +4778,7 @@ interface Selection {
4778
4778
  * @param cancellable Cancellable
4779
4779
  * @returns A Promise of: #TRUE if the transfer was successful.
4780
4780
  */
4781
- transfer_async(selection_type: SelectionType, mimetype: string | null, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4781
+ transfer_async(selection_type: SelectionType, mimetype: string, size: number, output: Gio.OutputStream, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>
4782
4782
  /**
4783
4783
  * Finishes the transfer of a queried mimetype.
4784
4784
  * @param result The async result
@@ -4866,7 +4866,7 @@ interface SelectionSource {
4866
4866
  * @returns #TRUE if the source owns a selection.
4867
4867
  */
4868
4868
  is_active(): boolean
4869
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4869
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4870
4870
 
4871
4871
  // Overloads of read_async
4872
4872
 
@@ -4878,7 +4878,7 @@ interface SelectionSource {
4878
4878
  * @param cancellable
4879
4879
  * @returns A Promise of: The resulting #GInputStream
4880
4880
  */
4881
- read_async(mimetype: string | null, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4881
+ read_async(mimetype: string, cancellable: Gio.Cancellable | null): globalThis.Promise<Gio.InputStream>
4882
4882
  /**
4883
4883
  * Finishes a read from the selection source.
4884
4884
  * @param result The async result
@@ -4896,7 +4896,7 @@ interface SelectionSource {
4896
4896
  * @returns The supported mimetypes
4897
4897
  */
4898
4898
  vfunc_get_mimetypes(): string[]
4899
- vfunc_read_async(mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4899
+ vfunc_read_async(mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void
4900
4900
  /**
4901
4901
  * Finishes a read from the selection source.
4902
4902
  * @virtual
@@ -4964,8 +4964,8 @@ class SelectionSourceMemory extends SelectionSource {
4964
4964
  // Constructors of Meta-13.Meta.SelectionSourceMemory
4965
4965
 
4966
4966
  constructor(config?: SelectionSourceMemory.ConstructorProperties)
4967
- constructor(mimetype: string | null, content: GLib.Bytes)
4968
- static new(mimetype: string | null, content: GLib.Bytes): SelectionSourceMemory
4967
+ constructor(mimetype: string, content: GLib.Bytes)
4968
+ static new(mimetype: string, content: GLib.Bytes): SelectionSourceMemory
4969
4969
  _init(config?: SelectionSourceMemory.ConstructorProperties): void
4970
4970
  }
4971
4971
 
@@ -5000,7 +5000,7 @@ interface ShadowFactory {
5000
5000
  * @param class_name name of the class of shadow to get the params for
5001
5001
  * @param focused whether the shadow is for a focused window
5002
5002
  */
5003
- get_params(class_name: string | null, focused: boolean): /* params */ ShadowParams
5003
+ get_params(class_name: string, focused: boolean): /* params */ ShadowParams
5004
5004
  /**
5005
5005
  * Gets the appropriate shadow object for drawing shadows for the
5006
5006
  * specified window shape. The region that we are shadowing is specified
@@ -5014,7 +5014,7 @@ interface ShadowFactory {
5014
5014
  * @param focused whether the shadow is for a focused window
5015
5015
  * @returns a newly referenced #MetaShadow; unref with meta_shadow_unref()
5016
5016
  */
5017
- get_shadow(shape: WindowShape, width: number, height: number, class_name: string | null, focused: boolean): Shadow
5017
+ get_shadow(shape: WindowShape, width: number, height: number, class_name: string, focused: boolean): Shadow
5018
5018
  /**
5019
5019
  * Updates the shadow parameters for a particular class of shadows
5020
5020
  * for either the focused or unfocused state. If the class name
@@ -5025,7 +5025,7 @@ interface ShadowFactory {
5025
5025
  * @param focused whether the shadow is for a focused window
5026
5026
  * @param params new parameter values
5027
5027
  */
5028
- set_params(class_name: string | null, focused: boolean, params: ShadowParams): void
5028
+ set_params(class_name: string, focused: boolean, params: ShadowParams): void
5029
5029
 
5030
5030
  // Own signals of Meta-13.Meta.ShadowFactory
5031
5031
 
@@ -5154,14 +5154,14 @@ interface SoundPlayer {
5154
5154
  * @param description description of the played sound
5155
5155
  * @param cancellable cancellable for the request
5156
5156
  */
5157
- play_from_file(file: Gio.File, description: string | null, cancellable: Gio.Cancellable | null): void
5157
+ play_from_file(file: Gio.File, description: string, cancellable: Gio.Cancellable | null): void
5158
5158
  /**
5159
5159
  * Plays a sound from the sound theme.
5160
5160
  * @param name sound theme name of the event
5161
5161
  * @param description description of the event
5162
5162
  * @param cancellable cancellable for the request
5163
5163
  */
5164
- play_from_theme(name: string | null, description: string | null, cancellable: Gio.Cancellable | null): void
5164
+ play_from_theme(name: string, description: string, cancellable: Gio.Cancellable | null): void
5165
5165
 
5166
5166
  // Class property signals of Meta-13.Meta.SoundPlayer
5167
5167
 
@@ -5586,8 +5586,8 @@ interface StartupSequence {
5586
5586
  * @returns the icon name or %NULL.
5587
5587
  */
5588
5588
  get_icon_name(): string | null
5589
- get_id(): string | null
5590
- get_name(): string | null
5589
+ get_id(): string
5590
+ get_name(): string
5591
5591
  get_timestamp(): number
5592
5592
  /**
5593
5593
  * Get the wmclass of the startup sequence.
@@ -5996,7 +5996,7 @@ interface Window extends Gio.Initable {
5996
5996
  * @returns the wrapper object.
5997
5997
  */
5998
5998
  get_compositor_private(): GObject.Object
5999
- get_description(): string | null
5999
+ get_description(): string
6000
6000
  get_display(): Display
6001
6001
  /**
6002
6002
  * Gets a region representing the outer bounds of the window's frame.
@@ -6071,7 +6071,7 @@ interface Window extends Gio.Initable {
6071
6071
  * @returns the pid, or 0 if not known.
6072
6072
  */
6073
6073
  get_pid(): number
6074
- get_role(): string | null
6074
+ get_role(): string
6075
6075
  /**
6076
6076
  * Gets an unique id for a sandboxed app (currently flatpaks and snaps are
6077
6077
  * supported).
@@ -6104,7 +6104,7 @@ interface Window extends Gio.Initable {
6104
6104
  * @returns the matching tiled window or %NULL if it doesn't exist.
6105
6105
  */
6106
6106
  get_tile_match(): Window | null
6107
- get_title(): string | null
6107
+ get_title(): string
6108
6108
  /**
6109
6109
  * Returns the #MetaWindow for the window that is pointed to by the
6110
6110
  * WM_TRANSIENT_FOR hint on this window (see XGetTransientForHint()
@@ -7764,7 +7764,7 @@ interface Group {
7764
7764
  // Owm methods of Meta-13.Meta.Group
7765
7765
 
7766
7766
  get_size(): number
7767
- get_startup_id(): string | null
7767
+ get_startup_id(): string
7768
7768
  list_windows(): Window[]
7769
7769
  update_layers(): void
7770
7770
  }
@@ -7816,7 +7816,7 @@ interface KeyBinding {
7816
7816
 
7817
7817
  get_mask(): number
7818
7818
  get_modifiers(): Clutter.ModifierType
7819
- get_name(): string | null
7819
+ get_name(): string
7820
7820
  is_builtin(): boolean
7821
7821
  is_reversed(): boolean
7822
7822
  }
@@ -7920,27 +7920,27 @@ interface PluginInfo {
7920
7920
  * name of the plugin
7921
7921
  * @field
7922
7922
  */
7923
- name: string | null
7923
+ name: string
7924
7924
  /**
7925
7925
  * version of the plugin
7926
7926
  * @field
7927
7927
  */
7928
- version: string | null
7928
+ version: string
7929
7929
  /**
7930
7930
  * author of the plugin
7931
7931
  * @field
7932
7932
  */
7933
- author: string | null
7933
+ author: string
7934
7934
  /**
7935
7935
  * license of the plugin
7936
7936
  * @field
7937
7937
  */
7938
- license: string | null
7938
+ license: string
7939
7939
  /**
7940
7940
  * description of the plugin
7941
7941
  * @field
7942
7942
  */
7943
- description: string | null
7943
+ description: string
7944
7944
  }
7945
7945
 
7946
7946
  class PluginInfo {
@@ -8001,7 +8001,7 @@ interface SelectionSourceClass {
8001
8001
  activated: (source: SelectionSource) => void
8002
8002
  deactivated: (source: SelectionSource) => void
8003
8003
  get_mimetypes: (source: SelectionSource) => string[]
8004
- read_async: (source: SelectionSource, mimetype: string | null, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
8004
+ read_async: (source: SelectionSource, mimetype: string, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback | null) => void
8005
8005
  read_finish: (source: SelectionSource, result: Gio.AsyncResult) => Gio.InputStream
8006
8006
  }
8007
8007
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/meta-13",
3
- "version": "13.0.0-3.2.6",
3
+ "version": "13.0.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for Meta-13, generated from library version 13.0.0",
5
5
  "type": "module",
6
6
  "module": "meta-13.js",
@@ -25,26 +25,26 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit meta-13.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-13": "^13.0.0-3.2.6",
31
- "@girs/cogl-13": "^13.0.0-3.2.6",
32
- "@girs/coglpango-13": "^13.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/mtk-13": "^13.0.0-3.2.6",
44
- "@girs/pango-1.0": "^1.51.0-3.2.6",
45
- "@girs/pangocairo-1.0": "^1.0.0-3.2.6",
46
- "@girs/xfixes-4.0": "^4.0.0-3.2.6",
47
- "@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-13": "^13.0.0-3.2.7",
31
+ "@girs/cogl-13": "^13.0.0-3.2.7",
32
+ "@girs/coglpango-13": "^13.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/mtk-13": "^13.0.0-3.2.7",
44
+ "@girs/pango-1.0": "^1.51.0-3.2.7",
45
+ "@girs/pangocairo-1.0": "^1.0.0-3.2.7",
46
+ "@girs/xfixes-4.0": "^4.0.0-3.2.7",
47
+ "@girs/xlib-2.0": "^2.0.0-3.2.7"
48
48
  },
49
49
  "devDependencies": {
50
50
  "typescript": "*"