@girs/xed-1.0 5.1.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/xed-1.0)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/xed-1.0)
6
6
 
7
- GJS TypeScript type definitions for Xed-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.1.0.
7
+ GJS TypeScript type definitions for Xed-1.0 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/xed-1.0",
3
- "version": "5.1.0",
3
+ "version": "5.3.0",
4
4
  "description": "GJS TypeScript type definitions for Xed-1.0",
5
5
  "type": "module",
6
6
  "module": "xed-1.0.js",
@@ -36,21 +36,21 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^5.1.0",
40
- "@girs/gtksource-4": "^5.1.0",
41
- "@girs/gtk-3.0": "^5.1.0",
42
- "@girs/xlib-2.0": "^5.1.0",
43
- "@girs/gdk-3.0": "^5.1.0",
44
- "@girs/cairo-1.0": "^5.1.0",
45
- "@girs/gobject-2.0": "^5.1.0",
46
- "@girs/glib-2.0": "^5.1.0",
47
- "@girs/pango-1.0": "^5.1.0",
48
- "@girs/harfbuzz-0.0": "^5.1.0",
49
- "@girs/freetype2-2.0": "^5.1.0",
50
- "@girs/gio-2.0": "^5.1.0",
51
- "@girs/gmodule-2.0": "^5.1.0",
52
- "@girs/gdkpixbuf-2.0": "^5.1.0",
53
- "@girs/atk-1.0": "^5.1.0" },
39
+ "@girs/gjs": "^5.3.0",
40
+ "@girs/gtksource-4": "^5.3.0",
41
+ "@girs/gtk-3.0": "^5.3.0",
42
+ "@girs/xlib-2.0": "^5.3.0",
43
+ "@girs/gdk-3.0": "^5.3.0",
44
+ "@girs/cairo-1.0": "^5.3.0",
45
+ "@girs/gobject-2.0": "^5.3.0",
46
+ "@girs/glib-2.0": "^5.3.0",
47
+ "@girs/pango-1.0": "^5.3.0",
48
+ "@girs/harfbuzz-0.0": "^5.3.0",
49
+ "@girs/freetype2-2.0": "^5.3.0",
50
+ "@girs/gio-2.0": "^5.3.0",
51
+ "@girs/gmodule-2.0": "^5.3.0",
52
+ "@girs/gdkpixbuf-2.0": "^5.3.0",
53
+ "@girs/atk-1.0": "^5.3.0" },
54
54
  "devDependencies": {
55
55
  "typescript": "*"
56
56
  },
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * The GIR-derived widget VOCABULARY for Xed-1.0.
3
3
  *
4
- * GENERATED — do not edit. Provenance: Xed-1.0 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Atk.ImplementorIface Gio.ActionGroup Gio.ActionMap
4
+ * GENERATED — do not edit. Provenance: Xed-1.0 — dropped empty base(s): Atk.ImplementorIface
5
5
  *
6
- * 10 concrete widgets, 10 declarations, 2 enum nick unions, 2 slot candidates.
6
+ * 14 instantiable GTypes (of which 10 concrete widgets), 14 declarations, 2 enum nick unions, 2 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
@@ -26,8 +26,10 @@
26
26
 
27
27
  import type Gtk from '@girs/gtk-3.0';
28
28
  import type Xed from './xed-1.0.js';
