@girs/gtksource-5 5.9.0-3.2.6 → 5.9.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/gtksource-5)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GtkSource-5, generated from library version 5.9.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for GtkSource-5, generated from library version 5.9.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
  GtkSourceView is a GNOME library that extends GtkTextView, the standard GTK+ widget for multiline text editing. GtkSourceView adds support for syntax highlighting, undo/redo, file loading and saving, search and replace, a completion system, printing, displaying line numbers, and other features typical of a source code editor.
11
11
 
package/gtksource-5.d.cts CHANGED
@@ -359,7 +359,7 @@ export function encoding_get_default_candidates(): Encoding[]
359
359
  * @param charset a character set.
360
360
  * @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
361
361
  */
362
- export function encoding_get_from_charset(charset: string | null): Encoding | null
362
+ export function encoding_get_from_charset(charset: string): Encoding | null
363
363
  export function encoding_get_utf8(): Encoding
364
364
  export function file_loader_error_quark(): GLib.Quark
365
365
  export function file_saver_error_quark(): GLib.Quark
@@ -456,7 +456,7 @@ export function scheduler_remove(handler_id: number): void
456
456
  * @param text the text to escape.
457
457
  * @returns the escaped @text.
458
458
  */
459
- export function utils_escape_search_text(text: string | null): string | null
459
+ export function utils_escape_search_text(text: string): string | null
460
460
  /**
461
461
  * Use this function before [method`SearchSettings`.set_search_text], to
462
462
  * unescape the following sequences of characters: `\n`, `\r`, `\t` and `\\`.
@@ -469,7 +469,7 @@ export function utils_escape_search_text(text: string | null): string | null
469
469
  * @param text the text to unescape.
470
470
  * @returns the unescaped @text.
471
471
  */
472
- export function utils_unescape_search_text(text: string | null): string | null
472
+ export function utils_unescape_search_text(text: string): string | null
473
473
  /**
474
474
  * This function is called incrementally to process additional background work.
475
475
  * A deadline is provided which can be checked using [func`GLib`.get_monotonic_time] so
@@ -1358,7 +1358,7 @@ export interface Buffer {
1358
1358
  * @param where location to place the mark.
1359
1359
  * @returns a new [class@Mark], owned by the buffer.
1360
1360
  */
1361
- create_source_mark(name: string | null, category: string | null, where: Gtk.TextIter): Mark
1361
+ create_source_mark(name: string | null, category: string, where: Gtk.TextIter): Mark
1362
1362
  /**
1363
1363
  * Forces buffer to analyze and highlight the given area synchronously.
1364
1364
  *
@@ -1451,7 +1451,7 @@ export interface Buffer {
1451
1451
  * @param context_class the context class.
1452
1452
  * @returns whether we found a context class toggle before @iter
1453
1453
  */
1454
- iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string | null): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
1454
+ iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
1455
1455
  /**
1456
1456
  * Moves forward to the next toggle (on or off) of the context class.
1457
1457
  *
@@ -1465,7 +1465,7 @@ export interface Buffer {
1465
1465
  * @param context_class the context class.
1466
1466
  * @returns whether we found a context class toggle after @iter
1467
1467
  */
1468
- iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string | null): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
1468
+ iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
1469
1469
  /**
1470
1470
  * Check if the class `context_class` is set on `iter`.
1471
1471
  *
@@ -1474,7 +1474,7 @@ export interface Buffer {
1474
1474
  * @param context_class class to search for.
1475
1475
  * @returns whether @iter has the context class.
1476
1476
  */
1477
- iter_has_context_class(iter: Gtk.TextIter, context_class: string | null): boolean
1477
+ iter_has_context_class(iter: Gtk.TextIter, context_class: string): boolean
1478
1478
  /**
1479
1479
  * Joins the lines of text between the specified iterators.
1480
1480
  * @param start a #GtkTextIter.
@@ -2020,7 +2020,7 @@ export class Completion extends GObject.Object {
2020
2020
  * @param casefold_query the typed-text used to highlight `haystack`
2021
2021
  * @returns a #PangoAttrList or %NULL
2022
2022
  */
2023
- static fuzzy_highlight(haystack: string | null, casefold_query: string | null): Pango.AttrList | null
2023
+ static fuzzy_highlight(haystack: string, casefold_query: string): Pango.AttrList | null
2024
2024
  /**
2025
2025
  * This helper function can do a fuzzy match for you giving a haystack and
2026
2026
  * casefolded needle.
@@ -2034,7 +2034,7 @@ export class Completion extends GObject.Object {
2034
2034
  * @param casefold_needle A g_utf8_casefold() version of the needle.
2035
2035
  * @returns %TRUE if @haystack matched @casefold_needle, otherwise %FALSE.
2036
2036
  */
2037
- static fuzzy_match(haystack: string | null, casefold_needle: string | null): [ /* returnType */ boolean, /* priority */ number ]
2037
+ static fuzzy_match(haystack: string | null, casefold_needle: string): [ /* returnType */ boolean, /* priority */ number ]
2038
2038
  }
2039
2039
 
