@girs/gtksource-3.0 3.0.0-3.2.8 → 3.0.0-3.3.0

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.8.
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.3.0.
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
 
@@ -4,9 +4,5 @@ declare module 'gi://GtkSource?version=3.0' {
4
4
  export default GtkSource30;
5
5
  }
6
6
 
7
- declare module 'gi://GtkSource' {
8
- import GtkSource30 from '@girs/gtksource-3.0';
9
- export default GtkSource30;
10
- }
11
7
 
12
8
 
@@ -1302,7 +1302,7 @@ export interface Buffer {
1302
1302
  * @param category category to search for, or %NULL
1303
1303
  * @returns whether @iter was moved.
1304
1304
  */
1305
- backward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
1305
+ backward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): boolean
1306
1306
  /**
1307
1307
  * Marks the beginning of a not undoable action on the buffer,
1308
1308
  * disabling the undo manager. Typically you would call this function
@@ -1380,7 +1380,7 @@ export interface Buffer {
1380
1380
  * @param category category to search for, or %NULL
1381
1381
  * @returns whether @iter was moved.
1382
1382
  */
1383
- forward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
1383
+ forward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): boolean
1384
1384
  /**
1385
1385
  * Get all defined context classes at `iter`.
1386
1386
  *
@@ -1419,7 +1419,7 @@ export interface Buffer {
1419
1419
  * is %NULL it returns all marks at `iter`.
1420
1420
  * @param iter an iterator.
1421
1421
  * @param category category to search for, or %NULL
1422
- * @returns a newly allocated #GSList.
1422
+ * @returns a newly allocated #GSList.
1423
1423
  */
1424
1424
  get_source_marks_at_iter(iter: Gtk.TextIter, category: string | null): Mark[]
1425
1425
  /**
@@ -1427,7 +1427,7 @@ export interface Buffer {
1427
1427
  * If `category` is %NULL, all marks at `line` are returned.
1428
1428
  * @param line a line number.
1429
1429
  * @param category category to search for, or %NULL
1430
- * @returns a newly allocated #GSList.
1430
+ * @returns a newly allocated #GSList.
1431
1431
  */
1432
1432
  get_source_marks_at_line(line: number, category: string | null): Mark[]
1433
1433
  /**
@@ -1456,7 +1456,7 @@ export interface Buffer {
1456
1456
  * @param context_class the context class.
1457
1457
  * @returns whether we found a context class toggle before @iter
1458
1458
  */
1459
- iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
1459
+ iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean
1460
1460
  /**
1461
1461
  * Moves forward to the next toggle (on or off) of the context class. If no
1462
1462
  * matching context class toggles are found, returns %FALSE, otherwise %TRUE.
@@ -1469,7 +1469,7 @@ export interface Buffer {
1469
1469
  * @param context_class the context class.
1470
1470
  * @returns whether we found a context class toggle after @iter
1471
1471
  */
1472
- iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
1472
+ iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean
1473
1473
  /**
1474
1474
  * Check if the class `context_class` is set on `iter`.
1475
1475
  *
@@ -1949,7 +1949,7 @@ export interface Completion extends Gtk.Buildable {
1949
1949
  /**
1950
1950
  * Get list of providers registered on `completion`. The returned list is owned
1951
1951
  * by the completion and should not be freed.
1952
- * @returns list of #GtkSourceCompletionProvider.
1952
+ * @returns list of #GtkSourceCompletionProvider.
1953
1953
  */
1954
1954
  get_providers(): CompletionProvider[]
1955
1955
  /**
@@ -1983,7 +1983,7 @@ export interface Completion extends Gtk.Buildable {
1983
1983
  * Another solution is to add providers with
1984
1984
  * gtk_source_completion_add_provider(), and implement
1985
1985
  * gtk_source_completion_provider_match() for each provider.
1986
- * @param providers a list of #GtkSourceCompletionProvider, or %NULL.
1986
+ * @param providers a list of #GtkSourceCompletionProvider, or %NULL.
1987
1987
  * @param context The #GtkSourceCompletionContext with which to start the completion.
1988
1988
  * @returns %TRUE if it was possible to the show completion window.
1989
1989
  */
