@girs/gtksource-4 5.2.0 → 5.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
@@ -4,7 +4,7 @@
4
4
  ![version](https://img.shields.io/npm/v/@girs/gtksource-4)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gtksource-4)
6
6
 
7
- GJS TypeScript type definitions for GtkSource-4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.2.0.
7
+ GJS TypeScript type definitions for GtkSource-4 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.3.0.
8
8
 
9
9
  This package contains type declarations only. It ships no runtime code, so it adds
10
10
  nothing to your program and works with any bundler or none at all.
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * The GIR-derived widget VOCABULARY for GtkSource-4.
3
3
  *
4
- * GENERATED — do not edit. Provenance: GtkSource-4 — dropped empty base(s): GObject.Object GObject.InitiallyUnowned Atk.ImplementorIface
4
+ * GENERATED — do not edit. Provenance: GtkSource-4 — dropped empty base(s): Atk.ImplementorIface
5
5
  *
6
- * 29 instantiable GTypes (of which 5 concrete widgets), 33 declarations, 9 enum nick unions, 1 slot candidates.
6
+ * 29 instantiable GTypes (of which 5 concrete widgets), 33 declarations, 8 enum nick unions, 1 slot candidates.
7
7
  *
8
8
  * Module-scoped exports only. There is no `JSX` namespace here, no tag spelling and
9
9
  * no `on<Signal>` prop name: those are DIALECT, and every framework answers them
@@ -31,7 +31,9 @@ import type Gio from '@girs/gio-2.0';
31
31
  import type Gtk from '@girs/gtk-3.0';
32
32
  import type GtkSource from './gtksource-4.js';
33
33
  import type Pango from '@girs/pango-1.0';
34
+ import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
34
35
  import type { GtkActionableConstructOnly, GtkActionableProps, GtkActivatableConstructOnly, GtkActivatableProps, GtkBinConstructOnly, GtkBinProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkButtonConstructOnly, GtkButtonProps, GtkContainerConstructOnly, GtkContainerProps, GtkScrollableConstructOnly, GtkScrollableProps, GtkTextBufferConstructOnly, GtkTextBufferProps, GtkTextMarkConstructOnly, GtkTextMarkProps, GtkTextTagConstructOnly, GtkTextTagProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkTextWindowTypeNick, GtkWidgetConstructOnly, GtkWidgetProps, GtkWindowConstructOnly, GtkWindowProps, GtkWrapModeNick } from '@girs/gtk-3.0/vocabulary';
36
+ import type { PangoUnderlineNick } from '@girs/pango-1.0/vocabulary';
35
37
 
36
38
  // ---------------------------------------------------------------------------
37
39
  // Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
@@ -51,7 +53,6 @@ export type GtkSourceGutterRendererAlignmentModeNick = 'cell' | 'first' | 'last'
51
53
  export type GtkSourceNewlineTypeNick = 'lf' | 'cr' | 'cr-lf';
52
54
  export type GtkSourceSmartHomeEndTypeNick = 'disabled' | 'before' | 'after' | 'always';
53
55
  export type GtkSourceViewGutterPositionNick = 'lines' | 'marks';
54
- export type PangoUnderlineNick = 'none' | 'single' | 'double' | 'low' | 'error' | 'single-line' | 'double-line' | 'error-line';
55
56
 
56
57
  // ---------------------------------------------------------------------------
57
58
  // Property surfaces — one interface per GIR DECLARATION, mirroring GIR's own
@@ -93,7 +94,7 @@ export interface GtkSourceBufferProps extends GtkTextBufferProps {
93
94
  /** Settable only at construction — a renderer must REBUILD, not patch. */
94
95
  export type GtkSourceBufferConstructOnly = GtkTextBufferConstructOnly;
95
96
 
96
- export interface GtkSourceCompletionProps extends GtkBuildableProps {
97
+ export interface GtkSourceCompletionProps extends GObjectProps, GtkBuildableProps {
97
98
  /**
98
99
  * Number of keyboard accelerators to show for the first proposals.
99
100
  * @default 5
@@ -138,9 +139,9 @@ export interface GtkSourceCompletionProps extends GtkBuildableProps {
138
139
  view?: GtkSource.View | null;
139
140
  }
140
141
  /** Settable only at construction — a renderer must REBUILD, not patch. */
141
- export type GtkSourceCompletionConstructOnly = GtkBuildableConstructOnly | 'view';
142
+ export type GtkSourceCompletionConstructOnly = GObjectConstructOnly | GtkBuildableConstructOnly | 'view';
142
143
 
143
- export interface GtkSourceCompletionContextProps {
144
+ export interface GtkSourceCompletionContextProps extends GInitiallyUnownedProps {
144
145
  /**
145
146
  * The completion activation
146
147
  * @default GTK_SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED
@@ -152,14 +153,14 @@ export interface GtkSourceCompletionContextProps {
152
153
  iter?: Gtk.TextIter;
153
154
  }
154
155
  /** Settable only at construction — a renderer must REBUILD, not patch. */
155
- export type GtkSourceCompletionContextConstructOnly = 'completion';
156
+ export type GtkSourceCompletionContextConstructOnly = GInitiallyUnownedConstructOnly | 'completion';
156
157
 
157
158
  export interface GtkSourceCompletionInfoProps extends GtkWindowProps, GtkBuildableProps {
158
159
  }
159
160
  /** Settable only at construction — a renderer must REBUILD, not patch. */
160
161
  export type GtkSourceCompletionInfoConstructOnly = GtkWindowConstructOnly | GtkBuildableConstructOnly;
161
162
 
162
- export interface GtkSourceCompletionItemProps extends GtkSourceCompletionProposalProps {
163
+ export interface GtkSourceCompletionItemProps extends GObjectProps, GtkSourceCompletionProposalProps {
163
164
  /**
164
165
  * The #GIcon for the icon to be shown for this proposal.
165
166
  * @since 3.18
@@ -195,19 +196,19 @@ export interface GtkSourceCompletionItemProps extends GtkSourceCompletionProposa
195
196
  text?: string;
196
197
  }
197
198
  /** Settable only at construction — a renderer must REBUILD, not patch. */
198
- export type GtkSourceCompletionItemConstructOnly = GtkSourceCompletionProposalConstructOnly;
199
+ export type GtkSourceCompletionItemConstructOnly = GObjectConstructOnly | GtkSourceCompletionProposalConstructOnly;
199
200
 
200
- export interface GtkSourceCompletionProposalProps {
201
+ export interface GtkSourceCompletionProposalProps extends GObjectProps {
201
202
  }
202
203
  /** Settable only at construction — a renderer must REBUILD, not patch. */
203
- export type GtkSourceCompletionProposalConstructOnly = never;
204
+ export type GtkSourceCompletionProposalConstructOnly = GObjectConstructOnly;
204
205
 
205
- export interface GtkSourceCompletionProviderProps {
206
+ export interface GtkSourceCompletionProviderProps extends GObjectProps {
206
207
  }
207
208
  /** Settable only at construction — a renderer must REBUILD, not patch. */
208
- export type GtkSourceCompletionProviderConstructOnly = never;
209
+ export type GtkSourceCompletionProviderConstructOnly = GObjectConstructOnly;
209
210
 
210
- export interface GtkSourceCompletionWordsProps extends GtkSourceCompletionProviderProps {
211
+ export interface GtkSourceCompletionWordsProps extends GObjectProps, GtkSourceCompletionProviderProps {
211
212
  /**
212
213
  * The type of activation.
213
214
  * @since 3.10
@@ -229,9 +230,9 @@ export interface GtkSourceCompletionWordsProps extends GtkSourceCompletionProvid
229
230
  'scan-batch-size'?: number;
230
231
  }
231
232
  /** Settable only at construction — a renderer must REBUILD, not patch. */
232
- export type GtkSourceCompletionWordsConstructOnly = GtkSourceCompletionProviderConstructOnly;
233
+ export type GtkSourceCompletionWordsConstructOnly = GObjectConstructOnly | GtkSourceCompletionProviderConstructOnly;
233
234
 
234
- export interface GtkSourceFileProps {
235
+ export interface GtkSourceFileProps extends GObjectProps {
235
236
  /**
236
237
  * The location.
237
238
  * @since 3.14
@@ -239,9 +240,9 @@ export interface GtkSourceFileProps {
239
240
  location?: Gio.File;
240
241
  }
241
242
  /** Settable only at construction — a renderer must REBUILD, not patch. */
242
- export type GtkSourceFileConstructOnly = never;
243
+ export type GtkSourceFileConstructOnly = GObjectConstructOnly;
243
244
 
244
- export interface GtkSourceFileLoaderProps {
245
+ export interface GtkSourceFileLoaderProps extends GObjectProps {
245
246
  /**
246
247
  * The #GtkSourceBuffer to load the contents into.
247
248
  * @since 3.14
@@ -264,9 +265,9 @@ export interface GtkSourceFileLoaderProps {
264
265
  location?: Gio.File | null;
265
266
  }
266
267
  /** Settable only at construction — a renderer must REBUILD, not patch. */
267
- export type GtkSourceFileLoaderConstructOnly = 'buffer' | 'file' | 'input-stream' | 'location';
268
+ export type GtkSourceFileLoaderConstructOnly = GObjectConstructOnly | 'buffer' | 'file' | 'input-stream' | 'location';
268
269
 
269
- export interface GtkSourceFileSaverProps {
270
+ export interface GtkSourceFileSaverProps extends GObjectProps {
270
271
  /**
271
272
  * The #GtkSourceBuffer to save.
272
273
  * @since 3.14
@@ -307,9 +308,9 @@ export interface GtkSourceFileSaverProps {
307
308
  'newline-type'?: GtkSourceNewlineTypeNick | GtkSource.NewlineType;
308
309
  }
309
310
  /** Settable only at construction — a renderer must REBUILD, not patch. */
310
- export type GtkSourceFileSaverConstructOnly = 'buffer' | 'file' | 'location';
311
+ export type GtkSourceFileSaverConstructOnly = GObjectConstructOnly | 'buffer' | 'file' | 'location';
311
312
 
312
- export interface GtkSourceGutterProps {
313
+ export interface GtkSourceGutterProps extends GObjectProps {
313
314
  /** The #GtkSourceView of the gutter. */
314
315
  view?: GtkSource.View;
315
316
  /**
@@ -319,9 +320,9 @@ export interface GtkSourceGutterProps {
319
320
  'window-type'?: GtkTextWindowTypeNick | Gtk.TextWindowType;
320
321
  }
321
322
  /** Settable only at construction — a renderer must REBUILD, not patch. */
322
- export type GtkSourceGutterConstructOnly = 'view' | 'window-type';
323
+ export type GtkSourceGutterConstructOnly = GObjectConstructOnly | 'view' | 'window-type';
323
324
 
324
- export interface GtkSourceGutterRendererProps {
325
+ export interface GtkSourceGutterRendererProps extends GInitiallyUnownedProps {
325
326
  /**
326
327
  * The alignment mode of the renderer.
327
328
  * @default GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_CELL
@@ -359,7 +360,7 @@ export interface GtkSourceGutterRendererProps {
359
360
  ypad?: number;
360
361
  }
361
362
  /** Settable only at construction — a renderer must REBUILD, not patch. */
362
- export type GtkSourceGutterRendererConstructOnly = never;
363
+ export type GtkSourceGutterRendererConstructOnly = GInitiallyUnownedConstructOnly;
363
364
 
364
365
  export interface GtkSourceGutterRendererPixbufProps extends GtkSourceGutterRendererProps {
365
366
  gicon?: Gio.Icon;
@@ -379,16 +380,16 @@ export interface GtkSourceGutterRendererTextProps extends GtkSourceGutterRendere
379
380
  /** Settable only at construction — a renderer must REBUILD, not patch. */
380
381
  export type GtkSourceGutterRendererTextConstructOnly = GtkSourceGutterRendererConstructOnly;
381
382
 
382
- export interface GtkSourceLanguageProps {
383
+ export interface GtkSourceLanguageProps extends GObjectProps {
383
384
  }
384
385
  /** Settable only at construction — a renderer must REBUILD, not patch. */
385
- export type GtkSourceLanguageConstructOnly = never;
386
+ export type GtkSourceLanguageConstructOnly = GObjectConstructOnly;
386
387
 
387
- export interface GtkSourceLanguageManagerProps {
388
+ export interface GtkSourceLanguageManagerProps extends GObjectProps {
388
389
  'search-path'?: string[];
389
390
  }
390
391
  /** Settable only at construction — a renderer must REBUILD, not patch. */
391
- export type GtkSourceLanguageManagerConstructOnly = never;
392
+ export type GtkSourceLanguageManagerConstructOnly = GObjectConstructOnly;
392
393
 
393
394
  export interface GtkSourceMapProps extends GtkSourceViewProps, GtkBuildableProps, GtkScrollableProps {
394
395
  'font-desc'?: Pango.FontDescription;
@@ -407,7 +408,7 @@ export interface GtkSourceMarkProps extends GtkTextMarkProps {
407
408
  /** Settable only at construction — a renderer must REBUILD, not patch. */
408
409
  export type GtkSourceMarkConstructOnly = GtkTextMarkConstructOnly | 'category';
409
410
 
410
- export interface GtkSourceMarkAttributesProps {
411
+ export interface GtkSourceMarkAttributesProps extends GObjectProps {
411
412
  /** A color used for background of a line. */
412
413
  background?: Gdk.RGBA;
413
414
  /** A #GIcon that may be a base of a rendered icon. */
@@ -421,9 +422,9 @@ export interface GtkSourceMarkAttributesProps {
421
422
  pixbuf?: GdkPixbuf.Pixbuf;
422
423
  }
423
424
  /** Settable only at construction — a renderer must REBUILD, not patch. */
424
- export type GtkSourceMarkAttributesConstructOnly = never;
425
+ export type GtkSourceMarkAttributesConstructOnly = GObjectConstructOnly;
425
426
 
426
- export interface GtkSourcePrintCompositorProps {
427
+ export interface GtkSourcePrintCompositorProps extends GObjectProps {
427
428
  /**
428
429
  * Name of the font used for the text body.
429
430
  * @since 2.2
@@ -491,9 +492,9 @@ export interface GtkSourcePrintCompositorProps {
491
492
  'wrap-mode'?: GtkWrapModeNick | Gtk.WrapMode;
492
493
  }
493
494
  /** Settable only at construction — a renderer must REBUILD, not patch. */
494
- export type GtkSourcePrintCompositorConstructOnly = 'buffer';
495
+ export type GtkSourcePrintCompositorConstructOnly = GObjectConstructOnly | 'buffer';
495
496
 
496
- export interface GtkSourceRegionProps {
497
+ export interface GtkSourceRegionProps extends GObjectProps {
497
498
  /**
498
499
  * The #GtkTextBuffer.
499
500
  * @since 3.22
@@ -501,9 +502,9 @@ export interface GtkSourceRegionProps {
501
502
  buffer?: Gtk.TextBuffer | null;
502
503
  }
503
504
  /** Settable only at construction — a renderer must REBUILD, not patch. */
504
- export type GtkSourceRegionConstructOnly = 'buffer';
505
+ export type GtkSourceRegionConstructOnly = GObjectConstructOnly | 'buffer';
505
506
 
506
- export interface GtkSourceSearchContextProps {
507
+ export interface GtkSourceSearchContextProps extends GObjectProps {
507
508
  /**
508
509
  * The #GtkSourceBuffer associated to the search context.
509
510
  * @since 3.10
@@ -527,9 +528,9 @@ export interface GtkSourceSearchContextProps {
527
528
  settings?: GtkSource.SearchSettings;
528
529
  }
529
530
  /** Settable only at construction — a renderer must REBUILD, not patch. */
530
- export type GtkSourceSearchContextConstructOnly = 'buffer' | 'settings';
531
+ export type GtkSourceSearchContextConstructOnly = GObjectConstructOnly | 'buffer' | 'settings';
531
532
 
532
- export interface GtkSourceSearchSettingsProps {
533
+ export interface GtkSourceSearchSettingsProps extends GObjectProps {
533
534
  /**
534
535
  * If %TRUE, a search match must start and end a word.
535
536
  * @since 3.10
@@ -562,9 +563,9 @@ export interface GtkSourceSearchSettingsProps {
562
563
  'wrap-around'?: boolean;
563
564
  }
564
565
  /** Settable only at construction — a renderer must REBUILD, not patch. */
565
- export type GtkSourceSearchSettingsConstructOnly = never;
566
+ export type GtkSourceSearchSettingsConstructOnly = GObjectConstructOnly;
566
567
 
567
- export interface GtkSourceSpaceDrawerProps {
568
+ export interface GtkSourceSpaceDrawerProps extends GObjectProps {
568
569
  /**
569
570
  * Whether the #GtkSourceSpaceDrawer:matrix property is enabled.
570
571
  * @since 3.24
@@ -578,9 +579,9 @@ export interface GtkSourceSpaceDrawerProps {
578
579
  matrix?: GLib.Variant;
579
580
  }
580
581
  /** Settable only at construction — a renderer must REBUILD, not patch. */
581
- export type GtkSourceSpaceDrawerConstructOnly = never;
582
+ export type GtkSourceSpaceDrawerConstructOnly = GObjectConstructOnly;
582
583
 
583
- export interface GtkSourceStyleProps {
584
+ export interface GtkSourceStyleProps extends GObjectProps {
584
585
  /** @default NULL */
585
586
  background?: string;
586
587
  /** @default FALSE */
@@ -619,9 +620,9 @@ export interface GtkSourceStyleProps {
619
620
  'underline-set'?: boolean;
620
621
  }
621
622
  /** Settable only at construction — a renderer must REBUILD, not patch. */
622
- export type GtkSourceStyleConstructOnly = 'background' | 'background-set' | 'bold' | 'bold-set' | 'foreground' | 'foreground-set' | 'italic' | 'italic-set' | 'line-background' | 'line-background-set' | 'pango-underline' | 'scale' | 'scale-set' | 'strikethrough' | 'strikethrough-set' | 'underline-color' | 'underline-color-set' | 'underline-set';
623
+ export type GtkSourceStyleConstructOnly = GObjectConstructOnly | 'background' | 'background-set' | 'bold' | 'bold-set' | 'foreground' | 'foreground-set' | 'italic' | 'italic-set' | 'line-background' | 'line-background-set' | 'pango-underline' | 'scale' | 'scale-set' | 'strikethrough' | 'strikethrough-set' | 'underline-color' | 'underline-color-set' | 'underline-set';
623
624
 
624
- export interface GtkSourceStyleSchemeProps {
625
+ export interface GtkSourceStyleSchemeProps extends GObjectProps {
625
626
  /**
626
627
  * Style scheme id, a unique string used to identify the style scheme in #GtkSourceStyleSchemeManager.
627
628
  * @default NULL
@@ -629,9 +630,9 @@ export interface GtkSourceStyleSchemeProps {
629
630
  id?: string;
630
631
  }
631
632
  /** Settable only at construction — a renderer must REBUILD, not patch. */
632
- export type GtkSourceStyleSchemeConstructOnly = 'id';
633
+ export type GtkSourceStyleSchemeConstructOnly = GObjectConstructOnly | 'id';
633
634
 
634
- export interface GtkSourceStyleSchemeChooserProps {
635
+ export interface GtkSourceStyleSchemeChooserProps extends GObjectProps {
635
636
  /**
636
637
  * The :style-scheme property contains the currently selected style scheme.
637
638
  * @since 3.16
@@ -639,7 +640,7 @@ export interface GtkSourceStyleSchemeChooserProps {
639
640
  'style-scheme'?: GtkSource.StyleScheme;
640
641
  }
641
642
  /** Settable only at construction — a renderer must REBUILD, not patch. */
642
- export type GtkSourceStyleSchemeChooserConstructOnly = never;
643
+ export type GtkSourceStyleSchemeChooserConstructOnly = GObjectConstructOnly;
643
644
 
644
645
  export interface GtkSourceStyleSchemeChooserButtonProps extends GtkButtonProps, GtkActionableProps, GtkActivatableProps, GtkBuildableProps, GtkSourceStyleSchemeChooserProps {
645
646
  }
@@ -651,11 +652,11 @@ export interface GtkSourceStyleSchemeChooserWidgetProps extends GtkBinProps, Gtk
651
652
  /** Settable only at construction — a renderer must REBUILD, not patch. */
652
653
  export type GtkSourceStyleSchemeChooserWidgetConstructOnly = GtkBinConstructOnly | GtkBuildableConstructOnly | GtkSourceStyleSchemeChooserConstructOnly;
653
654
 
654
- export interface GtkSourceStyleSchemeManagerProps {
655
+ export interface GtkSourceStyleSchemeManagerProps extends GObjectProps {
655
656
  'search-path'?: string[];
656
657
  }
657
658
  /** Settable only at construction — a renderer must REBUILD, not patch. */
658
- export type GtkSourceStyleSchemeManagerConstructOnly = never;
659
+ export type GtkSourceStyleSchemeManagerConstructOnly = GObjectConstructOnly;
659
660
 
660
661
  export interface GtkSourceTagProps extends GtkTextTagProps {
661
662
  /**
@@ -854,6 +855,30 @@ export const PROVENANCE: {
854
855
  * GIRs disagreeing, which is what the main emitter answers `never` for as well.
855
856
  */
856
857
  readonly unresolvedProps: readonly string[];
858
+ /**
859
+ * `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
860
+ *
861
+ * The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
862
+ * and nothing else in this package states that `Gio` spells itself `G`. Carried rather
863
+ * than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
864
+ * wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
865
+ * both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
866
+ *
867
+ * Empty where the GIR states none — 17 of the 627 emitting namespaces — because
868
+ * inventing the namespace name there is a confident wrong answer in place of a missing
869
+ * one. A LIST because 20 of them state more than one, which no single string expresses.
870
+ */
871
+ readonly identifierPrefixes: readonly string[];
872
+ /**
873
+ * Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
874
+ *
875
+ * A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
876
+ * settable property, `GApplication` has its properties in another package — and this
877
+ * list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
878
+ * carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
879
+ * consumer nothing to load and a `.ui` file using the property never names its owner.
880
+ */
881
+ readonly requiredVocabularies: readonly string[];
857
882
  };
858
883
 
859
884
  /** Declaration GType -> its own settable properties, as GObject registered them. */
@@ -1,6 +1,6 @@
1
1
  // The widget vocabulary of GtkSource-4 as runtime data.
2
2
  //
3
- // GENERATED — do not edit. Provenance: GtkSource-4 — dropped empty base(s): GObject.Object GObject.InitiallyUnowned Atk.ImplementorIface
3
+ // GENERATED — do not edit. Provenance: GtkSource-4 — dropped empty base(s): Atk.ImplementorIface
4
4
  //
5
5
  // The type half of this subpath is the sibling `.d.ts`. This file exists because
6
6
  // types are erased: a consumer that wants to ask the installed library whether every
@@ -11,10 +11,12 @@ export const PROVENANCE = {
11
11
  version: '4',
12
12
  libraryVersion: null,
13
13
  childHolders: 0,
14
- droppedBases: ['GObject.Object', 'GObject.InitiallyUnowned', 'Atk.ImplementorIface'],
14
+ droppedBases: ['Atk.ImplementorIface'],
15
15
  inlinedBases: [],
16
16
  unsettableProps: [],
17
17
  unresolvedProps: [],
18
+ identifierPrefixes: ['GtkSource'],
19
+ requiredVocabularies: ['@girs/gobject-2.0/vocabulary', '@girs/gtk-3.0/vocabulary', '@girs/pango-1.0/vocabulary'],
18
20
  };
19
21
 
20
22
  export const OWN_PROPS = {
@@ -65,35 +67,35 @@ export const OWN_SIGNALS = {
65
67
  // `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
66
68
  // below for the narrower questions; they did not move.
67
69
  export const DECLS = {
68
- GtkSourceBuffer: ['GtkSourceBuffer', 'GtkTextBuffer'],
69
- GtkSourceCompletion: ['GtkSourceCompletion', 'GtkBuildable'],
70
- GtkSourceCompletionContext: ['GtkSourceCompletionContext'],
71
- GtkSourceCompletionInfo: ['GtkSourceCompletionInfo', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
72
- GtkSourceCompletionItem: ['GtkSourceCompletionItem', 'GtkSourceCompletionProposal'],
73
- GtkSourceCompletionWords: ['GtkSourceCompletionWords', 'GtkSourceCompletionProvider'],
74
- GtkSourceFile: ['GtkSourceFile'],
75
- GtkSourceFileLoader: ['GtkSourceFileLoader'],
76
- GtkSourceFileSaver: ['GtkSourceFileSaver'],
77
- GtkSourceGutter: ['GtkSourceGutter'],
78
- GtkSourceGutterRendererPixbuf: ['GtkSourceGutterRendererPixbuf', 'GtkSourceGutterRenderer'],
79
- GtkSourceGutterRendererText: ['GtkSourceGutterRendererText', 'GtkSourceGutterRenderer'],
80
- GtkSourceLanguage: ['GtkSourceLanguage'],
81
- GtkSourceLanguageManager: ['GtkSourceLanguageManager'],
82
- GtkSourceMap: ['GtkSourceMap', 'GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkScrollable'],
83
- GtkSourceMark: ['GtkSourceMark', 'GtkTextMark'],
84
- GtkSourceMarkAttributes: ['GtkSourceMarkAttributes'],
85
- GtkSourcePrintCompositor: ['GtkSourcePrintCompositor'],
86
- GtkSourceRegion: ['GtkSourceRegion'],
87
- GtkSourceSearchContext: ['GtkSourceSearchContext'],
88
- GtkSourceSearchSettings: ['GtkSourceSearchSettings'],
89
- GtkSourceSpaceDrawer: ['GtkSourceSpaceDrawer'],
90
- GtkSourceStyle: ['GtkSourceStyle'],
91
- GtkSourceStyleScheme: ['GtkSourceStyleScheme'],
92
- GtkSourceStyleSchemeChooserButton: ['GtkSourceStyleSchemeChooserButton', 'GtkButton', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkActionable', 'GtkActivatable', 'GtkBuildable', 'GtkSourceStyleSchemeChooser'],
93
- GtkSourceStyleSchemeChooserWidget: ['GtkSourceStyleSchemeChooserWidget', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkSourceStyleSchemeChooser'],
94
- GtkSourceStyleSchemeManager: ['GtkSourceStyleSchemeManager'],
95
- GtkSourceTag: ['GtkSourceTag', 'GtkTextTag'],
96
- GtkSourceView: ['GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkScrollable'],
70
+ GtkSourceBuffer: ['GtkSourceBuffer', 'GtkTextBuffer', 'GObject'],
71
+ GtkSourceCompletion: ['GtkSourceCompletion', 'GObject', 'GtkBuildable'],
72
+ GtkSourceCompletionContext: ['GtkSourceCompletionContext', 'GInitiallyUnowned', 'GObject'],
73
+ GtkSourceCompletionInfo: ['GtkSourceCompletionInfo', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
74
+ GtkSourceCompletionItem: ['GtkSourceCompletionItem', 'GObject', 'GtkSourceCompletionProposal'],
75
+ GtkSourceCompletionWords: ['GtkSourceCompletionWords', 'GObject', 'GtkSourceCompletionProvider'],
76
+ GtkSourceFile: ['GtkSourceFile', 'GObject'],
77
+ GtkSourceFileLoader: ['GtkSourceFileLoader', 'GObject'],
78
+ GtkSourceFileSaver: ['GtkSourceFileSaver', 'GObject'],
79
+ GtkSourceGutter: ['GtkSourceGutter', 'GObject'],
80
+ GtkSourceGutterRendererPixbuf: ['GtkSourceGutterRendererPixbuf', 'GtkSourceGutterRenderer', 'GInitiallyUnowned', 'GObject'],
81
+ GtkSourceGutterRendererText: ['GtkSourceGutterRendererText', 'GtkSourceGutterRenderer', 'GInitiallyUnowned', 'GObject'],
82
+ GtkSourceLanguage: ['GtkSourceLanguage', 'GObject'],
83
+ GtkSourceLanguageManager: ['GtkSourceLanguageManager', 'GObject'],
84
+ GtkSourceMap: ['GtkSourceMap', 'GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkScrollable'],
85
+ GtkSourceMark: ['GtkSourceMark', 'GtkTextMark', 'GObject'],
86
+ GtkSourceMarkAttributes: ['GtkSourceMarkAttributes', 'GObject'],
87
+ GtkSourcePrintCompositor: ['GtkSourcePrintCompositor', 'GObject'],
88
+ GtkSourceRegion: ['GtkSourceRegion', 'GObject'],
89
+ GtkSourceSearchContext: ['GtkSourceSearchContext', 'GObject'],
90
+ GtkSourceSearchSettings: ['GtkSourceSearchSettings', 'GObject'],
91
+ GtkSourceSpaceDrawer: ['GtkSourceSpaceDrawer', 'GObject'],
92
+ GtkSourceStyle: ['GtkSourceStyle', 'GObject'],
93
+ GtkSourceStyleScheme: ['GtkSourceStyleScheme', 'GObject'],
94
+ GtkSourceStyleSchemeChooserButton: ['GtkSourceStyleSchemeChooserButton', 'GtkButton', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkActionable', 'GtkActivatable', 'GtkBuildable', 'GtkSourceStyleSchemeChooser'],
95
+ GtkSourceStyleSchemeChooserWidget: ['GtkSourceStyleSchemeChooserWidget', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkSourceStyleSchemeChooser'],
96
+ GtkSourceStyleSchemeManager: ['GtkSourceStyleSchemeManager', 'GObject'],
97
+ GtkSourceTag: ['GtkSourceTag', 'GtkTextTag', 'GObject'],
98
+ GtkSourceView: ['GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkScrollable'],
97
99
  };
98
100
 
99
101
  // The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
@@ -112,6 +114,8 @@ export const ENUM_NICKS = {
112
114
  GtkSourceNewlineType: ['lf', 'cr', 'cr-lf'],
113
115
  GtkSourceSmartHomeEndType: ['disabled', 'before', 'after', 'always'],
114
116
  GtkSourceViewGutterPosition: ['lines', 'marks'],
117
+ GtkTextWindowType: ['private', 'widget', 'text', 'left', 'right', 'top', 'bottom'],
118
+ GtkWrapMode: ['none', 'char', 'word', 'word-char'],
115
119
  PangoUnderline: ['none', 'single', 'double', 'low', 'error', 'single-line', 'double-line', 'error-line'],
116
120
  };
117
121
 
@@ -154,6 +158,17 @@ export const ENUM_VALUES = {
154
158
  'GtkSourceSmartHomeEndType.disabled': 0,
155
159
  'GtkSourceViewGutterPosition.lines': -30,
156
160
  'GtkSourceViewGutterPosition.marks': -20,
161
+ 'GtkTextWindowType.bottom': 6,
162
+ 'GtkTextWindowType.left': 3,
163
+ 'GtkTextWindowType.private': 0,
164
+ 'GtkTextWindowType.right': 4,
165
+ 'GtkTextWindowType.text': 2,
166
+ 'GtkTextWindowType.top': 5,
167
+ 'GtkTextWindowType.widget': 1,
168
+ 'GtkWrapMode.char': 1,
169
+ 'GtkWrapMode.none': 0,
170
+ 'GtkWrapMode.word': 2,
171
+ 'GtkWrapMode.word-char': 3,
157
172
  'PangoUnderline.double': 2,
158
173
  'PangoUnderline.double-line': 6,
159
174
  'PangoUnderline.error': 4,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gtksource-4",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "GJS TypeScript type definitions for GtkSource-4",
5
5
  "type": "module",
6
6
  "module": "gtksource-4.js",
@@ -36,20 +36,20 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^5.2.0",
40
- "@girs/gtk-3.0": "^5.2.0",
41
- "@girs/xlib-2.0": "^5.2.0",
42
- "@girs/gdk-3.0": "^5.2.0",
43
- "@girs/cairo-1.0": "^5.2.0",
44
- "@girs/gobject-2.0": "^5.2.0",
45
- "@girs/glib-2.0": "^5.2.0",
46
- "@girs/pango-1.0": "^5.2.0",
47
- "@girs/harfbuzz-0.0": "^5.2.0",
48
- "@girs/freetype2-2.0": "^5.2.0",
49
- "@girs/gio-2.0": "^5.2.0",
50
- "@girs/gmodule-2.0": "^5.2.0",
51
- "@girs/gdkpixbuf-2.0": "^5.2.0",
52
- "@girs/atk-1.0": "^5.2.0" },
39
+ "@girs/gjs": "^5.3.0",
40
+ "@girs/gtk-3.0": "^5.3.0",
41
+ "@girs/xlib-2.0": "^5.3.0",
42
+ "@girs/gdk-3.0": "^5.3.0",
43
+ "@girs/cairo-1.0": "^5.3.0",
44
+ "@girs/gobject-2.0": "^5.3.0",
45
+ "@girs/glib-2.0": "^5.3.0",
46
+ "@girs/pango-1.0": "^5.3.0",
47
+ "@girs/harfbuzz-0.0": "^5.3.0",
48
+ "@girs/freetype2-2.0": "^5.3.0",
49
+ "@girs/gio-2.0": "^5.3.0",
50
+ "@girs/gmodule-2.0": "^5.3.0",
51
+ "@girs/gdkpixbuf-2.0": "^5.3.0",
52
+ "@girs/atk-1.0": "^5.3.0" },
53
53
  "devDependencies": {
54
54
  "typescript": "*"
55
55
  },