29
- import type { GtkApplicationWindowConstructOnly, GtkApplicationWindowProps, GtkBinConstructOnly, GtkBinProps, GtkBoxConstructOnly, GtkBoxProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkCellEditableConstructOnly, GtkCellEditableProps, GtkCellLayoutConstructOnly, GtkCellLayoutProps, GtkComboBoxConstructOnly, GtkComboBoxProps, GtkContainerConstructOnly, GtkContainerProps, GtkDialogConstructOnly, GtkDialogProps, GtkFileChooserConstructOnly, GtkFileChooserDialogConstructOnly, GtkFileChooserDialogProps, GtkFileChooserProps, GtkInfoBarConstructOnly, GtkInfoBarProps, GtkNotebookConstructOnly, GtkNotebookProps, GtkOrientableConstructOnly, GtkOrientableProps, GtkOrientationNick, GtkScrollableConstructOnly, GtkScrollableProps, GtkStatusbarConstructOnly, GtkStatusbarProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkWidgetConstructOnly, GtkWidgetProps, GtkWindowConstructOnly, GtkWindowProps } from '@girs/gtk-3.0/vocabulary';
30
- import type { GtkSourceViewConstructOnly, GtkSourceViewProps } from '@girs/gtksource-4/vocabulary';
29
+ import type { GActionGroupConstructOnly, GActionGroupProps, GActionMapConstructOnly, GActionMapProps, GApplicationConstructOnly, GApplicationProps } from '@girs/gio-2.0/vocabulary';
30
+ import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
31
+ import type { GtkApplicationConstructOnly, GtkApplicationProps, GtkApplicationWindowConstructOnly, GtkApplicationWindowProps, GtkBinConstructOnly, GtkBinProps, GtkBoxConstructOnly, GtkBoxProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkCellEditableConstructOnly, GtkCellEditableProps, GtkCellLayoutConstructOnly, GtkCellLayoutProps, GtkComboBoxConstructOnly, GtkComboBoxProps, GtkContainerConstructOnly, GtkContainerProps, GtkDialogConstructOnly, GtkDialogProps, GtkFileChooserConstructOnly, GtkFileChooserDialogConstructOnly, GtkFileChooserDialogProps, GtkFileChooserProps, GtkInfoBarConstructOnly, GtkInfoBarProps, GtkNotebookConstructOnly, GtkNotebookProps, GtkOrientableConstructOnly, GtkOrientableProps, GtkOrientationNick, GtkScrollableConstructOnly, GtkScrollableProps, GtkStatusbarConstructOnly, GtkStatusbarProps, GtkTextBufferConstructOnly, GtkTextBufferProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkWidgetConstructOnly, GtkWidgetProps, GtkWindowConstructOnly, GtkWindowProps } from '@girs/gtk-3.0/vocabulary';
32
+ import type { GtkSourceBufferConstructOnly, GtkSourceBufferProps, GtkSourceViewConstructOnly, GtkSourceViewProps } from '@girs/gtksource-4/vocabulary';
31
33
 
32
34
  // ---------------------------------------------------------------------------
33
35
  // Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
@@ -52,6 +54,31 @@ export type XedTabStateNick = 'state-normal' | 'state-loading' | 'state-revertin
52
54
  // GIR keeps them once, on the interface.
53
55
  // ---------------------------------------------------------------------------
54
56
 