2040
2040
  export module CompletionCell {
@@ -2073,15 +2073,15 @@ export interface CompletionCell extends Gtk.Accessible, Gtk.Buildable, Gtk.Const
2073
2073
  */
2074
2074
  get_widget(): Gtk.Widget | null
2075
2075
  set_gicon(gicon: Gio.Icon): void
2076
- set_icon_name(icon_name: string | null): void
2077
- set_markup(markup: string | null): void
2076
+ set_icon_name(icon_name: string): void
2077
+ set_markup(markup: string): void
2078
2078
  set_paintable(paintable: Gdk.Paintable): void
2079
2079
  /**
2080
2080
  * Sets the text for the column cell. Use %NULL to unset.
2081
2081
  * @param text the text to set or %NULL
2082
2082
  */
2083
2083
  set_text(text: string | null): void
2084
- set_text_with_attributes(text: string | null, attrs: Pango.AttrList): void
2084
+ set_text_with_attributes(text: string, attrs: Pango.AttrList): void
2085
2085
  set_widget(child: Gtk.Widget): void
2086
2086
 
2087
2087
  // Class property signals of GtkSource-5.GtkSource.CompletionCell
@@ -3474,7 +3474,7 @@ export interface GutterLines {
3474
3474
  * @param line a line number starting from zero
3475
3475
  * @param name a class name
3476
3476
  */
3477
- add_class(line: number, name: string | null): void
3477
+ add_class(line: number, name: string): void
3478
3478
  /**
3479
3479
  * Adds the class denoted by `qname` to `line`.
3480
3480
  *
@@ -3541,7 +3541,7 @@ export interface GutterLines {
3541
3541
  * @param name a class name that may be converted, to a #GQuark
3542
3542
  * @returns %TRUE if @line contains @name
3543
3543
  */
3544
- has_class(line: number, name: string | null): boolean
3544
+ has_class(line: number, name: string): boolean
3545
3545
  /**
3546
3546
  * Checks to see if [method`GutterLines`.add_qclass] was called with
3547
3547
  * the quark denoted by `qname` for `line`.
@@ -3579,7 +3579,7 @@ export interface GutterLines {
3579
3579
  * @param line a line number starting from zero
3580
3580
  * @param name a class name
3581
3581
  */
3582
- remove_class(line: number, name: string | null): void
3582
+ remove_class(line: number, name: string): void
3583
3583
  /**
3584
3584
  * Reverses a call to [method`GutterLines`.add_qclass] by removing
3585
3585
  * the [alias`GLib`.Quark] matching `qname`.
@@ -4155,7 +4155,7 @@ export interface GutterRendererPixbuf extends Gtk.Accessible, Gtk.Buildable, Gtk
4155
4155
  * @returns a #GIcon
4156
4156
  */
4157
4157
  get_gicon(): Gio.Icon
4158
- get_icon_name(): string | null
4158
+ get_icon_name(): string
4159
4159
  /**
4160
4160
  * Gets a [iface`Gdk`.Paintable] that was set with
4161
4161
  * [method`GutterRendererPixbuf`.set_paintable]
@@ -4441,7 +4441,7 @@ export interface GutterRendererText extends Gtk.Accessible, Gtk.Buildable, Gtk.C
4441
4441
  * #GtkSourceGutterRendererText.
4442
4442
  * @param text the text to measure.
4443
4443
  */
4444
- measure(text: string | null): [ /* width */ number, /* height */ number ]
4444
+ measure(text: string): [ /* width */ number, /* height */ number ]
4445
4445
 
4446
4446
  // Overloads of measure
4447
4447
 
@@ -4463,9 +4463,9 @@ export interface GutterRendererText extends Gtk.Accessible, Gtk.Buildable, Gtk.C
4463
4463
  * #GtkSourceGutterRendererText.
4464
4464
  * @param markup the pango markup to measure.
4465
4465
  */
4466
- measure_markup(markup: string | null): [ /* width */ number, /* height */ number ]
4467
- set_markup(markup: string | null, length: number): void
4468
- set_text(text: string | null, length: number): void
4466
+ measure_markup(markup: string): [ /* width */ number, /* height */ number ]
4467
+ set_markup(markup: string, length: number): void
4468
+ set_text(text: string, length: number): void
4469
4469
 
4470
4470
  // Conflicting methods
4471
4471
 
@@ -5053,8 +5053,8 @@ export interface Language {
5053
5053
  * and should not be freed or modified.
5054
5054
  * @returns the ID of @language.
5055
5055
  */
5056
- get_id(): string | null
5057
- get_metadata(name: string | null): string | null
5056
+ get_id(): string
5057
+ get_metadata(name: string): string | null
5058
5058
  /**
5059
5059
  * Returns the mime types associated to this language.
5060
5060
  *
@@ -5071,7 +5071,7 @@ export interface Language {
5071
5071
  * or modified.
5072
5072
  * @returns the name of @language.
5073
5073
  */
5074
- get_name(): string | null
5074
+ get_name(): string
5075
5075
  /**
5076
5076
  * Returns the localized section of the language.
5077
5077
  *
@@ -5081,14 +5081,14 @@ export interface Language {
5081
5081
  * or modified.
5082
5082
  * @returns the section of @language.
5083
5083
  */
5084
- get_section(): string | null
5084
+ get_section(): string
5085
5085
  /**
5086
5086
  * Returns the ID of the style to use if the specified `style_id`
5087
5087
  * is not present in the current style scheme.
5088
5088
  * @param style_id a style ID.
5089
5089
  * @returns the ID of the style to use if the specified @style_id is not present in the current style scheme or %NULL if the style has no fallback defined. The returned string is owned by the @language and must not be modified.
5090
5090
  */
5091
- get_style_fallback(style_id: string | null): string | null
5091
+ get_style_fallback(style_id: string): string | null
5092
5092
  /**
5093
5093
  * Returns the ids of the styles defined by this `language`.
5094
5094
  * @returns a newly-allocated %NULL terminated array containing ids of the styles defined by this @language or %NULL if no style is defined. The returned array must be freed with g_strfreev().
@@ -5099,7 +5099,7 @@ export interface Language {
5099
5099
  * @param style_id a style ID.
5100
5100
  * @returns the name of the style with ID @style_id defined by this @language or %NULL if the style has no name or there is no style with ID @style_id defined by this @language. The returned string is owned by the @language and must not be modified.
5101
5101
  */
5102
- get_style_name(style_id: string | null): string | null
5102
+ get_style_name(style_id: string): string | null
5103
5103
 
5104
5104
  // Class property signals of GtkSource-5.GtkSource.Language
5105
5105
 
@@ -5176,14 +5176,14 @@ export interface LanguageManager {
5176
5176
  * See [method`LanguageManager`.set_search_path] for details.
5177
5177
  * @param path a directory or a filename.
5178
5178
  */
5179
- append_search_path(path: string | null): void
5179
+ append_search_path(path: string): void
5180
5180
  /**
5181
5181
  * Gets the [class`Language]` identified by the given `id` in the language
5182
5182
  * manager.
5183
5183
  * @param id a language id.
5184
5184
  * @returns a #GtkSourceLanguage, or %NULL if there is no language identified by the given @id. Return value is owned by @lm and should not be freed.
5185
5185
  */
5186
- get_language(id: string | null): Language | null
5186
+ get_language(id: string): Language | null
5187
5187
  /**
5188
5188
  * Returns the ids of the available languages.
5189
5189
  * @returns a %NULL-terminated array of strings containing the ids of the available languages or %NULL if no language is available. The array is sorted alphabetically according to the language name. The array is owned by @lm and must not be modified.
@@ -5244,7 +5244,7 @@ export interface LanguageManager {
5244
5244
  * See [method`LanguageManager`.set_search_path] for details.
5245
5245
  * @param path a directory or a filename.
5246
5246
  */
5247
- prepend_search_path(path: string | null): void
5247
+ prepend_search_path(path: string): void
5248
5248
  /**
5249
5249
  * Sets the list of directories where the `lm` looks for
5250
5250
  * language files.
@@ -5741,7 +5741,7 @@ export interface Mark {
5741
5741
  * Returns the mark category.
5742
5742
  * @returns the category of the #GtkSourceMark.
5743
5743
  */
5744
- get_category(): string | null
5744
+ get_category(): string
5745
5745
  /**
5746
5746
  * Returns the next `GtkSourceMark` in the buffer or %NULL if the mark
5747
5747
  * was not added to a buffer.
@@ -5821,7 +5821,7 @@ export class Mark extends Gtk.TextMark {
5821
5821
  * @param category is used to classify marks according to common characteristics (e.g. all the marks representing a bookmark could belong to the "bookmark" category, or all the marks representing a compilation error could belong to "error" category).
5822
5822
  * @returns a new #GtkSourceMark that can be added using [method@Gtk.TextBuffer.add_mark].
5823
5823
  */
5824
- constructor(name: string | null, category: string | null)
5824
+ constructor(name: string | null, category: string)
5825
5825
  /**
5826
5826
  * Creates a text mark.
5827
5827
  *
@@ -5835,7 +5835,7 @@ export class Mark extends Gtk.TextMark {
5835
5835
  * @param category is used to classify marks according to common characteristics (e.g. all the marks representing a bookmark could belong to the "bookmark" category, or all the marks representing a compilation error could belong to "error" category).
5836
5836
  * @returns a new #GtkSourceMark that can be added using [method@Gtk.TextBuffer.add_mark].
5837
5837
  */
5838
- static new(name: string | null, category: string | null): Mark
5838
+ static new(name: string | null, category: string): Mark
5839
5839
 
5840
5840
  // Overloads of new
5841
5841
 
@@ -5954,7 +5954,7 @@ export interface MarkAttributes {
5954
5954
  * Note that the icon name can be %NULL if it wasn't set earlier.
5955
5955
  * @returns An icon name. The string belongs to @attributes and should not be freed.
5956
5956
  */
5957
- get_icon_name(): string | null
5957
+ get_icon_name(): string
5958
5958
  /**
5959
5959
  * Gets a [class`GdkPixbuf`.Pixbuf] to be used as a base for rendered icon.
5960
5960
  *
@@ -6007,7 +6007,7 @@ export interface MarkAttributes {
6007
6007
  * Sets a name of an icon to be used as a base for rendered icon.
6008
6008
  * @param icon_name name of an icon to be used.
6009
6009
  */
6010
- set_icon_name(icon_name: string | null): void
6010
+ set_icon_name(icon_name: string): void
6011
6011
  /**
6012
6012
  * Sets a pixbuf to be used as a base for rendered icon.
6013
6013
  * @param pixbuf a #GdkPixbuf to be used.
@@ -6773,7 +6773,7 @@ export interface PrintCompositor {
6773
6773
  * [method`PrintCompositor`.paginate] function.
6774
6774
  * @param font_name the name of the default font for the body text.
6775
6775
  */
6776
- set_body_font_name(font_name: string | null): void
6776
+ set_body_font_name(font_name: string): void
6777
6777
  /**
6778
6778
  * Sets the bottom margin used by `compositor`.
6779
6779
  * @param margin the new bottom margin in units of `unit`.
@@ -7485,7 +7485,7 @@ export interface SearchContext {
7485
7485
  * @param replace_length the length of `replace` in bytes, or -1.
7486
7486
  * @returns whether the match has been replaced.
7487
7487
  */
7488
- replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string | null, replace_length: number): boolean
7488
+ replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean
7489
7489
  /**
7490
7490
  * Replaces all search matches by another text.
7491
7491
  *
@@ -7498,7 +7498,7 @@ export interface SearchContext {
7498
7498
  * @param replace_length the length of `replace` in bytes, or -1.
7499
7499
  * @returns the number of replaced matches.
7500
7500
  */
7501
- replace_all(replace: string | null, replace_length: number): number
7501
+ replace_all(replace: string, replace_length: number): number
7502
7502
  /**
7503
7503
  * Enables or disables the search occurrences highlighting.
7504
7504
  * @param highlight the setting.
@@ -7932,7 +7932,7 @@ export interface Snippet {
7932
7932
  /**
7933
7933
  * Gets the description for the snippet.
7934
7934
  */
7935
- get_description(): string | null
7935
+ get_description(): string
7936
7936
  /**
7937
7937
  * Gets the current focus for the snippet.
7938
7938
  *
@@ -7947,7 +7947,7 @@ export interface Snippet {
7947
7947
  * source language [property`Language:`id] property.
7948
7948
  * @returns the language identifier
7949
7949
  */
7950
- get_language_id(): string | null
7950
+ get_language_id(): string
7951
7951
  /**
7952
7952
  * Gets the number of chunks in the snippet.
7953
7953
  *
@@ -7958,7 +7958,7 @@ export interface Snippet {
7958
7958
  /**
7959
7959
  * Gets the name for the snippet.
7960
7960
  */
7961
- get_name(): string | null
7961
+ get_name(): string
7962
7962
  /**
7963
7963
  * Gets the chunk at `nth`.
7964
7964
  * @param nth the nth chunk to get
@@ -7977,24 +7977,24 @@ export interface Snippet {
7977
7977
  * Sets the description for the snippet.
7978
7978
  * @param description the snippet description
7979
7979
  */
7980
- set_description(description: string | null): void
7980
+ set_description(description: string): void
7981
7981
  /**
7982
7982
  * Sets the language identifier for the snippet.
7983
7983
  *
7984
7984
  * This should match the [property`Language:`id] identifier.
7985
7985
  * @param language_id the language identifier for the snippet
7986
7986
  */
7987
- set_language_id(language_id: string | null): void
7987
+ set_language_id(language_id: string): void
7988
7988
  /**
7989
7989
  * Sets the name for the snippet.
7990
7990
  * @param name the snippet name
7991
7991
  */
7992
- set_name(name: string | null): void
7992
+ set_name(name: string): void
7993
7993
  /**
7994
7994
  * Sets the trigger for the snippet.
7995
7995
  * @param trigger the trigger word
7996
7996
  */
7997
- set_trigger(trigger: string | null): void
7997
+ set_trigger(trigger: string): void
7998
7998
 
7999
7999
  // Class property signals of GtkSource-5.GtkSource.Snippet
8000
8000
 
@@ -8070,7 +8070,7 @@ export class Snippet extends GObject.Object {
8070
8070
  * @param text the formatted snippet text to parse
8071
8071
  * @returns the newly parsed #GtkSourceSnippet, or %NULL upon failure and @error is set.
8072
8072
  */
8073
- static new_parsed(text: string | null): Snippet
8073
+ static new_parsed(text: string): Snippet
8074
8074
  _init(config?: Snippet.ConstructorProperties): void
8075
8075
  }
8076
8076
 
@@ -8152,14 +8152,14 @@ export interface SnippetChunk {
8152
8152
  * returned.
8153
8153
  * @returns the text of the chunk
8154
8154
  */
8155
- get_text(): string | null
8155
+ get_text(): string
8156
8156
  /**
8157
8157
  * Gets the [property`SnippetChunk:`text-set] property.
8158
8158
  *
8159
8159
  * This is typically set when the user has edited a snippet chunk.
8160
8160
  */
8161
8161
  get_text_set(): boolean
8162
- get_tooltip_text(): string | null
8162
+ get_tooltip_text(): string
8163
8163
  set_context(context: SnippetContext): void
8164
8164
  /**
8165
8165
  * Sets the [property`SnippetChunk:`focus-position] property.
@@ -8183,7 +8183,7 @@ export interface SnippetChunk {
8183
8183
  * are updated.
8184
8184
  * @param spec the new specification for the chunk
8185
8185
  */
8186
- set_spec(spec: string | null): void
8186
+ set_spec(spec: string): void
8187
8187
  /**
8188
8188
  * Sets the text for the snippet chunk.
8189
8189
  *
@@ -8192,7 +8192,7 @@ export interface SnippetChunk {
8192
8192
  * specification.
8193
8193
  * @param text the text of the property
8194
8194
  */
8195
- set_text(text: string | null): void
8195
+ set_text(text: string): void
8196
8196
  /**
8197
8197
  * Sets the [property`SnippetChunk:`text-set] property.
8198
8198
  *
@@ -8201,7 +8201,7 @@ export interface SnippetChunk {
8201
8201
  * @param text_set the property value
8202
8202
  */
8203
8203
  set_text_set(text_set: boolean): void
8204
- set_tooltip_text(tooltip_text: string | null): void
8204
+ set_tooltip_text(tooltip_text: string): void
8205
8205
 
8206
8206
  // Class property signals of GtkSource-5.GtkSource.SnippetChunk
8207
8207
 
@@ -8290,13 +8290,13 @@ export interface SnippetContext {
8290
8290
  * Removes all variables from the context.
8291
8291
  */
8292
8292
  clear_variables(): void
8293
- expand(input: string | null): string | null
8293
+ expand(input: string): string | null
8294
8294
  /**
8295
8295
  * Gets the current value for a variable named `key`.
8296
8296
  * @param key the name of the variable
8297
8297
  * @returns the value for the variable, or %NULL
8298
8298
  */
8299
- get_variable(key: string | null): string | null
8299
+ get_variable(key: string): string | null
8300
8300
  /**
8301
8301
  * Sets a constatnt within the context.
8302
8302
  *
@@ -8307,8 +8307,8 @@ export interface SnippetContext {
8307
8307
  * @param key the constant name
8308
8308
  * @param value the value of the constant
8309
8309
  */
8310
- set_constant(key: string | null, value: string | null): void
8311
- set_line_prefix(line_prefix: string | null): void
8310
+ set_constant(key: string, value: string): void
8311
+ set_line_prefix(line_prefix: string): void
8312
8312
  set_tab_width(tab_width: number): void
8313
8313
  set_use_spaces(use_spaces: boolean): void
8314
8314
  /**
@@ -8319,7 +8319,7 @@ export interface SnippetContext {
8319
8319
  * @param key the variable name
8320
8320
  * @param value the value for the variable
8321
8321
  */
8322
- set_variable(key: string | null, value: string | null): void
8322
+ set_variable(key: string, value: string): void
8323
8323
 
8324
8324
  // Own signals of GtkSource-5.GtkSource.SnippetContext
8325
8325
 
@@ -8428,7 +8428,7 @@ export interface SnippetManager {
8428
8428
  * @param trigger the trigger for the snippet
8429
8429
  * @returns a #GtkSourceSnippet or %NULL if no matching snippet was found.
8430
8430
  */
8431
- get_snippet(group: string | null, language_id: string | null, trigger: string | null): Snippet | null
8431
+ get_snippet(group: string | null, language_id: string | null, trigger: string): Snippet | null
8432
8432
  /**
8433
8433
  * Gets a [iface`Gio`.ListModel] of all snippets.
8434
8434
  *
@@ -8598,7 +8598,7 @@ export interface SpaceDrawer {
8598
8598
  * @param key the `settings` key to bind.
8599
8599
  * @param flags flags for the binding.
8600
8600
  */
8601
- bind_matrix_setting(settings: Gio.Settings, key: string | null, flags: Gio.SettingsBindFlags): void
8601
+ bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void
8602
8602
  get_enable_matrix(): boolean
8603
8603
  /**
8604
8604
  * Gets the value of the [property`SpaceDrawer:`matrix] property, as a [struct`GLib`.Variant].
@@ -8975,15 +8975,15 @@ export interface StyleScheme {
8975
8975
  get_authors(): string[] | null
8976
8976
  get_description(): string | null
8977
8977
  get_filename(): string | null
8978
- get_id(): string | null
8978
+ get_id(): string
8979
8979
  /**
8980
8980
  * Gets a metadata property from the style scheme.
8981
8981
  * @param name metadata property name.
8982
8982
  * @returns value of property @name stored in the metadata of @scheme or %NULL if @scheme does not contain the specified metadata property.
8983
8983
  */
8984
- get_metadata(name: string | null): string | null
8985
- get_name(): string | null
8986
- get_style(style_id: string | null): Style | null
8984
+ get_metadata(name: string): string | null
8985
+ get_name(): string
8986
+ get_style(style_id: string): Style | null
8987
8987
 
8988
8988
  // Class property signals of GtkSource-5.GtkSource.StyleScheme
8989
8989
 
@@ -9427,7 +9427,7 @@ export interface StyleSchemeManager {
9427
9427
  * See [method`StyleSchemeManager`.set_search_path] for details.
9428
9428
  * @param path a directory or a filename.
9429
9429
  */
9430
- append_search_path(path: string | null): void
9430
+ append_search_path(path: string): void
9431
9431
  /**
9432
9432
  * Mark any currently cached information about the available style schems
9433
9433
  * as invalid.
@@ -9440,7 +9440,7 @@ export interface StyleSchemeManager {
9440
9440
  * @param scheme_id style scheme id to find.
9441
9441
  * @returns a #GtkSourceStyleScheme object. The returned value is owned by @manager and must not be unref'ed.
9442
9442
  */
9443
- get_scheme(scheme_id: string | null): StyleScheme | null
9443
+ get_scheme(scheme_id: string): StyleScheme | null
9444
9444
  /**
9445
9445
  * Returns the ids of the available style schemes.
9446
9446
  * @returns a %NULL-terminated array of strings containing the ids of the available style schemes or %NULL if no style scheme is available. The array is sorted alphabetically according to the scheme name. The array is owned by the @manager and must not be modified.
@@ -9460,7 +9460,7 @@ export interface StyleSchemeManager {
9460
9460
  * See [method`StyleSchemeManager`.set_search_path] for details.
9461
9461
  * @param path a directory or a filename.
9462
9462
  */
9463
- prepend_search_path(path: string | null): void
9463
+ prepend_search_path(path: string): void
9464
9464
  /**
9465
9465
  * Sets the list of directories where the `manager` looks for
9466
9466
  * style scheme files.
@@ -10555,7 +10555,7 @@ export interface View extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarge
10555
10555
  * @param priority place where priority of the category will be stored.
10556
10556
  * @returns #GtkSourceMarkAttributes for the @category. The object belongs to @view, so it must not be unreffed.
10557
10557
  */
10558
- get_mark_attributes(category: string | null, priority: number): MarkAttributes
10558
+ get_mark_attributes(category: string, priority: number): MarkAttributes
10559
10559
  /**
10560
10560
  * Gets the position of the right margin in the given `view`.
10561
10561
  * @returns the position of the right margin.
@@ -10715,7 +10715,7 @@ export interface View extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarge
10715
10715
  * @param attributes mark attributes.
10716
10716
  * @param priority priority of the category.
10717
10717
  */
10718
- set_mark_attributes(category: string | null, attributes: MarkAttributes, priority: number): void
10718
+ set_mark_attributes(category: string, attributes: MarkAttributes, priority: number): void
10719
10719
  /**
10720
10720
  * Sets the position of the right margin in the given `view`.
10721
10721
  * @param pos the width in characters where to position the right margin.
@@ -11235,17 +11235,17 @@ export interface VimIMContext {
11235
11235
  * [signal`VimIMContext:`:execute-command] signal.
11236
11236
  * @param command the command text
11237
11237
  */
11238
- execute_command(command: string | null): void
11238
+ execute_command(command: string): void
11239
11239
  /**
11240
11240
  * Gets the current command-bar text as it is entered by the user.
11241
11241
  * @returns A string containing the command-bar text
11242
11242
  */
11243
- get_command_bar_text(): string | null
11243
+ get_command_bar_text(): string
11244
11244
  /**
11245
11245
  * Gets the current command text as it is entered by the user.
11246
11246
  * @returns A string containing the command text
11247
11247
  */
11248
- get_command_text(): string | null
11248
+ get_command_text(): string
11249
11249
 
11250
11250
  // Own signals of GtkSource-5.GtkSource.VimIMContext
11251
11251
 
@@ -11488,12 +11488,12 @@ export interface Encoding {
11488
11488
  * "ISO-8859-1".
11489
11489
  * @returns the character set of the #GtkSourceEncoding.
11490
11490
  */
11491
- get_charset(): string | null
11491
+ get_charset(): string
11492
11492
  /**
11493
11493
  * Gets the name of the #GtkSourceEncoding such as "Unicode" or "Western".
11494
11494
  * @returns the name of the #GtkSourceEncoding.
11495
11495
  */
11496
- get_name(): string | null
11496
+ get_name(): string
11497
11497
  to_string(): string | null
11498
11498
  }
11499
11499
 
@@ -11542,7 +11542,7 @@ export class Encoding {
11542
11542
  * @param charset a character set.
11543
11543
  * @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
11544
11544
  */
11545
- static get_from_charset(charset: string | null): Encoding | null
11545
+ static get_from_charset(charset: string): Encoding | null
11546
11546
  static get_utf8(): Encoding
11547
11547
  }
11548
11548
 
package/gtksource-5.d.ts CHANGED
@@ -361,7 +361,7 @@ function encoding_get_default_candidates(): Encoding[]
361
361
  * @param charset a character set.
362
362
  * @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
363
363
  */
364
- function encoding_get_from_charset(charset: string | null): Encoding | null
364
+ function encoding_get_from_charset(charset: string): Encoding | null
365
365
  function encoding_get_utf8(): Encoding
366
366
  function file_loader_error_quark(): GLib.Quark
367
367
  function file_saver_error_quark(): GLib.Quark
@@ -458,7 +458,7 @@ function scheduler_remove(handler_id: number): void
458
458
  * @param text the text to escape.
459
459
  * @returns the escaped @text.
460
460
  */
461
- function utils_escape_search_text(text: string | null): string | null
461
+ function utils_escape_search_text(text: string): string | null
462
462
  /**
463
463
  * Use this function before [method`SearchSettings`.set_search_text], to
464
464
  * unescape the following sequences of characters: `\n`, `\r`, `\t` and `\\`.
@@ -471,7 +471,7 @@ function utils_escape_search_text(text: string | null): string | null
471
471
  * @param text the text to unescape.
472
472
  * @returns the unescaped @text.
473
473
  */
474
- function utils_unescape_search_text(text: string | null): string | null
474
+ function utils_unescape_search_text(text: string): string | null
475
475
  /**
476
476
  * This function is called incrementally to process additional background work.
477
477
  * A deadline is provided which can be checked using [func`GLib`.get_monotonic_time] so
@@ -1360,7 +1360,7 @@ interface Buffer {
1360
1360
  * @param where location to place the mark.
1361
1361
  * @returns a new [class@Mark], owned by the buffer.
1362
1362
  */
1363
- create_source_mark(name: string | null, category: string | null, where: Gtk.TextIter): Mark
1363
+ create_source_mark(name: string | null, category: string, where: Gtk.TextIter): Mark
1364
1364
  /**
1365
1365
  * Forces buffer to analyze and highlight the given area synchronously.
1366
1366
  *
@@ -1453,7 +1453,7 @@ interface Buffer {
1453
1453
  * @param context_class the context class.
1454
1454
  * @returns whether we found a context class toggle before @iter
1455
1455
  */
1456
- iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string | null): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
1456
+ iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
1457
1457
  /**
1458
1458
  * Moves forward to the next toggle (on or off) of the context class.
1459
1459
  *
@@ -1467,7 +1467,7 @@ interface Buffer {
1467
1467
  * @param context_class the context class.
1468
1468
  * @returns whether we found a context class toggle after @iter
1469
1469
  */
1470
- iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string | null): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
1470
+ iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
1471
1471
  /**
1472
1472
  * Check if the class `context_class` is set on `iter`.
1473
1473
  *
@@ -1476,7 +1476,7 @@ interface Buffer {
1476
1476
  * @param context_class class to search for.
1477
1477
  * @returns whether @iter has the context class.
1478
1478
  */
1479
- iter_has_context_class(iter: Gtk.TextIter, context_class: string | null): boolean
1479
+ iter_has_context_class(iter: Gtk.TextIter, context_class: string): boolean
1480
1480
  /**
1481
1481
  * Joins the lines of text between the specified iterators.
1482
1482
  * @param start a #GtkTextIter.
@@ -2022,7 +2022,7 @@ class Completion extends GObject.Object {
2022
2022
  * @param casefold_query the typed-text used to highlight `haystack`
2023
2023
  * @returns a #PangoAttrList or %NULL
2024
2024
  */
2025
- static fuzzy_highlight(haystack: string | null, casefold_query: string | null): Pango.AttrList | null
2025
+ static fuzzy_highlight(haystack: string, casefold_query: string): Pango.AttrList | null
2026
2026
  /**
2027
2027
  * This helper function can do a fuzzy match for you giving a haystack and
2028
2028
  * casefolded needle.
@@ -2036,7 +2036,7 @@ class Completion extends GObject.Object {
2036
2036
  * @param casefold_needle A g_utf8_casefold() version of the needle.
2037
2037
  * @returns %TRUE if @haystack matched @casefold_needle, otherwise %FALSE.
2038
2038
  */
2039
- static fuzzy_match(haystack: string | null, casefold_needle: string | null): [ /* returnType */ boolean, /* priority */ number ]
2039
+ static fuzzy_match(haystack: string | null, casefold_needle: string): [ /* returnType */ boolean, /* priority */ number ]
2040
2040
  }
2041
2041
 
2042
2042
  module CompletionCell {
@@ -2075,15 +2075,15 @@ interface CompletionCell extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTa
2075
2075
  */
2076
2076
  get_widget(): Gtk.Widget | null
2077
2077
  set_gicon(gicon: Gio.Icon): void
2078
- set_icon_name(icon_name: string | null): void
2079
- set_markup(markup: string | null): void
2078
+ set_icon_name(icon_name: string): void
2079
+ set_markup(markup: string): void
2080
2080
  set_paintable(paintable: Gdk.Paintable): void
2081
2081
  /**
2082
2082
  * Sets the text for the column cell. Use %NULL to unset.
2083
2083
  * @param text the text to set or %NULL
2084
2084
  */
2085
2085
  set_text(text: string | null): void
2086
- set_text_with_attributes(text: string | null, attrs: Pango.AttrList): void
2086
+ set_text_with_attributes(text: string, attrs: Pango.AttrList): void
2087
2087
  set_widget(child: Gtk.Widget): void
2088
2088
 
2089
2089
  // Class property signals of GtkSource-5.GtkSource.CompletionCell
@@ -3476,7 +3476,7 @@ interface GutterLines {
3476
3476
  * @param line a line number starting from zero
3477
3477
  * @param name a class name
3478
3478
  */
3479
- add_class(line: number, name: string | null): void
3479
+ add_class(line: number, name: string): void
3480
3480
  /**
3481
3481
  * Adds the class denoted by `qname` to `line`.
3482
3482
  *
@@ -3543,7 +3543,7 @@ interface GutterLines {
3543
3543
  * @param name a class name that may be converted, to a #GQuark
3544
3544
  * @returns %TRUE if @line contains @name
3545
3545
  */
3546
- has_class(line: number, name: string | null): boolean
3546
+ has_class(line: number, name: string): boolean
3547
3547
  /**
3548
3548
  * Checks to see if [method`GutterLines`.add_qclass] was called with
3549
3549
  * the quark denoted by `qname` for `line`.
@@ -3581,7 +3581,7 @@ interface GutterLines {
3581
3581
  * @param line a line number starting from zero
3582
3582
  * @param name a class name
3583
3583
  */
3584
- remove_class(line: number, name: string | null): void
3584
+ remove_class(line: number, name: string): void
3585
3585
  /**
3586
3586
  * Reverses a call to [method`GutterLines`.add_qclass] by removing
3587
3587
  * the [alias`GLib`.Quark] matching `qname`.
@@ -4157,7 +4157,7 @@ interface GutterRendererPixbuf extends Gtk.Accessible, Gtk.Buildable, Gtk.Constr
4157
4157
  * @returns a #GIcon
4158
4158
  */
4159
4159
  get_gicon(): Gio.Icon
4160
- get_icon_name(): string | null
4160
+ get_icon_name(): string
4161
4161
  /**
4162
4162
  * Gets a [iface`Gdk`.Paintable] that was set with
4163
4163
  * [method`GutterRendererPixbuf`.set_paintable]
@@ -4443,7 +4443,7 @@ interface GutterRendererText extends Gtk.Accessible, Gtk.Buildable, Gtk.Constrai
4443
4443
  * #GtkSourceGutterRendererText.
4444
4444
  * @param text the text to measure.
4445
4445
  */
4446
- measure(text: string | null): [ /* width */ number, /* height */ number ]
4446
+ measure(text: string): [ /* width */ number, /* height */ number ]
4447
4447
 
4448
4448
  // Overloads of measure
4449
4449
 
@@ -4465,9 +4465,9 @@ interface GutterRendererText extends Gtk.Accessible, Gtk.Buildable, Gtk.Constrai
4465
4465
  * #GtkSourceGutterRendererText.
4466
4466
  * @param markup the pango markup to measure.
4467
4467
  */
4468
- measure_markup(markup: string | null): [ /* width */ number, /* height */ number ]
4469
- set_markup(markup: string | null, length: number): void
4470
- set_text(text: string | null, length: number): void
4468
+ measure_markup(markup: string): [ /* width */ number, /* height */ number ]
4469
+ set_markup(markup: string, length: number): void
4470
+ set_text(text: string, length: number): void
4471
4471
 
4472
4472
  // Conflicting methods
4473
4473
 
@@ -5055,8 +5055,8 @@ interface Language {
5055
5055
  * and should not be freed or modified.
5056
5056
  * @returns the ID of @language.
5057
5057
  */
5058
- get_id(): string | null
5059
- get_metadata(name: string | null): string | null
5058
+ get_id(): string
5059
+ get_metadata(name: string): string | null
5060
5060
  /**
5061
5061
  * Returns the mime types associated to this language.
5062
5062
  *
@@ -5073,7 +5073,7 @@ interface Language {
5073
5073
  * or modified.
5074
5074
  * @returns the name of @language.
5075
5075
  */
5076
- get_name(): string | null
5076
+ get_name(): string
5077
5077
  /**
5078
5078
  * Returns the localized section of the language.
5079
5079
  *
@@ -5083,14 +5083,14 @@ interface Language {
5083
5083
  * or modified.
5084
5084
  * @returns the section of @language.
5085
5085
  */
5086
- get_section(): string | null
5086
+ get_section(): string
5087
5087
  /**
5088
5088
  * Returns the ID of the style to use if the specified `style_id`
5089
5089
  * is not present in the current style scheme.
5090
5090
  * @param style_id a style ID.
5091
5091
  * @returns the ID of the style to use if the specified @style_id is not present in the current style scheme or %NULL if the style has no fallback defined. The returned string is owned by the @language and must not be modified.
5092
5092
  */
5093
- get_style_fallback(style_id: string | null): string | null
5093
+ get_style_fallback(style_id: string): string | null
5094
5094
  /**
5095
5095
  * Returns the ids of the styles defined by this `language`.
5096
5096
  * @returns a newly-allocated %NULL terminated array containing ids of the styles defined by this @language or %NULL if no style is defined. The returned array must be freed with g_strfreev().
@@ -5101,7 +5101,7 @@ interface Language {
5101
5101
  * @param style_id a style ID.
5102
5102
  * @returns the name of the style with ID @style_id defined by this @language or %NULL if the style has no name or there is no style with ID @style_id defined by this @language. The returned string is owned by the @language and must not be modified.
5103
5103
  */
5104
- get_style_name(style_id: string | null): string | null
5104
+ get_style_name(style_id: string): string | null
5105
5105
 
5106
5106
  // Class property signals of GtkSource-5.GtkSource.Language
5107
5107
 
@@ -5178,14 +5178,14 @@ interface LanguageManager {
5178
5178
  * See [method`LanguageManager`.set_search_path] for details.
5179
5179
  * @param path a directory or a filename.
5180
5180
  */
5181
- append_search_path(path: string | null): void
5181
+ append_search_path(path: string): void
5182
5182
  /**
5183
5183
  * Gets the [class`Language]` identified by the given `id` in the language
5184
5184
  * manager.
5185
5185
  * @param id a language id.
5186
5186
  * @returns a #GtkSourceLanguage, or %NULL if there is no language identified by the given @id. Return value is owned by @lm and should not be freed.
5187
5187
  */
5188
- get_language(id: string | null): Language | null
5188
+ get_language(id: string): Language | null
5189
5189
  /**
5190
5190
  * Returns the ids of the available languages.
5191
5191
  * @returns a %NULL-terminated array of strings containing the ids of the available languages or %NULL if no language is available. The array is sorted alphabetically according to the language name. The array is owned by @lm and must not be modified.
@@ -5246,7 +5246,7 @@ interface LanguageManager {
5246
5246
  * See [method`LanguageManager`.set_search_path] for details.
5247
5247
  * @param path a directory or a filename.
5248
5248
  */
5249
- prepend_search_path(path: string | null): void
5249
+ prepend_search_path(path: string): void
5250
5250
  /**
5251
5251
  * Sets the list of directories where the `lm` looks for
5252
5252
  * language files.
@@ -5743,7 +5743,7 @@ interface Mark {
5743
5743
  * Returns the mark category.
5744
5744
  * @returns the category of the #GtkSourceMark.
5745
5745
  */
5746
- get_category(): string | null
5746
+ get_category(): string
5747
5747
  /**
5748
5748
  * Returns the next `GtkSourceMark` in the buffer or %NULL if the mark
5749
5749
  * was not added to a buffer.
@@ -5823,7 +5823,7 @@ class Mark extends Gtk.TextMark {
5823
5823
  * @param category is used to classify marks according to common characteristics (e.g. all the marks representing a bookmark could belong to the "bookmark" category, or all the marks representing a compilation error could belong to "error" category).
5824
5824
  * @returns a new #GtkSourceMark that can be added using [method@Gtk.TextBuffer.add_mark].
5825
5825
  */
5826
- constructor(name: string | null, category: string | null)
5826
+ constructor(name: string | null, category: string)
5827
5827
  /**
5828
5828
  * Creates a text mark.
5829
5829
  *
@@ -5837,7 +5837,7 @@ class Mark extends Gtk.TextMark {
5837
5837
  * @param category is used to classify marks according to common characteristics (e.g. all the marks representing a bookmark could belong to the "bookmark" category, or all the marks representing a compilation error could belong to "error" category).
5838
5838
  * @returns a new #GtkSourceMark that can be added using [method@Gtk.TextBuffer.add_mark].
5839
5839
  */
5840
- static new(name: string | null, category: string | null): Mark
5840
+ static new(name: string | null, category: string): Mark
5841
5841
 
5842
5842
  // Overloads of new
5843
5843
 
@@ -5956,7 +5956,7 @@ interface MarkAttributes {
5956
5956
  * Note that the icon name can be %NULL if it wasn't set earlier.
5957
5957
  * @returns An icon name. The string belongs to @attributes and should not be freed.
5958
5958
  */
5959
- get_icon_name(): string | null
5959
+ get_icon_name(): string
5960
5960
  /**
5961
5961
  * Gets a [class`GdkPixbuf`.Pixbuf] to be used as a base for rendered icon.
5962
5962
  *
@@ -6009,7 +6009,7 @@ interface MarkAttributes {
6009
6009
  * Sets a name of an icon to be used as a base for rendered icon.
6010
6010
  * @param icon_name name of an icon to be used.
6011
6011
  */
6012
- set_icon_name(icon_name: string | null): void
6012
+ set_icon_name(icon_name: string): void
6013
6013
  /**
6014
6014
  * Sets a pixbuf to be used as a base for rendered icon.
6015
6015
  * @param pixbuf a #GdkPixbuf to be used.
@@ -6775,7 +6775,7 @@ interface PrintCompositor {
6775
6775
  * [method`PrintCompositor`.paginate] function.
6776
6776
  * @param font_name the name of the default font for the body text.
6777
6777
  */
6778
- set_body_font_name(font_name: string | null): void
6778
+ set_body_font_name(font_name: string): void
6779
6779
  /**
6780
6780
  * Sets the bottom margin used by `compositor`.
6781
6781
  * @param margin the new bottom margin in units of `unit`.
@@ -7487,7 +7487,7 @@ interface SearchContext {
7487
7487
  * @param replace_length the length of `replace` in bytes, or -1.
7488
7488
  * @returns whether the match has been replaced.
7489
7489
  */
7490
- replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string | null, replace_length: number): boolean
7490
+ replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean
7491
7491
  /**
7492
7492
  * Replaces all search matches by another text.
7493
7493
  *
@@ -7500,7 +7500,7 @@ interface SearchContext {
7500
7500
  * @param replace_length the length of `replace` in bytes, or -1.
7501
7501
  * @returns the number of replaced matches.
7502
7502
  */
7503
- replace_all(replace: string | null, replace_length: number): number
7503
+ replace_all(replace: string, replace_length: number): number
7504
7504
  /**
7505
7505
  * Enables or disables the search occurrences highlighting.
7506
7506
  * @param highlight the setting.
@@ -7934,7 +7934,7 @@ interface Snippet {
7934
7934
  /**
7935
7935
  * Gets the description for the snippet.
7936
7936
  */
7937
- get_description(): string | null
7937
+ get_description(): string
7938
7938
  /**
7939
7939
  * Gets the current focus for the snippet.
7940
7940
  *
@@ -7949,7 +7949,7 @@ interface Snippet {
7949
7949
  * source language [property`Language:`id] property.
7950
7950
  * @returns the language identifier
7951
7951
  */
7952
- get_language_id(): string | null
7952
+ get_language_id(): string
7953
7953
  /**
7954
7954
  * Gets the number of chunks in the snippet.
7955
7955
  *
@@ -7960,7 +7960,7 @@ interface Snippet {
7960
7960
  /**
7961
7961
  * Gets the name for the snippet.
7962
7962
  */
7963
- get_name(): string | null
7963
+ get_name(): string
7964
7964
  /**
7965
7965
  * Gets the chunk at `nth`.
7966
7966
  * @param nth the nth chunk to get
@@ -7979,24 +7979,24 @@ interface Snippet {
7979
7979
  * Sets the description for the snippet.
7980
7980
  * @param description the snippet description
7981
7981
  */
7982
- set_description(description: string | null): void
7982
+ set_description(description: string): void
7983
7983
  /**
7984
7984
  * Sets the language identifier for the snippet.
7985
7985
  *
7986
7986
  * This should match the [property`Language:`id] identifier.
7987
7987
  * @param language_id the language identifier for the snippet
7988
7988
  */
7989
- set_language_id(language_id: string | null): void
7989
+ set_language_id(language_id: string): void
7990
7990
  /**
7991
7991
  * Sets the name for the snippet.
7992
7992
  * @param name the snippet name
7993
7993
  */
7994
- set_name(name: string | null): void
7994
+ set_name(name: string): void
7995
7995
  /**
7996
7996
  * Sets the trigger for the snippet.
7997
7997
  * @param trigger the trigger word
7998
7998
  */
7999
- set_trigger(trigger: string | null): void
7999
+ set_trigger(trigger: string): void
8000
8000
 
8001
8001
  // Class property signals of GtkSource-5.GtkSource.Snippet
8002
8002
 
@@ -8072,7 +8072,7 @@ class Snippet extends GObject.Object {
8072
8072
  * @param text the formatted snippet text to parse
8073
8073
  * @returns the newly parsed #GtkSourceSnippet, or %NULL upon failure and @error is set.
8074
8074
  */
8075
- static new_parsed(text: string | null): Snippet
8075
+ static new_parsed(text: string): Snippet
8076
8076
  _init(config?: Snippet.ConstructorProperties): void
8077
8077
  }
8078
8078
 
@@ -8154,14 +8154,14 @@ interface SnippetChunk {
8154
8154
  * returned.
8155
8155
  * @returns the text of the chunk
8156
8156
  */
8157
- get_text(): string | null
8157
+ get_text(): string
8158
8158
  /**
8159
8159
  * Gets the [property`SnippetChunk:`text-set] property.
8160
8160
  *
8161
8161
  * This is typically set when the user has edited a snippet chunk.
8162
8162
  */
8163
8163
  get_text_set(): boolean
8164
- get_tooltip_text(): string | null
8164
+ get_tooltip_text(): string
8165
8165
  set_context(context: SnippetContext): void
8166
8166
  /**
8167
8167
  * Sets the [property`SnippetChunk:`focus-position] property.
@@ -8185,7 +8185,7 @@ interface SnippetChunk {
8185
8185
  * are updated.
8186
8186
  * @param spec the new specification for the chunk
8187
8187
  */
8188
- set_spec(spec: string | null): void
8188
+ set_spec(spec: string): void
8189
8189
  /**
8190
8190
  * Sets the text for the snippet chunk.
8191
8191
  *
@@ -8194,7 +8194,7 @@ interface SnippetChunk {
8194
8194
  * specification.
8195
8195
  * @param text the text of the property
8196
8196
  */
8197
- set_text(text: string | null): void
8197
+ set_text(text: string): void
8198
8198
  /**
8199
8199
  * Sets the [property`SnippetChunk:`text-set] property.
8200
8200
  *
@@ -8203,7 +8203,7 @@ interface SnippetChunk {
8203
8203
  * @param text_set the property value
8204
8204
  */
8205
8205
  set_text_set(text_set: boolean): void
8206
- set_tooltip_text(tooltip_text: string | null): void
8206
+ set_tooltip_text(tooltip_text: string): void
8207
8207
 
8208
8208
  // Class property signals of GtkSource-5.GtkSource.SnippetChunk
8209
8209
 
@@ -8292,13 +8292,13 @@ interface SnippetContext {
8292
8292
  * Removes all variables from the context.
8293
8293
  */
8294
8294
  clear_variables(): void
8295
- expand(input: string | null): string | null
8295
+ expand(input: string): string | null
8296
8296
  /**
8297
8297
  * Gets the current value for a variable named `key`.
8298
8298
  * @param key the name of the variable
8299
8299
  * @returns the value for the variable, or %NULL
8300
8300
  */
8301
- get_variable(key: string | null): string | null
8301
+ get_variable(key: string): string | null
8302
8302
  /**
8303
8303
  * Sets a constatnt within the context.
8304
8304
  *
@@ -8309,8 +8309,8 @@ interface SnippetContext {
8309
8309
  * @param key the constant name
8310
8310
  * @param value the value of the constant
8311
8311
  */
8312
- set_constant(key: string | null, value: string | null): void
8313
- set_line_prefix(line_prefix: string | null): void
8312
+ set_constant(key: string, value: string): void
8313
+ set_line_prefix(line_prefix: string): void
8314
8314
  set_tab_width(tab_width: number): void
8315
8315
  set_use_spaces(use_spaces: boolean): void
8316
8316
  /**
@@ -8321,7 +8321,7 @@ interface SnippetContext {
8321
8321
  * @param key the variable name
8322
8322
  * @param value the value for the variable
8323
8323
  */
8324
- set_variable(key: string | null, value: string | null): void
8324
+ set_variable(key: string, value: string): void
8325
8325
 
8326
8326
  // Own signals of GtkSource-5.GtkSource.SnippetContext
8327
8327
 
@@ -8430,7 +8430,7 @@ interface SnippetManager {
8430
8430
  * @param trigger the trigger for the snippet
8431
8431
  * @returns a #GtkSourceSnippet or %NULL if no matching snippet was found.
8432
8432
  */
8433
- get_snippet(group: string | null, language_id: string | null, trigger: string | null): Snippet | null
8433
+ get_snippet(group: string | null, language_id: string | null, trigger: string): Snippet | null
8434
8434
  /**
8435
8435
  * Gets a [iface`Gio`.ListModel] of all snippets.
8436
8436
  *
@@ -8600,7 +8600,7 @@ interface SpaceDrawer {
8600
8600
  * @param key the `settings` key to bind.
8601
8601
  * @param flags flags for the binding.
8602
8602
  */
8603
- bind_matrix_setting(settings: Gio.Settings, key: string | null, flags: Gio.SettingsBindFlags): void
8603
+ bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void
8604
8604
  get_enable_matrix(): boolean
8605
8605
  /**
8606
8606
  * Gets the value of the [property`SpaceDrawer:`matrix] property, as a [struct`GLib`.Variant].
@@ -8977,15 +8977,15 @@ interface StyleScheme {
8977
8977
  get_authors(): string[] | null
8978
8978
  get_description(): string | null
8979
8979
  get_filename(): string | null
8980
- get_id(): string | null
8980
+ get_id(): string
8981
8981
  /**
8982
8982
  * Gets a metadata property from the style scheme.
8983
8983
  * @param name metadata property name.
8984
8984
  * @returns value of property @name stored in the metadata of @scheme or %NULL if @scheme does not contain the specified metadata property.
8985
8985
  */
8986
- get_metadata(name: string | null): string | null
8987
- get_name(): string | null
8988
- get_style(style_id: string | null): Style | null
8986
+ get_metadata(name: string): string | null
8987
+ get_name(): string
8988
+ get_style(style_id: string): Style | null
8989
8989
 
8990
8990
  // Class property signals of GtkSource-5.GtkSource.StyleScheme
8991
8991
 
@@ -9429,7 +9429,7 @@ interface StyleSchemeManager {
9429
9429
  * See [method`StyleSchemeManager`.set_search_path] for details.
9430
9430
  * @param path a directory or a filename.
9431
9431
  */
9432
- append_search_path(path: string | null): void
9432
+ append_search_path(path: string): void
9433
9433
  /**
9434
9434
  * Mark any currently cached information about the available style schems
9435
9435
  * as invalid.
@@ -9442,7 +9442,7 @@ interface StyleSchemeManager {
9442
9442
  * @param scheme_id style scheme id to find.
9443
9443
  * @returns a #GtkSourceStyleScheme object. The returned value is owned by @manager and must not be unref'ed.
9444
9444
  */
9445
- get_scheme(scheme_id: string | null): StyleScheme | null
9445
+ get_scheme(scheme_id: string): StyleScheme | null
9446
9446
  /**
9447
9447
  * Returns the ids of the available style schemes.
9448
9448
  * @returns a %NULL-terminated array of strings containing the ids of the available style schemes or %NULL if no style scheme is available. The array is sorted alphabetically according to the scheme name. The array is owned by the @manager and must not be modified.
@@ -9462,7 +9462,7 @@ interface StyleSchemeManager {
9462
9462
  * See [method`StyleSchemeManager`.set_search_path] for details.
9463
9463
  * @param path a directory or a filename.
9464
9464
  */
9465
- prepend_search_path(path: string | null): void
9465
+ prepend_search_path(path: string): void
9466
9466
  /**
9467
9467
  * Sets the list of directories where the `manager` looks for
9468
9468
  * style scheme files.
@@ -10557,7 +10557,7 @@ interface View extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.
10557
10557
  * @param priority place where priority of the category will be stored.
10558
10558
  * @returns #GtkSourceMarkAttributes for the @category. The object belongs to @view, so it must not be unreffed.
10559
10559
  */
10560
- get_mark_attributes(category: string | null, priority: number): MarkAttributes
10560
+ get_mark_attributes(category: string, priority: number): MarkAttributes
10561
10561
  /**
10562
10562
  * Gets the position of the right margin in the given `view`.
10563
10563
  * @returns the position of the right margin.
@@ -10717,7 +10717,7 @@ interface View extends Gtk.Accessible, Gtk.Buildable, Gtk.ConstraintTarget, Gtk.
10717
10717
  * @param attributes mark attributes.
10718
10718
  * @param priority priority of the category.
10719
10719
  */
10720
- set_mark_attributes(category: string | null, attributes: MarkAttributes, priority: number): void
10720
+ set_mark_attributes(category: string, attributes: MarkAttributes, priority: number): void
10721
10721
  /**
10722
10722
  * Sets the position of the right margin in the given `view`.
10723
10723
  * @param pos the width in characters where to position the right margin.
@@ -11237,17 +11237,17 @@ interface VimIMContext {
11237
11237
  * [signal`VimIMContext:`:execute-command] signal.
11238
11238
  * @param command the command text
11239
11239
  */
11240
- execute_command(command: string | null): void
11240
+ execute_command(command: string): void
11241
11241
  /**
11242
11242
  * Gets the current command-bar text as it is entered by the user.
11243
11243
  * @returns A string containing the command-bar text
11244
11244
  */
11245
- get_command_bar_text(): string | null
11245
+ get_command_bar_text(): string
11246
11246
  /**
11247
11247
  * Gets the current command text as it is entered by the user.
11248
11248
  * @returns A string containing the command text
11249
11249
  */
11250
- get_command_text(): string | null
11250
+ get_command_text(): string
11251
11251
 
11252
11252
  // Own signals of GtkSource-5.GtkSource.VimIMContext
11253
11253
 
@@ -11490,12 +11490,12 @@ interface Encoding {
11490
11490
  * "ISO-8859-1".
11491
11491
  * @returns the character set of the #GtkSourceEncoding.
11492
11492
  */
11493
- get_charset(): string | null
11493
+ get_charset(): string
11494
11494
  /**
11495
11495
  * Gets the name of the #GtkSourceEncoding such as "Unicode" or "Western".
11496
11496
  * @returns the name of the #GtkSourceEncoding.
11497
11497
  */
11498
- get_name(): string | null
11498
+ get_name(): string
11499
11499
  to_string(): string | null
11500
11500
  }
11501
11501
 
@@ -11544,7 +11544,7 @@ class Encoding {
11544
11544
  * @param charset a character set.
11545
11545
  * @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
11546
11546
  */
11547
- static get_from_charset(charset: string | null): Encoding | null
11547
+ static get_from_charset(charset: string): Encoding | null
11548
11548
  static get_utf8(): Encoding
11549
11549
  }
11550
11550
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gtksource-5",
3
- "version": "5.9.0-3.2.6",
3
+ "version": "5.9.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for GtkSource-5, generated from library version 5.9.0",
5
5
  "type": "module",
6
6
  "module": "gtksource-5.js",
@@ -25,21 +25,21 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gtksource-5.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/cairo-1.0": "^1.0.0-3.2.6",
29
- "@girs/freetype2-2.0": "^2.0.0-3.2.6",
30
- "@girs/gdk-4.0": "^4.0.0-3.2.6",
31
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.6",
32
- "@girs/gio-2.0": "^2.78.0-3.2.6",
33
- "@girs/gjs": "^3.2.6",
34
- "@girs/glib-2.0": "^2.78.0-3.2.6",
35
- "@girs/gmodule-2.0": "^2.0.0-3.2.6",
36
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
37
- "@girs/graphene-1.0": "^1.0.0-3.2.6",
38
- "@girs/gsk-4.0": "^4.0.0-3.2.6",
39
- "@girs/gtk-4.0": "^4.12.3-3.2.6",
40
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.6",
41
- "@girs/pango-1.0": "^1.51.0-3.2.6",
42
- "@girs/pangocairo-1.0": "^1.0.0-3.2.6"
28
+ "@girs/cairo-1.0": "^1.0.0-3.2.7",
29
+ "@girs/freetype2-2.0": "^2.0.0-3.2.7",
30
+ "@girs/gdk-4.0": "^4.0.0-3.2.7",
31
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.7",
32
+ "@girs/gio-2.0": "^2.78.0-3.2.7",
33
+ "@girs/gjs": "^3.2.7",
34
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
35
+ "@girs/gmodule-2.0": "^2.0.0-3.2.7",
36
+ "@girs/gobject-2.0": "^2.78.0-3.2.7",
37
+ "@girs/graphene-1.0": "^1.0.0-3.2.7",
38
+ "@girs/gsk-4.0": "^4.0.0-3.2.7",
39
+ "@girs/gtk-4.0": "^4.12.4-3.2.7",
40
+ "@girs/harfbuzz-0.0": "^8.2.1-3.2.7",
41
+ "@girs/pango-1.0": "^1.51.0-3.2.7",
42
+ "@girs/pangocairo-1.0": "^1.0.0-3.2.7"
43
43
  },
44
44
  "devDependencies": {
45
45
  "typescript": "*"