@girs/gtksource-3.0 3.0.0-3.2.6 → 3.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/gtksource-3.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for GtkSource-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for GtkSource-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
  GtkSourceView is a portable C library that extends the standard GTK+ framework for multiline text editing with support for configurable syntax highlighting, unlimited undo/redo, search and replace, a completion framework, printing and other features typical of a source code editor.
11
11
 
@@ -412,7 +412,7 @@ export function encoding_get_default_candidates(): Encoding[]
412
412
  * @param charset a character set.
413
413
  * @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
414
414
  */
415
- export function encoding_get_from_charset(charset: string | null): Encoding | null
415
+ export function encoding_get_from_charset(charset: string): Encoding | null
416
416
  export function encoding_get_utf8(): Encoding
417
417
  export function file_loader_error_quark(): GLib.Quark
418
418
  export function file_saver_error_quark(): GLib.Quark
@@ -436,7 +436,7 @@ export function file_saver_error_quark(): GLib.Quark
436
436
  * @param text the text to escape.
437
437
  * @returns the escaped @text.
438
438
  */
439
- export function utils_escape_search_text(text: string | null): string | null
439
+ export function utils_escape_search_text(text: string): string | null
440
440
  /**
441
441
  * Use this function before gtk_source_search_settings_set_search_text(), to
442
442
  * unescape the following sequences of characters: `\n`, `\r`, `\t` and `\\`.
@@ -449,7 +449,7 @@ export function utils_escape_search_text(text: string | null): string | null
449
449
  * @param text the text to unescape.
450
450
  * @returns the unescaped @text.
451
451
  */
452
- export function utils_unescape_search_text(text: string | null): string | null
452
+ export function utils_unescape_search_text(text: string): string | null
453
453
  export module CompletionProposal {
454
454
 
455
455
  // Signal callback interfaces
@@ -1403,7 +1403,7 @@ export interface Buffer {
1403
1403
  * @param where location to place the mark.
1404
1404
  * @returns a new #GtkSourceMark, owned by the buffer.
1405
1405
  */
1406
- create_source_mark(name: string | null, category: string | null, where: Gtk.TextIter): Mark
1406
+ create_source_mark(name: string | null, category: string, where: Gtk.TextIter): Mark
1407
1407
  /**
1408
1408
  * Marks the end of a not undoable action on the buffer. When the
1409
1409
  * last not undoable block is closed through the call to this
@@ -1509,7 +1509,7 @@ export interface Buffer {
1509
1509
  * @param context_class the context class.
1510
1510
  * @returns whether we found a context class toggle before @iter
1511
1511
  */
1512
- iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string | null): boolean
1512
+ iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean
1513
1513
  /**
1514
1514
  * Moves forward to the next toggle (on or off) of the context class. If no
1515
1515
  * matching context class toggles are found, returns %FALSE, otherwise %TRUE.
@@ -1522,7 +1522,7 @@ export interface Buffer {
1522
1522
  * @param context_class the context class.
1523
1523
  * @returns whether we found a context class toggle after @iter
1524
1524
  */
1525
- iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string | null): boolean
1525
+ iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean
1526
1526
  /**
1527
1527
  * Check if the class `context_class` is set on `iter`.
1528
1528
  *
@@ -1531,7 +1531,7 @@ export interface Buffer {
1531
1531
  * @param context_class class to search for.
1532
1532
  * @returns whether @iter has the context class.
1533
1533
  */
1534
- iter_has_context_class(iter: Gtk.TextIter, context_class: string | null): boolean
1534
+ iter_has_context_class(iter: Gtk.TextIter, context_class: string): boolean
1535
1535
  /**
1536
1536
  * Joins the lines of text between the specified iterators.
1537
1537
  * @param start a #GtkTextIter.
@@ -2422,7 +2422,7 @@ export interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
2422
2422
  * @param child the child widget
2423
2423
  * @param child_property the name of a child property installed on the class of `container`
2424
2424
  */
2425
- child_notify(child: Gtk.Widget, child_property: string | null): void
2425
+ child_notify(child: Gtk.Widget, child_property: string): void
2426
2426
 
2427
2427
  // Overloads of child_notify
2428
2428
 
@@ -2436,7 +2436,7 @@ export interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
2436
2436
  * Also see gtk_container_child_notify().
2437
2437
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2438
2438
  */
2439
- child_notify(child_property: string | null): void
2439
+ child_notify(child_property: string): void
2440
2440
  /**
2441
2441
  * Emits a #GtkWidget::child-notify signal for the
2442
2442
  * [child property][child-properties] `child_property`
@@ -2447,7 +2447,7 @@ export interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
2447
2447
  * Also see gtk_container_child_notify().
2448
2448
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2449
2449
  */
2450
- child_notify(child_property: string | null): void
2450
+ child_notify(child_property: string): void
2451
2451
 
2452
2452
  // Own virtual methods of GtkSource-3.0.GtkSource.CompletionInfo
2453
2453
 