@@ -4339,7 +4339,7 @@ export interface Language {
4339
4339
  * Returns the globs associated to this language. This is just
4340
4340
  * an utility wrapper around gtk_source_language_get_metadata() to
4341
4341
  * retrieve the "globs" metadata property and split it into an array.
4342
- * @returns a newly-allocated %NULL terminated array containing the globs or %NULL if no globs are found. The returned array must be freed with g_strfreev().
4342
+ * @returns a newly-allocated %NULL terminated array containing the globs or %NULL if no globs are found. The returned array must be freed with g_strfreev().
4343
4343
  */
4344
4344
  get_globs(): string[] | null
4345
4345
  /**
@@ -4360,7 +4360,7 @@ export interface Language {
4360
4360
  * an utility wrapper around gtk_source_language_get_metadata() to
4361
4361
  * retrieve the "mimetypes" metadata property and split it into an
4362
4362
  * array.
4363
- * @returns a newly-allocated %NULL terminated array containing the mime types or %NULL if no mime types are found. The returned array must be freed with g_strfreev().
4363
+ * @returns a newly-allocated %NULL terminated array containing the mime types or %NULL if no mime types are found. The returned array must be freed with g_strfreev().
4364
4364
  */
4365
4365
  get_mime_types(): string[] | null
4366
4366
  /**
@@ -4388,7 +4388,7 @@ export interface Language {
4388
4388
  get_style_fallback(style_id: string): string | null
4389
4389
  /**
4390
4390
  * Returns the ids of the styles defined by this `language`.
4391
- * @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().
4391
+ * @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().
4392
4392
  */
4393
4393
  get_style_ids(): string[] | null
4394
4394
  /**
@@ -4467,7 +4467,7 @@ export interface LanguageManager {
4467
4467
  get_language(id: string): Language | null
4468
4468
  /**
4469
4469
  * Returns the ids of the available languages.
4470
- * @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.
4470
+ * @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.
4471
4471
  */
4472
4472
  get_language_ids(): string[] | null
4473
4473
  /**
@@ -4526,7 +4526,7 @@ export interface LanguageManager {
4526
4526
  * you have to call this function right after creating it.
4527
4527
  * </para>
4528
4528
  * </note>
4529
- * @param dirs a %NULL-terminated array of strings or %NULL.
4529
+ * @param dirs a %NULL-terminated array of strings or %NULL.
4530
4530
  */
4531
4531
  set_search_path(dirs: string[] | null): void
4532
4532
 
@@ -7638,7 +7638,7 @@ export interface StyleSchemeManager {
7638
7638
  get_scheme(scheme_id: string): StyleScheme
7639
7639
  /**
7640
7640
  * Returns the ids of the available style schemes.
7641
- * @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.
7641
+ * @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.
7642
7642
  */
7643
7643
  get_scheme_ids(): string[] | null
7644
7644
  /**
@@ -7658,7 +7658,7 @@ export interface StyleSchemeManager {
7658
7658
  * Sets the list of directories where the `manager` looks for
7659
7659
  * style scheme files.
7660
7660
  * If `path` is %NULL, the search path is reset to default.
7661
- * @param path a %NULL-terminated array of strings or %NULL.
7661
+ * @param path a %NULL-terminated array of strings or %NULL.
7662
7662
  */
7663
7663
  set_search_path(path: string[] | null): void
7664
7664
 
@@ -1304,7 +1304,7 @@ interface Buffer {
1304
1304
  * @param category category to search for, or %NULL
1305
1305
  * @returns whether @iter was moved.
1306
1306
  */
1307
- backward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
1307
+ backward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): boolean
1308
1308
  /**
1309
1309
  * Marks the beginning of a not undoable action on the buffer,
1310
1310
  * disabling the undo manager. Typically you would call this function
@@ -1382,7 +1382,7 @@ interface Buffer {
1382
1382
  * @param category category to search for, or %NULL
1383
1383
  * @returns whether @iter was moved.
1384
1384
  */
1385
- forward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
1385
+ forward_iter_to_source_mark(iter: Gtk.TextIter, category: string | null): boolean
1386
1386
  /**
1387
1387
  * Get all defined context classes at `iter`.
1388
1388
  *
@@ -1421,7 +1421,7 @@ interface Buffer {
1421
1421
  * is %NULL it returns all marks at `iter`.
1422
1422
  * @param iter an iterator.
1423
1423
  * @param category category to search for, or %NULL
1424
- * @returns a newly allocated #GSList.
1424
+ * @returns a newly allocated #GSList.
1425
1425
  */
1426
1426
  get_source_marks_at_iter(iter: Gtk.TextIter, category: string | null): Mark[]
1427
1427
  /**
@@ -1429,7 +1429,7 @@ interface Buffer {
1429
1429
  * If `category` is %NULL, all marks at `line` are returned.
1430
1430
  * @param line a line number.
1431
1431
  * @param category category to search for, or %NULL
1432
- * @returns a newly allocated #GSList.
1432
+ * @returns a newly allocated #GSList.
1433
1433
  */
1434
1434
  get_source_marks_at_line(line: number, category: string | null): Mark[]
1435
1435
  /**
@@ -1458,7 +1458,7 @@ interface Buffer {
1458
1458
  * @param context_class the context class.
1459
1459
  * @returns whether we found a context class toggle before @iter
1460
1460
  */
1461
- iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
1461
+ iter_backward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean
1462
1462
  /**
1463
1463
  * Moves forward to the next toggle (on or off) of the context class. If no
1464
1464
  * matching context class toggles are found, returns %FALSE, otherwise %TRUE.
@@ -1471,7 +1471,7 @@ interface Buffer {
1471
1471
  * @param context_class the context class.
1472
1472
  * @returns whether we found a context class toggle after @iter
1473
1473
  */
1474
- iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): [ /* returnType */ boolean, /* iter */ Gtk.TextIter ]
1474
+ iter_forward_to_context_class_toggle(iter: Gtk.TextIter, context_class: string): boolean
1475
1475
  /**
1476
1476
  * Check if the class `context_class` is set on `iter`.
1477
1477
  *
@@ -1951,7 +1951,7 @@ interface Completion extends Gtk.Buildable {
1951
1951
  /**
1952
1952
  * Get list of providers registered on `completion`. The returned list is owned
1953
1953
  * by the completion and should not be freed.
1954
- * @returns list of #GtkSourceCompletionProvider.
1954
+ * @returns list of #GtkSourceCompletionProvider.
1955
1955
  */
1956
1956
  get_providers(): CompletionProvider[]
1957
1957
  /**
@@ -1985,7 +1985,7 @@ interface Completion extends Gtk.Buildable {
1985
1985
  * Another solution is to add providers with
1986
1986
  * gtk_source_completion_add_provider(), and implement
1987
1987
  * gtk_source_completion_provider_match() for each provider.
1988
- * @param providers a list of #GtkSourceCompletionProvider, or %NULL.
1988
+ * @param providers a list of #GtkSourceCompletionProvider, or %NULL.
1989
1989
  * @param context The #GtkSourceCompletionContext with which to start the completion.
1990
1990
  * @returns %TRUE if it was possible to the show completion window.
1991
1991
  */
@@ -4341,7 +4341,7 @@ interface Language {
4341
4341
  * Returns the globs associated to this language. This is just
4342
4342
  * an utility wrapper around gtk_source_language_get_metadata() to
4343
4343
  * retrieve the "globs" metadata property and split it into an array.
4344
- * @returns a newly-allocated %NULL terminated array containing the globs or %NULL if no globs are found. The returned array must be freed with g_strfreev().
4344
+ * @returns a newly-allocated %NULL terminated array containing the globs or %NULL if no globs are found. The returned array must be freed with g_strfreev().
4345
4345
  */
4346
4346
  get_globs(): string[] | null
4347
4347
  /**
@@ -4362,7 +4362,7 @@ interface Language {
4362
4362
  * an utility wrapper around gtk_source_language_get_metadata() to
4363
4363
  * retrieve the "mimetypes" metadata property and split it into an
4364
4364
  * array.
4365
- * @returns a newly-allocated %NULL terminated array containing the mime types or %NULL if no mime types are found. The returned array must be freed with g_strfreev().
4365
+ * @returns a newly-allocated %NULL terminated array containing the mime types or %NULL if no mime types are found. The returned array must be freed with g_strfreev().
4366
4366
  */
4367
4367
  get_mime_types(): string[] | null
4368
4368
  /**
@@ -4390,7 +4390,7 @@ interface Language {
4390
4390
  get_style_fallback(style_id: string): string | null
4391
4391
  /**
4392
4392
  * Returns the ids of the styles defined by this `language`.
4393
- * @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().
4393
+ * @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().
4394
4394
  */
4395
4395
  get_style_ids(): string[] | null
4396
4396
  /**
@@ -4469,7 +4469,7 @@ interface LanguageManager {
4469
4469
  get_language(id: string): Language | null
4470
4470
  /**
4471
4471
  * Returns the ids of the available languages.
4472
- * @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.
4472
+ * @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.
4473
4473
  */
4474
4474
  get_language_ids(): string[] | null
4475
4475
  /**
@@ -4528,7 +4528,7 @@ interface LanguageManager {
4528
4528
  * you have to call this function right after creating it.
4529
4529
  * </para>
4530
4530
  * </note>
4531
- * @param dirs a %NULL-terminated array of strings or %NULL.
4531
+ * @param dirs a %NULL-terminated array of strings or %NULL.
4532
4532
  */
4533
4533
  set_search_path(dirs: string[] | null): void
4534
4534
 
@@ -7640,7 +7640,7 @@ interface StyleSchemeManager {
7640
7640
  get_scheme(scheme_id: string): StyleScheme
7641
7641
  /**
7642
7642
  * Returns the ids of the available style schemes.
7643
- * @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.
7643
+ * @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.
7644
7644
  */
7645
7645
  get_scheme_ids(): string[] | null
7646
7646
  /**
@@ -7660,7 +7660,7 @@ interface StyleSchemeManager {
7660
7660
  * Sets the list of directories where the `manager` looks for
7661
7661
  * style scheme files.
7662
7662
  * If `path` is %NULL, the search path is reset to default.
7663
- * @param path a %NULL-terminated array of strings or %NULL.
7663
+ * @param path a %NULL-terminated array of strings or %NULL.
7664
7664
  */
7665
7665
  set_search_path(path: string[] | null): void
7666
7666
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gtksource-3.0",
3
- "version": "3.0.0-3.2.8",
3
+ "version": "3.0.0-3.3.0",
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",
@@ -31,20 +31,20 @@
31
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gtksource-3.0.d.cts"
32
32
  },
33
33
  "dependencies": {
34
- "@girs/atk-1.0": "^2.45.1-3.2.8",
35
- "@girs/cairo-1.0": "^1.0.0-3.2.8",
36
- "@girs/freetype2-2.0": "^2.0.0-3.2.8",
37
- "@girs/gdk-3.0": "^3.24.39-3.2.8",
38
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.8",
39
- "@girs/gio-2.0": "^2.77.0-3.2.8",
40
- "@girs/gjs": "^3.2.8",
41
- "@girs/glib-2.0": "^2.77.0-3.2.8",
42
- "@girs/gmodule-2.0": "^2.0.0-3.2.8",
43
- "@girs/gobject-2.0": "^2.77.0-3.2.8",
44
- "@girs/gtk-3.0": "^3.24.39-3.2.8",
45
- "@girs/harfbuzz-0.0": "^8.1.1-3.2.8",
46
- "@girs/pango-1.0": "^1.51.0-3.2.8",
47
- "@girs/xlib-2.0": "^2.0.0-3.2.8"
34
+ "@girs/atk-1.0": "^2.50.1-3.3.0",
35
+ "@girs/cairo-1.0": "^1.0.0-3.3.0",
36
+ "@girs/freetype2-2.0": "^2.0.0-3.3.0",
37
+ "@girs/gdk-3.0": "^3.24.41-3.3.0",
38
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.3.0",
39
+ "@girs/gio-2.0": "^2.78.0-3.3.0",
40
+ "@girs/gjs": "^3.3.0",
41
+ "@girs/glib-2.0": "^2.78.0-3.3.0",
42
+ "@girs/gmodule-2.0": "^2.0.0-3.3.0",
43
+ "@girs/gobject-2.0": "^2.78.0-3.3.0",
44
+ "@girs/gtk-3.0": "^3.24.41-3.3.0",
45
+ "@girs/harfbuzz-0.0": "^8.2.1-3.3.0",
46
+ "@girs/pango-1.0": "^1.51.0-3.3.0",
47
+ "@girs/xlib-2.0": "^2.0.0-3.3.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "typescript": "*"