57
+ export interface XedAppProps extends GtkApplicationProps, GActionGroupProps, GActionMapProps {
58
+ }
59
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
60
+ export type XedAppConstructOnly = GtkApplicationConstructOnly | GActionGroupConstructOnly | GActionMapConstructOnly;
61
+
62
+ export interface XedDocumentProps extends GtkSourceBufferProps {
63
+ /**
64
+ * The documents content type.
65
+ * @default NULL
66
+ */
67
+ 'content-type'?: string;
68
+ /**
69
+ * The documents short name.
70
+ * @default NULL
71
+ */
72
+ shortname?: string;
73
+ /**
74
+ * Whether to use GVFS metadata.
75
+ * @default TRUE
76
+ */
77
+ 'use-gvfs-metadata'?: boolean;
78
+ }
79
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
80
+ export type XedDocumentConstructOnly = GtkSourceBufferConstructOnly | 'use-gvfs-metadata';
81
+
55
82
  export interface XedEncodingsComboBoxProps extends GtkComboBoxProps, GtkBuildableProps, GtkCellEditableProps, GtkCellLayoutProps {
56
83
  /** @default FALSE */
57
84
  'save-mode'?: boolean;
@@ -64,6 +91,17 @@ export interface XedFileChooserDialogProps extends GtkFileChooserDialogProps, Gt
64
91
  /** Settable only at construction — a renderer must REBUILD, not patch. */
65
92
  export type XedFileChooserDialogConstructOnly = GtkFileChooserDialogConstructOnly | GtkBuildableConstructOnly | GtkFileChooserConstructOnly;
66
93
 
94
+ export interface XedMessageProps extends GObjectProps {
95
+ type?: Xed.MessageType;
96
+ }
97
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
98
+ export type XedMessageConstructOnly = GObjectConstructOnly | 'type';
99
+
100
+ export interface XedMessageBusProps extends GObjectProps {
101
+ }
102
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
103
+ export type XedMessageBusConstructOnly = GObjectConstructOnly;
104
+
67
105
  export interface XedNotebookProps extends GtkNotebookProps, GtkBuildableProps {
68
106
  }
69
107
  /** Settable only at construction — a renderer must REBUILD, not patch. */
@@ -107,10 +145,10 @@ export interface XedViewProps extends GtkSourceViewProps, GtkBuildableProps, Gtk
107
145
  /** Settable only at construction — a renderer must REBUILD, not patch. */
108
146
  export type XedViewConstructOnly = GtkSourceViewConstructOnly | GtkBuildableConstructOnly | GtkScrollableConstructOnly;
109
147
 
110
- export interface XedWindowProps extends GtkApplicationWindowProps, GtkBuildableProps {
148
+ export interface XedWindowProps extends GtkApplicationWindowProps, GActionGroupProps, GActionMapProps, GtkBuildableProps {
111
149
  }
112
150
  /** Settable only at construction — a renderer must REBUILD, not patch. */
113
- export type XedWindowConstructOnly = GtkApplicationWindowConstructOnly | GtkBuildableConstructOnly;
151
+ export type XedWindowConstructOnly = GtkApplicationWindowConstructOnly | GActionGroupConstructOnly | GActionMapConstructOnly | GtkBuildableConstructOnly;
114
152
 
115
153
  // ---------------------------------------------------------------------------
116
154
  // The GType-keyed widget map.
@@ -204,7 +242,11 @@ export interface Widgets {
204
242
  };
205
243
  }
206
244
 
207
- /** Every GType this namespace can create. A consumer derives its own tag map. */
245
+ /**
246
+ * Every GType this namespace can create AND put on screen. A consumer derives its own
247
+ * tag map. For everything a UI file can instantiate — layout managers, event
248
+ * controllers, cell renderers, `GtkSizeGroup` — read `DECLS` below.
249
+ */
208
250
  export type WidgetGType = keyof Widgets;
209
251
 
210
252
  // ---------------------------------------------------------------------------
@@ -256,7 +298,38 @@ export const PROVENANCE: {
256
298
  readonly childHolders: number;
257
299
  readonly droppedBases: readonly string[];
258
300
  readonly inlinedBases: readonly string[];
301
+ /** `<decl>.<prop>` for every property printed `never` because TypeScript has no value for it. */
259
302
  readonly unsettableProps: readonly string[];
303
+ /**
304
+ * `<decl>.<prop>: <Ns>.<Name>` for every property printed `never` because the model
305
+ * could not resolve its type across a namespace boundary — two independently released
306
+ * GIRs disagreeing, which is what the main emitter answers `never` for as well.
307
+ */
308
+ readonly unresolvedProps: readonly string[];
309
+ /**
310
+ * `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
311
+ *
312
+ * The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
313
+ * and nothing else in this package states that `Gio` spells itself `G`. Carried rather
314
+ * than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
315
+ * wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
316
+ * both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
317
+ *
318
+ * Empty where the GIR states none — 17 of the 627 emitting namespaces — because
319
+ * inventing the namespace name there is a confident wrong answer in place of a missing
320
+ * one. A LIST because 20 of them state more than one, which no single string expresses.
321
+ */
322
+ readonly identifierPrefixes: readonly string[];
323
+ /**
324
+ * Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
325
+ *
326
+ * A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
327
+ * settable property, `GApplication` has its properties in another package — and this
328
+ * list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
329
+ * carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
330
+ * consumer nothing to load and a `.ui` file using the property never names its owner.
331
+ */
332
+ readonly requiredVocabularies: readonly string[];
260
333
  };
261
334
 
262
335
  /** Declaration GType -> its own settable properties, as GObject registered them. */
@@ -270,7 +343,17 @@ export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
270
343
  */
271
344
  export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
272
345
 
273
- /** Widget GType -> every declaration its members come from, self first. */
346
+ /**
347
+ * Instantiable GType -> every declaration its members come from, self first.
348
+ *
349
+ * The key set is what a UI description file can NAME: every registered, non-abstract
350
+ * class this namespace declares. GtkBuilder resolves a `<object class="…">` through
351
+ * `g_type_from_name`, which knows nothing about widgets, so this is wider than
352
+ * `Widgets` by design — `GtkSizeGroup`, `GtkTextTag`, every `GtkEventController`
353
+ * and every `GtkCellRenderer` are here and are not widgets.
354
+ *
355
+ * `Widgets` and `CHILD_HOLDERS` are the narrower questions and answer them unchanged.
356
+ */
274
357
  export const DECLS: Readonly<Record<string, readonly string[]>>;
275
358
 
276
359
  /** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
@@ -282,8 +365,8 @@ export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
282
365
  /**
283
366
  * `<enum GType>.<nick>` -> the integer GObject registers for it, from GIR's `value`.
284
367
  *
285
- * Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the 129 enums a
286
- * GTK 4 vocabulary carries -- 104 in Gtk-4.0 and 25 in Adw-1: `GtkResponseType` runs -1 to -11, `GtkTextWindowType` starts
368
+ * Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the 137 enums a
369
+ * GTK 4 vocabulary carries -- 112 in Gtk-4.0 and 25 in Adw-1: `GtkResponseType` runs -1 to -11, `GtkTextWindowType` starts
287
370
  * at 1, `GtkOrdering` and `GtkConstraintRelation` are -1/0/1, `GtkAlign` has two names
288
371
  * on one value, and `GtkConstraintStrength.required` is 1001001000 where counting says 0.
289
372
  *
@@ -321,10 +404,11 @@ export const ENUM_VALUES_UNREADABLE: Readonly<Record<string, string>>;
321
404
  *
322
405
  * `ENUM_NICKS` carries no bitfield, because GObject cannot resolve a nick SET; that says
323
406
  * nothing about a single member's number, and the number is what a host without GI needs.
324
- * 21 writable widget properties in Gtk-4.0 and Adw-1 are bitfield-typed and are declared
325
- * bare `number` -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`, `AdwTabView:shortcuts`
326
- * among them. Counting is worst here: 95 of 121 Gtk-4.0 bitfield members disagree with their
327
- * position, against 29 of 685 enumeration members.
407
+ * 23 settable properties in Gtk-4.0 and Adw-1 are bitfield-typed and are declared bare
408
+ * `number` -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`, `AdwTabView:shortcuts`,
409
+ * `GtkDropTarget:actions` among them. Counting is worst here: 119 of the 156 Gtk-4.0
410
+ * bitfield members this vocabulary carries disagree with their declaration position,
411
+ * against 29 of 672 enumeration members.
328
412
  *
329
413
  * Combine with `|` as GObject does. There is no nick table to pair this with, so a name
330
414
  * here is resolvable and a SET still is not.
@@ -348,7 +432,7 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
348
432
  *
349
433
  * The GType named here is not always one THIS module gives numbers for. A nick vocabulary is
350
434
  * emitted once, by the namespace that owns the enum, so `AdwComboRow.search-match-mode` names
351
- * `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 57 of the 438
435
+ * `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 83 of the 909
352
436
  * entries in a full run resolve only with the owner's vocabulary loaded beside this one. An
353
437
  * owner with no vocabulary of its own (Gdk, Pango) is inlined here instead, so every entry
354
438
  * resolves against SOME module.
@@ -1,6 +1,6 @@
1
1
  // The widget vocabulary of Xed-1.0 as runtime data.
2
2
  //
3
- // GENERATED — do not edit. Provenance: Xed-1.0 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Atk.ImplementorIface Gio.ActionGroup Gio.ActionMap
3
+ // GENERATED — do not edit. Provenance: Xed-1.0 — 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,45 +11,65 @@ export const PROVENANCE = {
11
11
  version: '1.0',
12
12
  libraryVersion: null,
13
13
  childHolders: 0,
14
- droppedBases: ['GObject.InitiallyUnowned', 'GObject.Object', 'Atk.ImplementorIface', 'Gio.ActionGroup', 'Gio.ActionMap'],
14
+ droppedBases: ['Atk.ImplementorIface'],
15
15
  inlinedBases: [],
16
16
  unsettableProps: [],
17
+ unresolvedProps: [],
18
+ identifierPrefixes: ['Xed'],
19
+ requiredVocabularies: ['@girs/gio-2.0/vocabulary', '@girs/gobject-2.0/vocabulary', '@girs/gtk-3.0/vocabulary', '@girs/gtksource-4/vocabulary'],
17
20
  };
18
21
 
19
22
  export const OWN_PROPS = {
23
+ XedDocument: ['content-type', 'shortname', 'use-gvfs-metadata'],
20
24
  XedEncodingsComboBox: ['save-mode'],
25
+ XedMessage: ['type'],
21
26
  XedPanel: ['orientation'],
22
27
  XedProgressInfoBar: ['has-cancel-button'],
23
28
  XedTab: ['autosave', 'autosave-interval'],
24
29
  };
25
30
 
26
31
  export const OWN_SIGNALS = {
32
+ XedDocument: ['cursor-moved', 'load', 'loaded', 'save', 'saved'],
33
+ XedMessageBus: ['dispatch', 'registered', 'unregistered'],
27
34
  XedNotebook: ['tab-added', 'tab-close-request', 'tab-detached', 'tab-removed', 'tabs-reordered'],
28
35
  XedPanel: ['close', 'focus-document', 'item-added', 'item-removed'],
29
36
  XedView: ['drop-uris'],
30
37
  XedWindow: ['active-tab-changed', 'active-tab-state-changed', 'tab-added', 'tab-removed', 'tabs-reordered'],
31
38
  };
32
39
 
40
+ // Every GType this namespace can INSTANTIATE -> the declarations its members come from.
41
+ //
42
+ // The key set is what a UI description file can name: a registered, non-abstract class.
43
+ // Not "every widget" — GtkBuilder resolves a name through `g_type_from_name`, which knows
44
+ // nothing about widgets, and a `.ui` file is full of `GtkSizeGroup`, `GtkTextTag`,
45
+ // `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
46
+ // below for the narrower questions; they did not move.
33
47
  export const DECLS = {
34
- XedEncodingsComboBox: ['XedEncodingsComboBox', 'GtkComboBox', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkCellEditable', 'GtkCellLayout'],
35
- XedFileChooserDialog: ['XedFileChooserDialog', 'GtkFileChooserDialog', 'GtkDialog', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkFileChooser'],
36
- XedNotebook: ['XedNotebook', 'GtkNotebook', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
37
- XedPanel: ['XedPanel', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
38
- XedProgressInfoBar: ['XedProgressInfoBar', 'GtkInfoBar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkOrientable'],
39
- XedSearchbar: ['XedSearchbar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkOrientable'],
40
- XedStatusbar: ['XedStatusbar', 'GtkStatusbar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkOrientable'],
41
- XedTab: ['XedTab', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkOrientable'],
42
- XedView: ['XedView', 'GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GtkBuildable', 'GtkScrollable'],
43
- XedWindow: ['XedWindow', 'GtkApplicationWindow', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
48
+ XedApp: ['XedApp', 'GtkApplication', 'GApplication', 'GObject', 'GActionGroup', 'GActionMap'],
49
+ XedDocument: ['XedDocument', 'GtkSourceBuffer', 'GtkTextBuffer', 'GObject'],
50
+ XedEncodingsComboBox: ['XedEncodingsComboBox', 'GtkComboBox', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkCellEditable', 'GtkCellLayout'],
51
+ XedFileChooserDialog: ['XedFileChooserDialog', 'GtkFileChooserDialog', 'GtkDialog', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkFileChooser'],
52
+ XedMessage: ['XedMessage', 'GObject'],
53
+ XedMessageBus: ['XedMessageBus', 'GObject'],
54
+ XedNotebook: ['XedNotebook', 'GtkNotebook', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
55
+ XedPanel: ['XedPanel', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable'],
56
+ XedProgressInfoBar: ['XedProgressInfoBar', 'GtkInfoBar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkOrientable'],
57
+ XedSearchbar: ['XedSearchbar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkOrientable'],
58
+ XedStatusbar: ['XedStatusbar', 'GtkStatusbar', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkOrientable'],
59
+ XedTab: ['XedTab', 'GtkBox', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkOrientable'],
60
+ XedView: ['XedView', 'GtkSourceView', 'GtkTextView', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkBuildable', 'GtkScrollable'],
61
+ XedWindow: ['XedWindow', 'GtkApplicationWindow', 'GtkWindow', 'GtkBin', 'GtkContainer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GActionGroup', 'GActionMap', 'GtkBuildable'],
44
62
  };
45
63
 
46
- // The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
47
- // and descend from `GObject.Object`. A renderer places them like a container; a check
48
- // asking "is this a widget" must not count them. Derived from the accessor pair, never
49
- // from a list — the count is in the provenance line above.
64
+ // The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
65
+ // are the ones that merely HOLD one, through `set_child`/`get_child`, descending from
66
+ // `GObject.Object`. A renderer places them like a container; a check asking "is this a
67
+ // widget" must not count them. Derived from the accessor pair, never from a list — the
68
+ // count is in the provenance line above.
50
69
  export const CHILD_HOLDERS = [];
51
70
 
52
71
  export const ENUM_NICKS = {
72
+ GtkOrientation: ['horizontal', 'vertical'],
53
73
  XedSearchMode: ['search', 'replace'],
54
74
  XedTabState: ['state-normal', 'state-loading', 'state-reverting', 'state-saving', 'state-printing', 'state-print-previewing', 'state-showing-print-preview', 'state-generic-not-editable', 'state-loading-error', 'state-reverting-error', 'state-saving-error', 'state-generic-error', 'state-closing', 'state-externally-modified-notification', 'num-of-states'],
55
75
  };
@@ -59,7 +79,7 @@ export const ENUM_NICKS = {
59
79
  // It ships because position in `ENUM_NICKS` is not the value and a consumer with no
60
80
  // typelib has no other way to learn it: a surface without GI still has to hand GObject an
61
81
  // integer. The alternative a consumer reaches for first is counting, and counting is wrong
62
- // on 6 of the 129 enums a GTK 4 vocabulary carries (104 in Gtk-4.0, 25 in Adw-1) --
82
+ // on 6 of the 137 enums a GTK 4 vocabulary carries (112 in Gtk-4.0, 25 in Adw-1) --
63
83
  // `GtkResponseType` runs -1 down to
64
84
  // -11, `GtkTextWindowType` starts at 1, and `GtkConstraintStrength.required` is
65
85
  // 1001001000 where counting answers 0.
@@ -69,6 +89,8 @@ export const ENUM_NICKS = {
69
89
  // vocabulary describes but the host predates then looks like a missing number rather than a
70
90
  // version gap.
71
91
  export const ENUM_VALUES = {
92
+ 'GtkOrientation.horizontal': 0,
93
+ 'GtkOrientation.vertical': 1,
72
94
  'XedSearchMode.replace': 1,
73
95
  'XedSearchMode.search': 0,
74
96
  'XedTabState.num-of-states': 14,
@@ -114,11 +136,12 @@ export const ENUM_VALUES_UNREADABLE = {};
114
136
  // The number behind each member of a registered BITFIELD, keyed the same way.
115
137
  //
116
138
  // `ENUM_NICKS` refuses a bitfield because GObject cannot resolve a nick SET, and that
117
- // reason says nothing about one member's number. 21 writable widget properties in Gtk-4.0
118
- // and Adw-1 are bitfield-typed -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`,
119
- // `AdwTabView:shortcuts`, ... -- and they are typed bare `number`, so a host without GI
120
- // has nothing to compute one from. Counting is worst exactly here: 95 of 121 Gtk-4.0
121
- // bitfield members disagree with their position, against 29 of 685 enumeration members.
139
+ // reason says nothing about one member's number. 23 settable properties in Gtk-4.0 and
140
+ // Adw-1 are bitfield-typed -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`,
141
+ // `AdwTabView:shortcuts`, `GtkDropTarget:actions`, ... -- and they are typed bare
142
+ // `number`, so a host without GI has nothing to compute one from. Counting is worst
143
+ // exactly here: 119 of the 156 Gtk-4.0 bitfield members this vocabulary carries disagree
144
+ // with their declaration position, against 29 of 672 enumeration members.
122
145
  //
123
146
  // A table of its own rather than more rows in `ENUM_VALUES`, so that "every nick in
124
147
  // `ENUM_NICKS` has a number or a declared reason" stays a claim about one set.
@@ -164,7 +187,7 @@ export const FLAG_VALUES_UNREADABLE = {};
164
187
  // one are both entries a consumer would resolve wrongly, so neither is written.
165
188
  //
166
189
  // A GType named here has numbers in SOME vocabulary, not necessarily this one: the namespace
167
- // that OWNS an enum publishes it, so 57 of the 438 entries a full run emits want the owner's
190
+ // that OWNS an enum publishes it, so 83 of the 909 entries a full run emits want the owner's
168
191
  // vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
169
192
  export const PROP_ENUMS = {
170
193
  'XedPanel.orientation': 'GtkOrientation',