@@ -2882,7 +2882,7 @@ export class CompletionItem extends GObject.Object {
2882
2882
  * @param info The item extra information.
2883
2883
  * @returns a new #GtkSourceCompletionItem.
2884
2884
  */
2885
- constructor(label: string | null, text: string | null, icon: GdkPixbuf.Pixbuf | null, info: string | null)
2885
+ constructor(label: string, text: string, icon: GdkPixbuf.Pixbuf | null, info: string | null)
2886
2886
  /**
2887
2887
  * Create a new #GtkSourceCompletionItem with label `label,` icon `icon` and
2888
2888
  * extra information `info`. Both `icon` and `info` can be %NULL in which case
@@ -2894,7 +2894,7 @@ export class CompletionItem extends GObject.Object {
2894
2894
  * @param info The item extra information.
2895
2895
  * @returns a new #GtkSourceCompletionItem.
2896
2896
  */
2897
- static new(label: string | null, text: string | null, icon: GdkPixbuf.Pixbuf | null, info: string | null): CompletionItem
2897
+ static new(label: string, text: string, icon: GdkPixbuf.Pixbuf | null, info: string | null): CompletionItem
2898
2898
  /**
2899
2899
  * Creates a new #GtkSourceCompletionItem from a stock item. If `label` is %NULL,
2900
2900
  * the stock label will be used.
@@ -2905,7 +2905,7 @@ export class CompletionItem extends GObject.Object {
2905
2905
  * @param info The item extra information.
2906
2906
  * @returns a new #GtkSourceCompletionItem.
2907
2907
  */
2908
- static new_from_stock(label: string | null, text: string | null, stock: string | null, info: string | null): CompletionItem
2908
+ static new_from_stock(label: string | null, text: string, stock: string, info: string | null): CompletionItem
2909
2909
  /**
2910
2910
  * Create a new #GtkSourceCompletionItem with markup label `markup,` icon
2911
2911
  * `icon` and extra information `info`. Both `icon` and `info` can be %NULL in
@@ -2917,7 +2917,7 @@ export class CompletionItem extends GObject.Object {
2917
2917
  * @param info The item extra information.
2918
2918
  * @returns a new #GtkSourceCompletionItem.
2919
2919
  */
2920
- static new_with_markup(markup: string | null, text: string | null, icon: GdkPixbuf.Pixbuf | null, info: string | null): CompletionItem
2920
+ static new_with_markup(markup: string, text: string, icon: GdkPixbuf.Pixbuf | null, info: string | null): CompletionItem
2921
2921
  _init(config?: CompletionItem.ConstructorProperties): void
2922
2922
  /**
2923
2923
  * Creates a new #GtkSourceCompletionItem. The desired properties need to be set
@@ -4343,13 +4343,13 @@ export interface GutterRendererPixbuf {
4343
4343
  * @returns a #GIcon
4344
4344
  */
4345
4345
  get_gicon(): Gio.Icon
4346
- get_icon_name(): string | null
4346
+ get_icon_name(): string
4347
4347
  /**
4348
4348
  * Get the pixbuf of the renderer.
4349
4349
  * @returns a #GdkPixbuf
4350
4350
  */
4351
4351
  get_pixbuf(): GdkPixbuf.Pixbuf
4352
- get_stock_id(): string | null
4352
+ get_stock_id(): string
4353
4353
  set_gicon(icon: Gio.Icon | null): void
4354
4354
  set_icon_name(icon_name: string | null): void
4355
4355
  set_pixbuf(pixbuf: GdkPixbuf.Pixbuf | null): void
@@ -4461,15 +4461,15 @@ export interface GutterRendererText {
4461
4461
  * #GtkSourceGutterRendererText.
4462
4462
  * @param text the text to measure.
4463
4463
  */
4464
- measure(text: string | null): [ /* width */ number, /* height */ number ]
4464
+ measure(text: string): [ /* width */ number, /* height */ number ]
4465
4465
  /**
4466
4466
  * Measures the pango markup provided using the pango layout used by the
4467
4467
  * #GtkSourceGutterRendererText.
4468
4468
  * @param markup the pango markup to measure.
4469
4469
  */
4470
- measure_markup(markup: string | null): [ /* width */ number, /* height */ number ]
4471
- set_markup(markup: string | null, length: number): void
4472
- set_text(text: string | null, length: number): void
4470
+ measure_markup(markup: string): [ /* width */ number, /* height */ number ]
4471
+ set_markup(markup: string, length: number): void
4472
+ set_text(text: string, length: number): void
4473
4473
 
4474
4474
  // Class property signals of GtkSource-3.0.GtkSource.GutterRendererText
4475
4475
 
@@ -4586,8 +4586,8 @@ export interface Language {
4586
4586
  * or modified.
4587
4587
  * @returns the ID of @language.
4588
4588
  */
4589
- get_id(): string | null
4590
- get_metadata(name: string | null): string | null
4589
+ get_id(): string
4590
+ get_metadata(name: string): string | null
4591
4591
  /**
4592
4592
  * Returns the mime types associated to this language. This is just
4593
4593
  * an utility wrapper around gtk_source_language_get_metadata() to
@@ -4602,7 +4602,7 @@ export interface Language {
4602
4602
  * or modified.
4603
4603
  * @returns the name of @language.
4604
4604
  */
4605
- get_name(): string | null
4605
+ get_name(): string
4606
4606
  /**
4607
4607
  * Returns the localized section of the language.
4608
4608
  * Each language belong to a section (ex. HTML belogs to the
@@ -4611,14 +4611,14 @@ export interface Language {
4611
4611
  * or modified.
4612
4612
  * @returns the section of @language.
4613
4613
  */
4614
- get_section(): string | null
4614
+ get_section(): string
4615
4615
  /**
4616
4616
  * Returns the ID of the style to use if the specified `style_id`
4617
4617
  * is not present in the current style scheme.
4618
4618
  * @param style_id a style ID.
4619
4619
  * @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.
4620
4620
  */
4621
- get_style_fallback(style_id: string | null): string | null
4621
+ get_style_fallback(style_id: string): string | null
4622
4622
  /**
4623
4623
  * Returns the ids of the styles defined by this `language`.
4624
4624
  * @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().
@@ -4629,7 +4629,7 @@ export interface Language {
4629
4629
  * @param style_id a style ID.
4630
4630
  * @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.
4631
4631
  */
4632
- get_style_name(style_id: string | null): string | null
4632
+ get_style_name(style_id: string): string | null
4633
4633
 
4634
4634
  // Class property signals of GtkSource-3.0.GtkSource.Language
4635
4635
 
@@ -4700,7 +4700,7 @@ export interface LanguageManager {
4700
4700
  * @param id a language id.
4701
4701
  * @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.
4702
4702
  */
4703
- get_language(id: string | null): Language | null
4703
+ get_language(id: string): Language | null
4704
4704
  /**
4705
4705
  * Returns the ids of the available languages.
4706
4706
  * @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.
@@ -4895,7 +4895,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
4895
4895
  * @param child the child widget
4896
4896
  * @param child_property the name of a child property installed on the class of `container`
4897
4897
  */
4898
- child_notify(child: Gtk.Widget, child_property: string | null): void
4898
+ child_notify(child: Gtk.Widget, child_property: string): void
4899
4899
 
4900
4900
  // Overloads of child_notify
4901
4901
 
@@ -4909,7 +4909,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
4909
4909
  * Also see gtk_container_child_notify().
4910
4910
  * @param child_property the name of a child property installed on the class of `widget’`s parent
4911
4911
  */
4912
- child_notify(child_property: string | null): void
4912
+ child_notify(child_property: string): void
4913
4913
  /**
4914
4914
  * Emits a #GtkWidget::child-notify signal for the
4915
4915
  * [child property][child-properties] `child_property`
@@ -4920,7 +4920,7 @@ export interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable
4920
4920
  * Also see gtk_container_child_notify().
4921
4921
  * @param child_property the name of a child property installed on the class of `widget’`s parent
4922
4922
  */
4923
- child_notify(child_property: string | null): void
4923
+ child_notify(child_property: string): void
4924
4924
 
4925
4925
  // Class property signals of GtkSource-3.0.GtkSource.Map
4926
4926
 
@@ -5252,7 +5252,7 @@ export interface Mark {
5252
5252
  * Returns the mark category.
5253
5253
  * @returns the category of the #GtkSourceMark.
5254
5254
  */
5255
- get_category(): string | null
5255
+ get_category(): string
5256
5256
  /**
5257
5257
  * Returns the next #GtkSourceMark in the buffer or %NULL if the mark
5258
5258
  * was not added to a buffer. If there is no next mark, %NULL will be returned.
@@ -5270,7 +5270,7 @@ export interface Mark {
5270
5270
  * @param category a string specifying the mark category, or %NULL.
5271
5271
  * @returns the previous #GtkSourceMark, or %NULL.
5272
5272
  */
5273
- prev(category: string | null): Mark | null
5273
+ prev(category: string): Mark | null
5274
5274
 
5275
5275
  // Class property signals of GtkSource-3.0.GtkSource.Mark
5276
5276
 
@@ -5310,7 +5310,7 @@ export class Mark extends Gtk.TextMark {
5310
5310
  * @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).
5311
5311
  * @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
5312
5312
  */
5313
- constructor(name: string | null, category: string | null)
5313
+ constructor(name: string, category: string)
5314
5314
  /**
5315
5315
  * Creates a text mark. Add it to a buffer using gtk_text_buffer_add_mark().
5316
5316
  * If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved
@@ -5322,7 +5322,7 @@ export class Mark extends Gtk.TextMark {
5322
5322
  * @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).
5323
5323
  * @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
5324
5324
  */
5325
- static new(name: string | null, category: string | null): Mark
5325
+ static new(name: string, category: string): Mark
5326
5326
 
5327
5327
  // Overloads of new
5328
5328
 
@@ -5453,7 +5453,7 @@ export interface MarkAttributes {
5453
5453
  * icon name can be %NULL if it wasn't set earlier.
5454
5454
  * @returns An icon name. The string belongs to @attributes and should not be freed.
5455
5455
  */
5456
- get_icon_name(): string | null
5456
+ get_icon_name(): string
5457
5457
  /**
5458
5458
  * Gets a #GdkPixbuf to be used as a base for rendered icon. Note that the
5459
5459
  * pixbuf can be %NULL if it wasn't set earlier.
@@ -5465,7 +5465,7 @@ export interface MarkAttributes {
5465
5465
  * be %NULL if it wasn't set earlier.
5466
5466
  * @returns Stock id. Returned string is owned by @attributes and shouldn't be freed.
5467
5467
  */
5468
- get_stock_id(): string | null
5468
+ get_stock_id(): string
5469
5469
  /**
5470
5470
  * Queries for a tooltip by emitting
5471
5471
  * a #GtkSourceMarkAttributes::query-tooltip-markup signal. The tooltip may contain
@@ -5507,7 +5507,7 @@ export interface MarkAttributes {
5507
5507
  * Sets a name of an icon to be used as a base for rendered icon.
5508
5508
  * @param icon_name name of an icon to be used.
5509
5509
  */
5510
- set_icon_name(icon_name: string | null): void
5510
+ set_icon_name(icon_name: string): void
5511
5511
  /**
5512
5512
  * Sets a pixbuf to be used as a base for rendered icon.
5513
5513
  * @param pixbuf a #GdkPixbuf to be used.
@@ -5517,7 +5517,7 @@ export interface MarkAttributes {
5517
5517
  * Sets stock id to be used as a base for rendered icon.
5518
5518
  * @param stock_id a stock id.
5519
5519
  */
5520
- set_stock_id(stock_id: string | null): void
5520
+ set_stock_id(stock_id: string): void
5521
5521
 
5522
5522
  // Own signals of GtkSource-3.0.GtkSource.MarkAttributes
5523
5523
 
@@ -6225,7 +6225,7 @@ export interface PrintCompositor {
6225
6225
  * gtk_source_print_compositor_paginate() function.
6226
6226
  * @param font_name the name of the default font for the body text.
6227
6227
  */
6228
- set_body_font_name(font_name: string | null): void
6228
+ set_body_font_name(font_name: string): void
6229
6229
  /**
6230
6230
  * Sets the bottom margin used by `compositor`.
6231
6231
  * @param margin the new bottom margin in units of `unit`.
@@ -6897,7 +6897,7 @@ export interface SearchContext {
6897
6897
  * @param replace_length the length of `replace` in bytes, or -1.
6898
6898
  * @returns whether the match has been replaced.
6899
6899
  */
6900
- replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string | null, replace_length: number): boolean
6900
+ replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean
6901
6901
  /**
6902
6902
  * Replaces a search match by another text. If `match_start` and `match_end`
6903
6903
  * doesn't correspond to a search match, %FALSE is returned.
@@ -6914,7 +6914,7 @@ export interface SearchContext {
6914
6914
  * @param replace_length the length of `replace` in bytes, or -1.
6915
6915
  * @returns whether the match has been replaced.
6916
6916
  */
6917
- replace2(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string | null, replace_length: number): boolean
6917
+ replace2(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean
6918
6918
  /**
6919
6919
  * Replaces all search matches by another text. It is a synchronous function, so
6920
6920
  * it can block the user interface.
@@ -6926,7 +6926,7 @@ export interface SearchContext {
6926
6926
  * @param replace_length the length of `replace` in bytes, or -1.
6927
6927
  * @returns the number of replaced matches.
6928
6928
  */
6929
- replace_all(replace: string | null, replace_length: number): number
6929
+ replace_all(replace: string, replace_length: number): number
6930
6930
  /**
6931
6931
  * Enables or disables the search occurrences highlighting.
6932
6932
  * @param highlight the setting.
@@ -7327,7 +7327,7 @@ export interface SpaceDrawer {
7327
7327
  * @param key the `settings` key to bind.
7328
7328
  * @param flags flags for the binding.
7329
7329
  */
7330
- bind_matrix_setting(settings: Gio.Settings, key: string | null, flags: Gio.SettingsBindFlags): void
7330
+ bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void
7331
7331
  get_enable_matrix(): boolean
7332
7332
  /**
7333
7333
  * Gets the value of the #GtkSourceSpaceDrawer:matrix property, as a #GVariant.
@@ -7642,9 +7642,9 @@ export interface StyleScheme {
7642
7642
  get_authors(): string[] | null
7643
7643
  get_description(): string | null
7644
7644
  get_filename(): string | null
7645
- get_id(): string | null
7646
- get_name(): string | null
7647
- get_style(style_id: string | null): Style | null
7645
+ get_id(): string
7646
+ get_name(): string
7647
+ get_style(style_id: string): Style | null
7648
7648
 
7649
7649
  // Class property signals of GtkSource-3.0.GtkSource.StyleScheme
7650
7650
 
@@ -7706,7 +7706,7 @@ export interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Acti
7706
7706
  * Also see gtk_container_child_notify().
7707
7707
  * @param child_property the name of a child property installed on the class of `widget’`s parent
7708
7708
  */
7709
- child_notify(child_property: string | null): void
7709
+ child_notify(child_property: string): void
7710
7710
  /**
7711
7711
  * Emits a #GtkWidget::child-notify signal for the
7712
7712
  * [child property][child-properties]
@@ -7718,7 +7718,7 @@ export interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Acti
7718
7718
  * @param child the child widget
7719
7719
  * @param child_property the name of a child property installed on the class of `container`
7720
7720
  */
7721
- child_notify(child: Gtk.Widget, child_property: string | null): void
7721
+ child_notify(child: Gtk.Widget, child_property: string): void
7722
7722
 
7723
7723
  // Overloads of child_notify
7724
7724
 
@@ -7732,7 +7732,7 @@ export interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Acti
7732
7732
  * Also see gtk_container_child_notify().
7733
7733
  * @param child_property the name of a child property installed on the class of `widget’`s parent
7734
7734
  */
7735
- child_notify(child_property: string | null): void
7735
+ child_notify(child_property: string): void
7736
7736
 
7737
7737
  // Class property signals of GtkSource-3.0.GtkSource.StyleSchemeChooserButton
7738
7738
 
@@ -7963,7 +7963,7 @@ export interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buil
7963
7963
  * @param child the child widget
7964
7964
  * @param child_property the name of a child property installed on the class of `container`
7965
7965
  */
7966
- child_notify(child: Gtk.Widget, child_property: string | null): void
7966
+ child_notify(child: Gtk.Widget, child_property: string): void
7967
7967
 
7968
7968
  // Overloads of child_notify
7969
7969
 
@@ -7977,7 +7977,7 @@ export interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buil
7977
7977
  * Also see gtk_container_child_notify().
7978
7978
  * @param child_property the name of a child property installed on the class of `widget’`s parent
7979
7979
  */
7980
- child_notify(child_property: string | null): void
7980
+ child_notify(child_property: string): void
7981
7981
  /**
7982
7982
  * Emits a #GtkWidget::child-notify signal for the
7983
7983
  * [child property][child-properties] `child_property`
@@ -7988,7 +7988,7 @@ export interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buil
7988
7988
  * Also see gtk_container_child_notify().
7989
7989
  * @param child_property the name of a child property installed on the class of `widget’`s parent
7990
7990
  */
7991
- child_notify(child_property: string | null): void
7991
+ child_notify(child_property: string): void
7992
7992
 
7993
7993
  // Class property signals of GtkSource-3.0.GtkSource.StyleSchemeChooserWidget
7994
7994
 
@@ -8188,7 +8188,7 @@ export interface StyleSchemeManager {
8188
8188
  * See gtk_source_style_scheme_manager_set_search_path() for details.
8189
8189
  * @param path a directory or a filename.
8190
8190
  */
8191
- append_search_path(path: string | null): void
8191
+ append_search_path(path: string): void
8192
8192
  /**
8193
8193
  * Mark any currently cached information about the available style scehems
8194
8194
  * as invalid. All the available style schemes will be reloaded next time
@@ -8200,7 +8200,7 @@ export interface StyleSchemeManager {
8200
8200
  * @param scheme_id style scheme id to find.
8201
8201
  * @returns a #GtkSourceStyleScheme object. Returned value is owned by @manager and must not be unref'ed.
8202
8202
  */
8203
- get_scheme(scheme_id: string | null): StyleScheme
8203
+ get_scheme(scheme_id: string): StyleScheme
8204
8204
  /**
8205
8205
  * Returns the ids of the available style schemes.
8206
8206
  * @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.
@@ -8218,7 +8218,7 @@ export interface StyleSchemeManager {
8218
8218
  * See gtk_source_style_scheme_manager_set_search_path() for details.
8219
8219
  * @param path a directory or a filename.
8220
8220
  */
8221
- prepend_search_path(path: string | null): void
8221
+ prepend_search_path(path: string): void
8222
8222
  /**
8223
8223
  * Sets the list of directories where the `manager` looks for
8224
8224
  * style scheme files.
@@ -8991,7 +8991,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
8991
8991
  * @param priority place where priority of the category will be stored.
8992
8992
  * @returns #GtkSourceMarkAttributes for the @category. The object belongs to @view, so it must not be unreffed.
8993
8993
  */
8994
- get_mark_attributes(category: string | null, priority: number): MarkAttributes
8994
+ get_mark_attributes(category: string, priority: number): MarkAttributes
8995
8995
  /**
8996
8996
  * Gets the position of the right margin in the given `view`.
8997
8997
  * @returns the position of the right margin.
@@ -9129,7 +9129,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
9129
9129
  * @param attributes mark attributes.
9130
9130
  * @param priority priority of the category.
9131
9131
  */
9132
- set_mark_attributes(category: string | null, attributes: MarkAttributes, priority: number): void
9132
+ set_mark_attributes(category: string, attributes: MarkAttributes, priority: number): void
9133
9133
  /**
9134
9134
  * Sets the position of the right margin in the given `view`.
9135
9135
  * @param pos the width in characters where to position the right margin.
@@ -9214,7 +9214,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
9214
9214
  * @param child the child widget
9215
9215
  * @param child_property the name of a child property installed on the class of `container`
9216
9216
  */
9217
- child_notify(child: Gtk.Widget, child_property: string | null): void
9217
+ child_notify(child: Gtk.Widget, child_property: string): void
9218
9218
 
9219
9219
  // Overloads of child_notify
9220
9220
 
@@ -9228,7 +9228,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
9228
9228
  * Also see gtk_container_child_notify().
9229
9229
  * @param child_property the name of a child property installed on the class of `widget’`s parent
9230
9230
  */
9231
- child_notify(child_property: string | null): void
9231
+ child_notify(child_property: string): void
9232
9232
  /**
9233
9233
  * Emits a #GtkWidget::child-notify signal for the
9234
9234
  * [child property][child-properties] `child_property`
@@ -9239,7 +9239,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
9239
9239
  * Also see gtk_container_child_notify().
9240
9240
  * @param child_property the name of a child property installed on the class of `widget’`s parent
9241
9241
  */
9242
- child_notify(child_property: string | null): void
9242
+ child_notify(child_property: string): void
9243
9243
 
9244
9244
  // Own virtual methods of GtkSource-3.0.GtkSource.View
9245
9245
 
@@ -9846,12 +9846,12 @@ export interface Encoding {
9846
9846
  * "ISO-8859-1".
9847
9847
  * @returns the character set of the #GtkSourceEncoding.
9848
9848
  */
9849
- get_charset(): string | null
9849
+ get_charset(): string
9850
9850
  /**
9851
9851
  * Gets the name of the #GtkSourceEncoding such as "Unicode" or "Western".
9852
9852
  * @returns the name of the #GtkSourceEncoding.
9853
9853
  */
9854
- get_name(): string | null
9854
+ get_name(): string
9855
9855
  to_string(): string | null
9856
9856
  }
9857
9857
 
@@ -9889,7 +9889,7 @@ export class Encoding {
9889
9889
  * @param charset a character set.
9890
9890
  * @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
9891
9891
  */
9892
- static get_from_charset(charset: string | null): Encoding | null
9892
+ static get_from_charset(charset: string): Encoding | null
9893
9893
  static get_utf8(): Encoding
9894
9894
  }
9895
9895
 
@@ -414,7 +414,7 @@ function encoding_get_default_candidates(): Encoding[]
414
414
  * @param charset a character set.
415
415
  * @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
416
416
  */
417
- function encoding_get_from_charset(charset: string | null): Encoding | null
417
+ function encoding_get_from_charset(charset: string): Encoding | null
418
418
  function encoding_get_utf8(): Encoding
419
419
  function file_loader_error_quark(): GLib.Quark
420
420
  function file_saver_error_quark(): GLib.Quark
@@ -438,7 +438,7 @@ function file_saver_error_quark(): GLib.Quark
438
438
  * @param text the text to escape.
439
439
  * @returns the escaped @text.
440
440
  */
441
- function utils_escape_search_text(text: string | null): string | null
441
+ function utils_escape_search_text(text: string): string | null
442
442
  /**
443
443
  * Use this function before gtk_source_search_settings_set_search_text(), to
444
444
  * unescape the following sequences of characters: `\n`, `\r`, `\t` and `\\`.
@@ -451,7 +451,7 @@ function utils_escape_search_text(text: string | null): string | null
451
451
  * @param text the text to unescape.
452
452
  * @returns the unescaped @text.
453
453
  */
454
- function utils_unescape_search_text(text: string | null): string | null
454
+ function utils_unescape_search_text(text: string): string | null
455
455
  module CompletionProposal {
456
456
 
457
457
  // Signal callback interfaces
@@ -1405,7 +1405,7 @@ interface Buffer {
1405
1405
  * @param where location to place the mark.
1406
1406
  * @returns a new #GtkSourceMark, owned by the buffer.
1407
1407
  */
1408
- create_source_mark(name: string | null, category: string | null, where: Gtk.TextIter): Mark
1408
+ create_source_mark(name: string | null, category: string, where: Gtk.TextIter): Mark
1409
1409
  /**
1410
1410
  * Marks the end of a not undoable action on the buffer. When the
1411
1411
  * last not undoable block is closed through the call to this
@@ -1511,7 +1511,7 @@ interface Buffer {
1511
1511
  * @param context_class the context class.
1512
1512
  * @returns whether we found a context class toggle before @iter
1513
1513
  */
1514
- iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string | null): boolean
1514
+ iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean
1515
1515
  /**
1516
1516
  * Moves forward to the next toggle (on or off) of the context class. If no
1517
1517
  * matching context class toggles are found, returns %FALSE, otherwise %TRUE.
@@ -1524,7 +1524,7 @@ interface Buffer {
1524
1524
  * @param context_class the context class.
1525
1525
  * @returns whether we found a context class toggle after @iter
1526
1526
  */
1527
- iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string | null): boolean
1527
+ iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean
1528
1528
  /**
1529
1529
  * Check if the class `context_class` is set on `iter`.
1530
1530
  *
@@ -1533,7 +1533,7 @@ interface Buffer {
1533
1533
  * @param context_class class to search for.
1534
1534
  * @returns whether @iter has the context class.
1535
1535
  */
1536
- iter_has_context_class(iter: Gtk.TextIter, context_class: string | null): boolean
1536
+ iter_has_context_class(iter: Gtk.TextIter, context_class: string): boolean
1537
1537
  /**
1538
1538
  * Joins the lines of text between the specified iterators.
1539
1539
  * @param start a #GtkTextIter.
@@ -2424,7 +2424,7 @@ interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
2424
2424
  * @param child the child widget
2425
2425
  * @param child_property the name of a child property installed on the class of `container`
2426
2426
  */
2427
- child_notify(child: Gtk.Widget, child_property: string | null): void
2427
+ child_notify(child: Gtk.Widget, child_property: string): void
2428
2428
 
2429
2429
  // Overloads of child_notify
2430
2430
 
@@ -2438,7 +2438,7 @@ interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
2438
2438
  * Also see gtk_container_child_notify().
2439
2439
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2440
2440
  */
2441
- child_notify(child_property: string | null): void
2441
+ child_notify(child_property: string): void
2442
2442
  /**
2443
2443
  * Emits a #GtkWidget::child-notify signal for the
2444
2444
  * [child property][child-properties] `child_property`
@@ -2449,7 +2449,7 @@ interface CompletionInfo extends Atk.ImplementorIface, Gtk.Buildable {
2449
2449
  * Also see gtk_container_child_notify().
2450
2450
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2451
2451
  */
2452
- child_notify(child_property: string | null): void
2452
+ child_notify(child_property: string): void
2453
2453
 
2454
2454
  // Own virtual methods of GtkSource-3.0.GtkSource.CompletionInfo
2455
2455
 
@@ -2884,7 +2884,7 @@ class CompletionItem extends GObject.Object {
2884
2884
  * @param info The item extra information.
2885
2885
  * @returns a new #GtkSourceCompletionItem.
2886
2886
  */
2887
- constructor(label: string | null, text: string | null, icon: GdkPixbuf.Pixbuf | null, info: string | null)
2887
+ constructor(label: string, text: string, icon: GdkPixbuf.Pixbuf | null, info: string | null)
2888
2888
  /**
2889
2889
  * Create a new #GtkSourceCompletionItem with label `label,` icon `icon` and
2890
2890
  * extra information `info`. Both `icon` and `info` can be %NULL in which case
@@ -2896,7 +2896,7 @@ class CompletionItem extends GObject.Object {
2896
2896
  * @param info The item extra information.
2897
2897
  * @returns a new #GtkSourceCompletionItem.
2898
2898
  */
2899
- static new(label: string | null, text: string | null, icon: GdkPixbuf.Pixbuf | null, info: string | null): CompletionItem
2899
+ static new(label: string, text: string, icon: GdkPixbuf.Pixbuf | null, info: string | null): CompletionItem
2900
2900
  /**
2901
2901
  * Creates a new #GtkSourceCompletionItem from a stock item. If `label` is %NULL,
2902
2902
  * the stock label will be used.
@@ -2907,7 +2907,7 @@ class CompletionItem extends GObject.Object {
2907
2907
  * @param info The item extra information.
2908
2908
  * @returns a new #GtkSourceCompletionItem.
2909
2909
  */
2910
- static new_from_stock(label: string | null, text: string | null, stock: string | null, info: string | null): CompletionItem
2910
+ static new_from_stock(label: string | null, text: string, stock: string, info: string | null): CompletionItem
2911
2911
  /**
2912
2912
  * Create a new #GtkSourceCompletionItem with markup label `markup,` icon
2913
2913
  * `icon` and extra information `info`. Both `icon` and `info` can be %NULL in
@@ -2919,7 +2919,7 @@ class CompletionItem extends GObject.Object {
2919
2919
  * @param info The item extra information.
2920
2920
  * @returns a new #GtkSourceCompletionItem.
2921
2921
  */
2922
- static new_with_markup(markup: string | null, text: string | null, icon: GdkPixbuf.Pixbuf | null, info: string | null): CompletionItem
2922
+ static new_with_markup(markup: string, text: string, icon: GdkPixbuf.Pixbuf | null, info: string | null): CompletionItem
2923
2923
  _init(config?: CompletionItem.ConstructorProperties): void
2924
2924
  /**
2925
2925
  * Creates a new #GtkSourceCompletionItem. The desired properties need to be set
@@ -4345,13 +4345,13 @@ interface GutterRendererPixbuf {
4345
4345
  * @returns a #GIcon
4346
4346
  */
4347
4347
  get_gicon(): Gio.Icon
4348
- get_icon_name(): string | null
4348
+ get_icon_name(): string
4349
4349
  /**
4350
4350
  * Get the pixbuf of the renderer.
4351
4351
  * @returns a #GdkPixbuf
4352
4352
  */
4353
4353
  get_pixbuf(): GdkPixbuf.Pixbuf
4354
- get_stock_id(): string | null
4354
+ get_stock_id(): string
4355
4355
  set_gicon(icon: Gio.Icon | null): void
4356
4356
  set_icon_name(icon_name: string | null): void
4357
4357
  set_pixbuf(pixbuf: GdkPixbuf.Pixbuf | null): void
@@ -4463,15 +4463,15 @@ interface GutterRendererText {
4463
4463
  * #GtkSourceGutterRendererText.
4464
4464
  * @param text the text to measure.
4465
4465
  */
4466
- measure(text: string | null): [ /* width */ number, /* height */ number ]
4466
+ measure(text: string): [ /* width */ number, /* height */ number ]
4467
4467
  /**
4468
4468
  * Measures the pango markup provided using the pango layout used by the
4469
4469
  * #GtkSourceGutterRendererText.
4470
4470
  * @param markup the pango markup to measure.
4471
4471
  */
4472
- measure_markup(markup: string | null): [ /* width */ number, /* height */ number ]
4473
- set_markup(markup: string | null, length: number): void
4474
- set_text(text: string | null, length: number): void
4472
+ measure_markup(markup: string): [ /* width */ number, /* height */ number ]
4473
+ set_markup(markup: string, length: number): void
4474
+ set_text(text: string, length: number): void
4475
4475
 
4476
4476
  // Class property signals of GtkSource-3.0.GtkSource.GutterRendererText
4477
4477
 
@@ -4588,8 +4588,8 @@ interface Language {
4588
4588
  * or modified.
4589
4589
  * @returns the ID of @language.
4590
4590
  */
4591
- get_id(): string | null
4592
- get_metadata(name: string | null): string | null
4591
+ get_id(): string
4592
+ get_metadata(name: string): string | null
4593
4593
  /**
4594
4594
  * Returns the mime types associated to this language. This is just
4595
4595
  * an utility wrapper around gtk_source_language_get_metadata() to
@@ -4604,7 +4604,7 @@ interface Language {
4604
4604
  * or modified.
4605
4605
  * @returns the name of @language.
4606
4606
  */
4607
- get_name(): string | null
4607
+ get_name(): string
4608
4608
  /**
4609
4609
  * Returns the localized section of the language.
4610
4610
  * Each language belong to a section (ex. HTML belogs to the
@@ -4613,14 +4613,14 @@ interface Language {
4613
4613
  * or modified.
4614
4614
  * @returns the section of @language.
4615
4615
  */
4616
- get_section(): string | null
4616
+ get_section(): string
4617
4617
  /**
4618
4618
  * Returns the ID of the style to use if the specified `style_id`
4619
4619
  * is not present in the current style scheme.
4620
4620
  * @param style_id a style ID.
4621
4621
  * @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.
4622
4622
  */
4623
- get_style_fallback(style_id: string | null): string | null
4623
+ get_style_fallback(style_id: string): string | null
4624
4624
  /**
4625
4625
  * Returns the ids of the styles defined by this `language`.
4626
4626
  * @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().
@@ -4631,7 +4631,7 @@ interface Language {
4631
4631
  * @param style_id a style ID.
4632
4632
  * @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.
4633
4633
  */
4634
- get_style_name(style_id: string | null): string | null
4634
+ get_style_name(style_id: string): string | null
4635
4635
 
4636
4636
  // Class property signals of GtkSource-3.0.GtkSource.Language
4637
4637
 
@@ -4702,7 +4702,7 @@ interface LanguageManager {
4702
4702
  * @param id a language id.
4703
4703
  * @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.
4704
4704
  */
4705
- get_language(id: string | null): Language | null
4705
+ get_language(id: string): Language | null
4706
4706
  /**
4707
4707
  * Returns the ids of the available languages.
4708
4708
  * @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.
@@ -4897,7 +4897,7 @@ interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
4897
4897
  * @param child the child widget
4898
4898
  * @param child_property the name of a child property installed on the class of `container`
4899
4899
  */
4900
- child_notify(child: Gtk.Widget, child_property: string | null): void
4900
+ child_notify(child: Gtk.Widget, child_property: string): void
4901
4901
 
4902
4902
  // Overloads of child_notify
4903
4903
 
@@ -4911,7 +4911,7 @@ interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
4911
4911
  * Also see gtk_container_child_notify().
4912
4912
  * @param child_property the name of a child property installed on the class of `widget’`s parent
4913
4913
  */
4914
- child_notify(child_property: string | null): void
4914
+ child_notify(child_property: string): void
4915
4915
  /**
4916
4916
  * Emits a #GtkWidget::child-notify signal for the
4917
4917
  * [child property][child-properties] `child_property`
@@ -4922,7 +4922,7 @@ interface Map extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
4922
4922
  * Also see gtk_container_child_notify().
4923
4923
  * @param child_property the name of a child property installed on the class of `widget’`s parent
4924
4924
  */
4925
- child_notify(child_property: string | null): void
4925
+ child_notify(child_property: string): void
4926
4926
 
4927
4927
  // Class property signals of GtkSource-3.0.GtkSource.Map
4928
4928
 
@@ -5254,7 +5254,7 @@ interface Mark {
5254
5254
  * Returns the mark category.
5255
5255
  * @returns the category of the #GtkSourceMark.
5256
5256
  */
5257
- get_category(): string | null
5257
+ get_category(): string
5258
5258
  /**
5259
5259
  * Returns the next #GtkSourceMark in the buffer or %NULL if the mark
5260
5260
  * was not added to a buffer. If there is no next mark, %NULL will be returned.
@@ -5272,7 +5272,7 @@ interface Mark {
5272
5272
  * @param category a string specifying the mark category, or %NULL.
5273
5273
  * @returns the previous #GtkSourceMark, or %NULL.
5274
5274
  */
5275
- prev(category: string | null): Mark | null
5275
+ prev(category: string): Mark | null
5276
5276
 
5277
5277
  // Class property signals of GtkSource-3.0.GtkSource.Mark
5278
5278
 
@@ -5312,7 +5312,7 @@ class Mark extends Gtk.TextMark {
5312
5312
  * @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).
5313
5313
  * @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
5314
5314
  */
5315
- constructor(name: string | null, category: string | null)
5315
+ constructor(name: string, category: string)
5316
5316
  /**
5317
5317
  * Creates a text mark. Add it to a buffer using gtk_text_buffer_add_mark().
5318
5318
  * If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved
@@ -5324,7 +5324,7 @@ class Mark extends Gtk.TextMark {
5324
5324
  * @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).
5325
5325
  * @returns a new #GtkSourceMark that can be added using gtk_text_buffer_add_mark().
5326
5326
  */
5327
- static new(name: string | null, category: string | null): Mark
5327
+ static new(name: string, category: string): Mark
5328
5328
 
5329
5329
  // Overloads of new
5330
5330
 
@@ -5455,7 +5455,7 @@ interface MarkAttributes {
5455
5455
  * icon name can be %NULL if it wasn't set earlier.
5456
5456
  * @returns An icon name. The string belongs to @attributes and should not be freed.
5457
5457
  */
5458
- get_icon_name(): string | null
5458
+ get_icon_name(): string
5459
5459
  /**
5460
5460
  * Gets a #GdkPixbuf to be used as a base for rendered icon. Note that the
5461
5461
  * pixbuf can be %NULL if it wasn't set earlier.
@@ -5467,7 +5467,7 @@ interface MarkAttributes {
5467
5467
  * be %NULL if it wasn't set earlier.
5468
5468
  * @returns Stock id. Returned string is owned by @attributes and shouldn't be freed.
5469
5469
  */
5470
- get_stock_id(): string | null
5470
+ get_stock_id(): string
5471
5471
  /**
5472
5472
  * Queries for a tooltip by emitting
5473
5473
  * a #GtkSourceMarkAttributes::query-tooltip-markup signal. The tooltip may contain
@@ -5509,7 +5509,7 @@ interface MarkAttributes {
5509
5509
  * Sets a name of an icon to be used as a base for rendered icon.
5510
5510
  * @param icon_name name of an icon to be used.
5511
5511
  */
5512
- set_icon_name(icon_name: string | null): void
5512
+ set_icon_name(icon_name: string): void
5513
5513
  /**
5514
5514
  * Sets a pixbuf to be used as a base for rendered icon.
5515
5515
  * @param pixbuf a #GdkPixbuf to be used.
@@ -5519,7 +5519,7 @@ interface MarkAttributes {
5519
5519
  * Sets stock id to be used as a base for rendered icon.
5520
5520
  * @param stock_id a stock id.
5521
5521
  */
5522
- set_stock_id(stock_id: string | null): void
5522
+ set_stock_id(stock_id: string): void
5523
5523
 
5524
5524
  // Own signals of GtkSource-3.0.GtkSource.MarkAttributes
5525
5525
 
@@ -6227,7 +6227,7 @@ interface PrintCompositor {
6227
6227
  * gtk_source_print_compositor_paginate() function.
6228
6228
  * @param font_name the name of the default font for the body text.
6229
6229
  */
6230
- set_body_font_name(font_name: string | null): void
6230
+ set_body_font_name(font_name: string): void
6231
6231
  /**
6232
6232
  * Sets the bottom margin used by `compositor`.
6233
6233
  * @param margin the new bottom margin in units of `unit`.
@@ -6899,7 +6899,7 @@ interface SearchContext {
6899
6899
  * @param replace_length the length of `replace` in bytes, or -1.
6900
6900
  * @returns whether the match has been replaced.
6901
6901
  */
6902
- replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string | null, replace_length: number): boolean
6902
+ replace(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean
6903
6903
  /**
6904
6904
  * Replaces a search match by another text. If `match_start` and `match_end`
6905
6905
  * doesn't correspond to a search match, %FALSE is returned.
@@ -6916,7 +6916,7 @@ interface SearchContext {
6916
6916
  * @param replace_length the length of `replace` in bytes, or -1.
6917
6917
  * @returns whether the match has been replaced.
6918
6918
  */
6919
- replace2(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string | null, replace_length: number): boolean
6919
+ replace2(match_start: Gtk.TextIter, match_end: Gtk.TextIter, replace: string, replace_length: number): boolean
6920
6920
  /**
6921
6921
  * Replaces all search matches by another text. It is a synchronous function, so
6922
6922
  * it can block the user interface.
@@ -6928,7 +6928,7 @@ interface SearchContext {
6928
6928
  * @param replace_length the length of `replace` in bytes, or -1.
6929
6929
  * @returns the number of replaced matches.
6930
6930
  */
6931
- replace_all(replace: string | null, replace_length: number): number
6931
+ replace_all(replace: string, replace_length: number): number
6932
6932
  /**
6933
6933
  * Enables or disables the search occurrences highlighting.
6934
6934
  * @param highlight the setting.
@@ -7329,7 +7329,7 @@ interface SpaceDrawer {
7329
7329
  * @param key the `settings` key to bind.
7330
7330
  * @param flags flags for the binding.
7331
7331
  */
7332
- bind_matrix_setting(settings: Gio.Settings, key: string | null, flags: Gio.SettingsBindFlags): void
7332
+ bind_matrix_setting(settings: Gio.Settings, key: string, flags: Gio.SettingsBindFlags): void
7333
7333
  get_enable_matrix(): boolean
7334
7334
  /**
7335
7335
  * Gets the value of the #GtkSourceSpaceDrawer:matrix property, as a #GVariant.
@@ -7644,9 +7644,9 @@ interface StyleScheme {
7644
7644
  get_authors(): string[] | null
7645
7645
  get_description(): string | null
7646
7646
  get_filename(): string | null
7647
- get_id(): string | null
7648
- get_name(): string | null
7649
- get_style(style_id: string | null): Style | null
7647
+ get_id(): string
7648
+ get_name(): string
7649
+ get_style(style_id: string): Style | null
7650
7650
 
7651
7651
  // Class property signals of GtkSource-3.0.GtkSource.StyleScheme
7652
7652
 
@@ -7708,7 +7708,7 @@ interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Actionable,
7708
7708
  * Also see gtk_container_child_notify().
7709
7709
  * @param child_property the name of a child property installed on the class of `widget’`s parent
7710
7710
  */
7711
- child_notify(child_property: string | null): void
7711
+ child_notify(child_property: string): void
7712
7712
  /**
7713
7713
  * Emits a #GtkWidget::child-notify signal for the
7714
7714
  * [child property][child-properties]
@@ -7720,7 +7720,7 @@ interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Actionable,
7720
7720
  * @param child the child widget
7721
7721
  * @param child_property the name of a child property installed on the class of `container`
7722
7722
  */
7723
- child_notify(child: Gtk.Widget, child_property: string | null): void
7723
+ child_notify(child: Gtk.Widget, child_property: string): void
7724
7724
 
7725
7725
  // Overloads of child_notify
7726
7726
 
@@ -7734,7 +7734,7 @@ interface StyleSchemeChooserButton extends Atk.ImplementorIface, Gtk.Actionable,
7734
7734
  * Also see gtk_container_child_notify().
7735
7735
  * @param child_property the name of a child property installed on the class of `widget’`s parent
7736
7736
  */
7737
- child_notify(child_property: string | null): void
7737
+ child_notify(child_property: string): void
7738
7738
 
7739
7739
  // Class property signals of GtkSource-3.0.GtkSource.StyleSchemeChooserButton
7740
7740
 
@@ -7965,7 +7965,7 @@ interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buildable,
7965
7965
  * @param child the child widget
7966
7966
  * @param child_property the name of a child property installed on the class of `container`
7967
7967
  */
7968
- child_notify(child: Gtk.Widget, child_property: string | null): void
7968
+ child_notify(child: Gtk.Widget, child_property: string): void
7969
7969
 
7970
7970
  // Overloads of child_notify
7971
7971
 
@@ -7979,7 +7979,7 @@ interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buildable,
7979
7979
  * Also see gtk_container_child_notify().
7980
7980
  * @param child_property the name of a child property installed on the class of `widget’`s parent
7981
7981
  */
7982
- child_notify(child_property: string | null): void
7982
+ child_notify(child_property: string): void
7983
7983
  /**
7984
7984
  * Emits a #GtkWidget::child-notify signal for the
7985
7985
  * [child property][child-properties] `child_property`
@@ -7990,7 +7990,7 @@ interface StyleSchemeChooserWidget extends Atk.ImplementorIface, Gtk.Buildable,
7990
7990
  * Also see gtk_container_child_notify().
7991
7991
  * @param child_property the name of a child property installed on the class of `widget’`s parent
7992
7992
  */
7993
- child_notify(child_property: string | null): void
7993
+ child_notify(child_property: string): void
7994
7994
 
7995
7995
  // Class property signals of GtkSource-3.0.GtkSource.StyleSchemeChooserWidget
7996
7996
 
@@ -8190,7 +8190,7 @@ interface StyleSchemeManager {
8190
8190
  * See gtk_source_style_scheme_manager_set_search_path() for details.
8191
8191
  * @param path a directory or a filename.
8192
8192
  */
8193
- append_search_path(path: string | null): void
8193
+ append_search_path(path: string): void
8194
8194
  /**
8195
8195
  * Mark any currently cached information about the available style scehems
8196
8196
  * as invalid. All the available style schemes will be reloaded next time
@@ -8202,7 +8202,7 @@ interface StyleSchemeManager {
8202
8202
  * @param scheme_id style scheme id to find.
8203
8203
  * @returns a #GtkSourceStyleScheme object. Returned value is owned by @manager and must not be unref'ed.
8204
8204
  */
8205
- get_scheme(scheme_id: string | null): StyleScheme
8205
+ get_scheme(scheme_id: string): StyleScheme
8206
8206
  /**
8207
8207
  * Returns the ids of the available style schemes.
8208
8208
  * @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.
@@ -8220,7 +8220,7 @@ interface StyleSchemeManager {
8220
8220
  * See gtk_source_style_scheme_manager_set_search_path() for details.
8221
8221
  * @param path a directory or a filename.
8222
8222
  */
8223
- prepend_search_path(path: string | null): void
8223
+ prepend_search_path(path: string): void
8224
8224
  /**
8225
8225
  * Sets the list of directories where the `manager` looks for
8226
8226
  * style scheme files.
@@ -8993,7 +8993,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
8993
8993
  * @param priority place where priority of the category will be stored.
8994
8994
  * @returns #GtkSourceMarkAttributes for the @category. The object belongs to @view, so it must not be unreffed.
8995
8995
  */
8996
- get_mark_attributes(category: string | null, priority: number): MarkAttributes
8996
+ get_mark_attributes(category: string, priority: number): MarkAttributes
8997
8997
  /**
8998
8998
  * Gets the position of the right margin in the given `view`.
8999
8999
  * @returns the position of the right margin.
@@ -9131,7 +9131,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
9131
9131
  * @param attributes mark attributes.
9132
9132
  * @param priority priority of the category.
9133
9133
  */
9134
- set_mark_attributes(category: string | null, attributes: MarkAttributes, priority: number): void
9134
+ set_mark_attributes(category: string, attributes: MarkAttributes, priority: number): void
9135
9135
  /**
9136
9136
  * Sets the position of the right margin in the given `view`.
9137
9137
  * @param pos the width in characters where to position the right margin.
@@ -9216,7 +9216,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
9216
9216
  * @param child the child widget
9217
9217
  * @param child_property the name of a child property installed on the class of `container`
9218
9218
  */
9219
- child_notify(child: Gtk.Widget, child_property: string | null): void
9219
+ child_notify(child: Gtk.Widget, child_property: string): void
9220
9220
 
9221
9221
  // Overloads of child_notify
9222
9222
 
@@ -9230,7 +9230,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
9230
9230
  * Also see gtk_container_child_notify().
9231
9231
  * @param child_property the name of a child property installed on the class of `widget’`s parent
9232
9232
  */
9233
- child_notify(child_property: string | null): void
9233
+ child_notify(child_property: string): void
9234
9234
  /**
9235
9235
  * Emits a #GtkWidget::child-notify signal for the
9236
9236
  * [child property][child-properties] `child_property`
@@ -9241,7 +9241,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
9241
9241
  * Also see gtk_container_child_notify().
9242
9242
  * @param child_property the name of a child property installed on the class of `widget’`s parent
9243
9243
  */
9244
- child_notify(child_property: string | null): void
9244
+ child_notify(child_property: string): void
9245
9245
 
9246
9246
  // Own virtual methods of GtkSource-3.0.GtkSource.View
9247
9247
 
@@ -9848,12 +9848,12 @@ interface Encoding {
9848
9848
  * "ISO-8859-1".
9849
9849
  * @returns the character set of the #GtkSourceEncoding.
9850
9850
  */
9851
- get_charset(): string | null
9851
+ get_charset(): string
9852
9852
  /**
9853
9853
  * Gets the name of the #GtkSourceEncoding such as "Unicode" or "Western".
9854
9854
  * @returns the name of the #GtkSourceEncoding.
9855
9855
  */
9856
- get_name(): string | null
9856
+ get_name(): string
9857
9857
  to_string(): string | null
9858
9858
  }
9859
9859
 
@@ -9891,7 +9891,7 @@ class Encoding {
9891
9891
  * @param charset a character set.
9892
9892
  * @returns the corresponding #GtkSourceEncoding, or %NULL if not found.
9893
9893
  */
9894
- static get_from_charset(charset: string | null): Encoding | null
9894
+ static get_from_charset(charset: string): Encoding | null
9895
9895
  static get_utf8(): Encoding
9896
9896
  }
9897
9897
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gtksource-3.0",
3
- "version": "3.0.0-3.2.6",
3
+ "version": "3.0.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for GtkSource-3.0, generated from library version 3.0.0",
5
5
  "type": "module",
6
6
  "module": "gtksource-3.0.js",
@@ -25,20 +25,20 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gtksource-3.0.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/freetype2-2.0": "^2.0.0-3.2.6",
31
- "@girs/gdk-3.0": "^3.24.38-3.2.6",
32
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.6",
33
- "@girs/gio-2.0": "^2.78.0-3.2.6",
34
- "@girs/gjs": "^3.2.6",
35
- "@girs/glib-2.0": "^2.78.0-3.2.6",
36
- "@girs/gmodule-2.0": "^2.0.0-3.2.6",
37
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
38
- "@girs/gtk-3.0": "^3.24.38-3.2.6",
39
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.6",
40
- "@girs/pango-1.0": "^1.51.0-3.2.6",
41
- "@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/freetype2-2.0": "^2.0.0-3.2.7",
31
+ "@girs/gdk-3.0": "^3.24.38-3.2.7",
32
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.7",
33
+ "@girs/gio-2.0": "^2.78.0-3.2.7",
34
+ "@girs/gjs": "^3.2.7",
35
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
36
+ "@girs/gmodule-2.0": "^2.0.0-3.2.7",
37
+ "@girs/gobject-2.0": "^2.78.0-3.2.7",
38
+ "@girs/gtk-3.0": "^3.24.38-3.2.7",
39
+ "@girs/harfbuzz-0.0": "^8.2.1-3.2.7",
40
+ "@girs/pango-1.0": "^1.51.0-3.2.7",
41
+ "@girs/xlib-2.0": "^2.0.0-3.2.7"
42
42
  },
43
43
  "devDependencies": {
44
44
  "typescript": "*"