@girs/foundrygtk-1 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/foundrygtk-1)
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/foundrygtk-1)
6
6
 
7
- GJS TypeScript type definitions for FoundryGtk-1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v5.1.0.
7
+ GJS TypeScript type definitions for FoundryGtk-1 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 FoundryGtk-1.
3
3
  *
4
- * GENERATED — do not edit. Provenance: FoundryGtk-1 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object
4
+ * GENERATED — do not edit. Provenance: FoundryGtk-1 — dropped empty base(s): Json.Serializable
5
5
  *
6
- * 6 concrete widgets, 6 declarations, 0 enum nick unions, 0 slot candidates.
6
+ * 14 instantiable GTypes (of which 6 concrete widgets), 14 declarations, 0 enum nick unions, 0 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,9 +26,13 @@
26
26
 
27
27
  import type Foundry from '@girs/foundry-1';
28
28
  import type FoundryGtk from './foundrygtk-1.js';
29
+ import type Gio from '@girs/gio-2.0';
29
30
  import type Pango from '@girs/pango-1.0';
30
- import type { GtkAccessibleConstructOnly, GtkAccessibleProps, GtkAccessibleTextConstructOnly, GtkAccessibleTextProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkConstraintTargetConstructOnly, GtkConstraintTargetProps, GtkScrollableConstructOnly, GtkScrollableProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkWidgetConstructOnly, GtkWidgetProps } from '@girs/gtk-4.0/vocabulary';
31
- import type { GtkSourceGutterRendererConstructOnly, GtkSourceGutterRendererProps, GtkSourceViewConstructOnly, GtkSourceViewProps } from '@girs/gtksource-5/vocabulary';
31
+ import type { FoundryContextualConstructOnly, FoundryContextualProps, FoundryServiceConstructOnly, FoundryServiceProps, FoundryTextBufferConstructOnly, FoundryTextBufferProps } from '@girs/foundry-1/vocabulary';
32
+ import type { GListModelConstructOnly, GListModelProps, GMenuModelConstructOnly, GMenuModelProps } from '@girs/gio-2.0/vocabulary';
33
+ import type { GInitiallyUnownedConstructOnly, GInitiallyUnownedProps, GObjectConstructOnly, GObjectProps } from '@girs/gobject-2.0/vocabulary';
34
+ import type { GtkAccessibleConstructOnly, GtkAccessibleProps, GtkAccessibleTextConstructOnly, GtkAccessibleTextProps, GtkBuildableConstructOnly, GtkBuildableProps, GtkConstraintTargetConstructOnly, GtkConstraintTargetProps, GtkScrollableConstructOnly, GtkScrollableProps, GtkTextBufferConstructOnly, GtkTextBufferProps, GtkTextViewConstructOnly, GtkTextViewProps, GtkWidgetConstructOnly, GtkWidgetProps } from '@girs/gtk-4.0/vocabulary';
35
+ import type { GtkSourceBufferConstructOnly, GtkSourceBufferProps, GtkSourceGutterRendererConstructOnly, GtkSourceGutterRendererProps, GtkSourceViewConstructOnly, GtkSourceViewProps } from '@girs/gtksource-5/vocabulary';
32
36
 
33
37
  // ---------------------------------------------------------------------------
34
38
  // Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
@@ -81,6 +85,46 @@ export interface FoundryMarkupViewProps extends GtkWidgetProps, GtkAccessiblePro
81
85
  /** Settable only at construction — a renderer must REBUILD, not patch. */
82
86
  export type FoundryMarkupViewConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly;
83
87
 
88
+ /** The goal of #FoundryMenuManager is to simplify the process of merging multiple GtkBuilder .ui files containing menus into a single representation of the application menus. */
89
+ export interface FoundryMenuManagerProps extends GObjectProps {
90
+ }
91
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
92
+ export type FoundryMenuManagerConstructOnly = GObjectConstructOnly;
93
+
94
+ export interface FoundryMenuProxyProps extends GMenuModelProps {
95
+ /** @default NULL */
96
+ 'menu-id'?: string;
97
+ }
98
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
99
+ export type FoundryMenuProxyConstructOnly = GMenuModelConstructOnly;
100
+
101
+ export interface FoundryShortcutBundleProps extends GObjectProps, GListModelProps {
102
+ }
103
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
104
+ export type FoundryShortcutBundleConstructOnly = GObjectConstructOnly | GListModelConstructOnly;
105
+
106
+ export interface FoundryShortcutManagerProps extends FoundryServiceProps, GListModelProps {
107
+ }
108
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
109
+ export type FoundryShortcutManagerConstructOnly = FoundryServiceConstructOnly | GListModelConstructOnly;
110
+
111
+ export interface FoundryShortcutObserverProps extends GObjectProps {
112
+ model?: Gio.ListModel;
113
+ }
114
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
115
+ export type FoundryShortcutObserverConstructOnly = GObjectConstructOnly | 'model';
116
+
117
+ export interface FoundrySourceBufferProps extends GtkSourceBufferProps, FoundryTextBufferProps {
118
+ context?: Foundry.Context;
119
+ /**
120
+ * The GtkSourceLanguage identifier of the syntax to use, ignoring any guessed language.
121
+ * @default NULL
122
+ */
123
+ 'override-syntax'?: string;
124
+ }
125
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
126
+ export type FoundrySourceBufferConstructOnly = GtkSourceBufferConstructOnly | FoundryTextBufferConstructOnly | 'context';
127
+
84
128
  export interface FoundrySourceViewProps extends GtkSourceViewProps, GtkAccessibleProps, GtkAccessibleTextProps, GtkBuildableProps, GtkConstraintTargetProps, GtkScrollableProps {
85
129
  document?: Foundry.TextDocument;
86
130
  /** @default TRUE */
@@ -118,6 +162,16 @@ export interface FoundryTerminalProps extends GtkWidgetProps, GtkAccessibleProps
118
162
  /** Settable only at construction — a renderer must REBUILD, not patch. */
119
163
  export type FoundryTerminalConstructOnly = GtkWidgetConstructOnly | GtkAccessibleConstructOnly | GtkAccessibleTextConstructOnly | GtkBuildableConstructOnly | GtkConstraintTargetConstructOnly | GtkScrollableConstructOnly;
120
164
 
165
+ export interface FoundryTerminalPaletteProps extends GObjectProps {
166
+ }
167
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
168
+ export type FoundryTerminalPaletteConstructOnly = GObjectConstructOnly;
169
+
170
+ export interface FoundryTerminalPaletteSetProps extends GObjectProps {
171
+ }
172
+ /** Settable only at construction — a renderer must REBUILD, not patch. */
173
+ export type FoundryTerminalPaletteSetConstructOnly = GObjectConstructOnly;
174
+
121
175
  // ---------------------------------------------------------------------------
122
176
  // The GType-keyed widget map.
123
177
  //
@@ -178,7 +232,11 @@ export interface Widgets {
178
232
  };
179
233
  }
180
234
 
181
- /** Every GType this namespace can create. A consumer derives its own tag map. */
235
+ /**
236
+ * Every GType this namespace can create AND put on screen. A consumer derives its own
237
+ * tag map. For everything a UI file can instantiate — layout managers, event
238
+ * controllers, cell renderers, `GtkSizeGroup` — read `DECLS` below.
239
+ */
182
240
  export type WidgetGType = keyof Widgets;
183
241
 
184
242
  // ---------------------------------------------------------------------------
@@ -230,7 +288,38 @@ export const PROVENANCE: {
230
288
  readonly childHolders: number;
231
289
  readonly droppedBases: readonly string[];
232
290
  readonly inlinedBases: readonly string[];
291
+ /** `<decl>.<prop>` for every property printed `never` because TypeScript has no value for it. */
233
292
  readonly unsettableProps: readonly string[];
293
+ /**
294
+ * `<decl>.<prop>: <Ns>.<Name>` for every property printed `never` because the model
295
+ * could not resolve its type across a namespace boundary — two independently released
296
+ * GIRs disagreeing, which is what the main emitter answers `never` for as well.
297
+ */
298
+ readonly unresolvedProps: readonly string[];
299
+ /**
300
+ * `c:identifier-prefixes` from the GIR, verbatim and in order — `['G']` for Gio.
301
+ *
302
+ * The C prefix a type REFERENCE needs: resolving `Gio.Icon` means producing `GIcon`,
303
+ * and nothing else in this package states that `Gio` spells itself `G`. Carried rather
304
+ * than derived because GIR carries it, and a derivation over the `DECLS` keys is wrong
305
+ * wherever the C prefix is not a prefix of the type NAMES: gdkx11-4.0 and gdkwayland-4.0
306
+ * both state `Gdk` while every key they declare begins `GdkX11`/`GdkWayland`.
307
+ *
308
+ * Empty where the GIR states none — 17 of the 627 emitting namespaces — because
309
+ * inventing the namespace name there is a confident wrong answer in place of a missing
310
+ * one. A LIST because 20 of them state more than one, which no single string expresses.
311
+ */
312
+ readonly identifierPrefixes: readonly string[];
313
+ /**
314
+ * Sibling vocabularies this one's DECLARATIONS come from, as import specifiers.
315
+ *
316
+ * A chain link with no `OWN_PROPS` row is ambiguous on its own — `GtkSeparator` has no
317
+ * settable property, `GApplication` has its properties in another package — and this
318
+ * list is what tells the two apart. Enum and bitfield NUMBERS are not here: those are
319
+ * carried in this file, because a `PROP_ENUMS` row naming a foreign GType gives a
320
+ * consumer nothing to load and a `.ui` file using the property never names its owner.
321
+ */
322
+ readonly requiredVocabularies: readonly string[];
234
323
  };
235
324
 
236
325
  /** Declaration GType -> its own settable properties, as GObject registered them. */
@@ -244,7 +333,17 @@ export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
244
333
  */
245
334
  export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
246
335
 
247
- /** Widget GType -> every declaration its members come from, self first. */
336
+ /**
337
+ * Instantiable GType -> every declaration its members come from, self first.
338
+ *
339
+ * The key set is what a UI description file can NAME: every registered, non-abstract
340
+ * class this namespace declares. GtkBuilder resolves a `<object class="…">` through
341
+ * `g_type_from_name`, which knows nothing about widgets, so this is wider than
342
+ * `Widgets` by design — `GtkSizeGroup`, `GtkTextTag`, every `GtkEventController`
343
+ * and every `GtkCellRenderer` are here and are not widgets.
344
+ *
345
+ * `Widgets` and `CHILD_HOLDERS` are the narrower questions and answer them unchanged.
346
+ */
248
347
  export const DECLS: Readonly<Record<string, readonly string[]>>;
249
348
 
250
349
  /** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
@@ -256,8 +355,8 @@ export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
256
355
  /**
257
356
  * `<enum GType>.<nick>` -> the integer GObject registers for it, from GIR's `value`.
258
357
  *
259
- * Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the 129 enums a
260
- * GTK 4 vocabulary carries -- 104 in Gtk-4.0 and 25 in Adw-1: `GtkResponseType` runs -1 to -11, `GtkTextWindowType` starts
358
+ * Position in `ENUM_NICKS` is NOT this number. Counting is wrong on 6 of the 137 enums a
359
+ * GTK 4 vocabulary carries -- 112 in Gtk-4.0 and 25 in Adw-1: `GtkResponseType` runs -1 to -11, `GtkTextWindowType` starts
261
360
  * at 1, `GtkOrdering` and `GtkConstraintRelation` are -1/0/1, `GtkAlign` has two names
262
361
  * on one value, and `GtkConstraintStrength.required` is 1001001000 where counting says 0.
263
362
  *
@@ -295,10 +394,11 @@ export const ENUM_VALUES_UNREADABLE: Readonly<Record<string, string>>;
295
394
  *
296
395
  * `ENUM_NICKS` carries no bitfield, because GObject cannot resolve a nick SET; that says
297
396
  * nothing about a single member's number, and the number is what a host without GI needs.
298
- * 21 writable widget properties in Gtk-4.0 and Adw-1 are bitfield-typed and are declared
299
- * bare `number` -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`, `AdwTabView:shortcuts`
300
- * among them. Counting is worst here: 95 of 121 Gtk-4.0 bitfield members disagree with their
301
- * position, against 29 of 685 enumeration members.
397
+ * 23 settable properties in Gtk-4.0 and Adw-1 are bitfield-typed and are declared bare
398
+ * `number` -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`, `AdwTabView:shortcuts`,
399
+ * `GtkDropTarget:actions` among them. Counting is worst here: 119 of the 156 Gtk-4.0
400
+ * bitfield members this vocabulary carries disagree with their declaration position,
401
+ * against 29 of 672 enumeration members.
302
402
  *
303
403
  * Combine with `|` as GObject does. There is no nick table to pair this with, so a name
304
404
  * here is resolvable and a SET still is not.
@@ -322,7 +422,7 @@ export const FLAG_VALUES_UNREADABLE: Readonly<Record<string, string>>;
322
422
  *
323
423
  * The GType named here is not always one THIS module gives numbers for. A nick vocabulary is
324
424
  * emitted once, by the namespace that owns the enum, so `AdwComboRow.search-match-mode` names
325
- * `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 57 of the 438
425
+ * `GtkStringFilterMatchMode` and its rows are in `@girs/gtk-4.0/vocabulary` — 83 of the 909
326
426
  * entries in a full run resolve only with the owner's vocabulary loaded beside this one. An
327
427
  * owner with no vocabulary of its own (Gdk, Pango) is inlined here instead, so every entry
328
428
  * resolves against SOME module.
@@ -1,6 +1,6 @@
1
1
  // The widget vocabulary of FoundryGtk-1 as runtime data.
2
2
  //
3
- // GENERATED — do not edit. Provenance: FoundryGtk-1 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object
3
+ // GENERATED — do not edit. Provenance: FoundryGtk-1 — dropped empty base(s): Json.Serializable
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,34 +11,58 @@ export const PROVENANCE = {
11
11
  version: '1',
12
12
  libraryVersion: null,
13
13
  childHolders: 0,
14
- droppedBases: ['GObject.InitiallyUnowned', 'GObject.Object'],
14
+ droppedBases: ['Json.Serializable'],
15
15
  inlinedBases: [],
16
16
  unsettableProps: [],
17
+ unresolvedProps: [],
18
+ identifierPrefixes: ['Foundry'],
19
+ requiredVocabularies: ['@girs/foundry-1/vocabulary', '@girs/gio-2.0/vocabulary', '@girs/gobject-2.0/vocabulary', '@girs/gtk-4.0/vocabulary', '@girs/gtksource-5/vocabulary'],
17
20
  };
18
21
 
19
22
  export const OWN_PROPS = {
20
23
  FoundryChangesGutterRenderer: ['show-overview'],
21
24
  FoundryDiagnosticsGutterRenderer: ['diagnostics'],
22
25
  FoundryGitLanes: ['entry'],
26
+ FoundryMenuProxy: ['menu-id'],
27
+ FoundryShortcutObserver: ['model'],
28
+ FoundrySourceBuffer: ['context', 'override-syntax'],
23
29
  FoundrySourceView: ['document', 'enable-completion', 'enable-vim', 'font', 'line-height', 'show-diagnostics', 'show-line-changes', 'show-line-changes-overview'],
24
30
  FoundryTerminal: ['palette'],
25
31
  };
26
32
 
27
- export const OWN_SIGNALS = {};
33
+ export const OWN_SIGNALS = {
34
+ FoundryShortcutObserver: ['accel-changed'],
35
+ };
28
36
 
37
+ // Every GType this namespace can INSTANTIATE -> the declarations its members come from.
38
+ //
39
+ // The key set is what a UI description file can name: a registered, non-abstract class.
40
+ // Not "every widget" — GtkBuilder resolves a name through `g_type_from_name`, which knows
41
+ // nothing about widgets, and a `.ui` file is full of `GtkSizeGroup`, `GtkTextTag`,
42
+ // `GtkEventController*` and `GtkCellRenderer*`. Use `Widgets` and `CHILD_HOLDERS`
43
+ // below for the narrower questions; they did not move.
29
44
  export const DECLS = {
30
- FoundryChangesGutterRenderer: ['FoundryChangesGutterRenderer', 'GtkSourceGutterRenderer', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
31
- FoundryDiagnosticsGutterRenderer: ['FoundryDiagnosticsGutterRenderer', 'GtkSourceGutterRenderer', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
32
- FoundryGitLanes: ['FoundryGitLanes', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
33
- FoundryMarkupView: ['FoundryMarkupView', 'GtkWidget', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
34
- FoundrySourceView: ['FoundrySourceView', 'GtkSourceView', 'GtkTextView', 'GtkWidget', 'GtkAccessible', 'GtkAccessibleText', 'GtkBuildable', 'GtkConstraintTarget', 'GtkScrollable'],
35
- FoundryTerminal: ['FoundryTerminal', 'GtkWidget', 'GtkAccessible', 'GtkAccessibleText', 'GtkBuildable', 'GtkConstraintTarget', 'GtkScrollable'],
45
+ FoundryChangesGutterRenderer: ['FoundryChangesGutterRenderer', 'GtkSourceGutterRenderer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
46
+ FoundryDiagnosticsGutterRenderer: ['FoundryDiagnosticsGutterRenderer', 'GtkSourceGutterRenderer', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
47
+ FoundryGitLanes: ['FoundryGitLanes', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
48
+ FoundryMarkupView: ['FoundryMarkupView', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkBuildable', 'GtkConstraintTarget'],
49
+ FoundryMenuManager: ['FoundryMenuManager', 'GObject'],
50
+ FoundryMenuProxy: ['FoundryMenuProxy', 'GMenuModel', 'GObject'],
51
+ FoundryShortcutBundle: ['FoundryShortcutBundle', 'GObject', 'GListModel'],
52
+ FoundryShortcutManager: ['FoundryShortcutManager', 'FoundryService', 'FoundryContextual', 'GObject', 'GListModel'],
53
+ FoundryShortcutObserver: ['FoundryShortcutObserver', 'GObject'],
54
+ FoundrySourceBuffer: ['FoundrySourceBuffer', 'GtkSourceBuffer', 'GtkTextBuffer', 'GObject', 'FoundryTextBuffer'],
55
+ FoundrySourceView: ['FoundrySourceView', 'GtkSourceView', 'GtkTextView', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkAccessibleText', 'GtkBuildable', 'GtkConstraintTarget', 'GtkScrollable'],
56
+ FoundryTerminal: ['FoundryTerminal', 'GtkWidget', 'GInitiallyUnowned', 'GObject', 'GtkAccessible', 'GtkAccessibleText', 'GtkBuildable', 'GtkConstraintTarget', 'GtkScrollable'],
57
+ FoundryTerminalPalette: ['FoundryTerminalPalette', 'GObject'],
58
+ FoundryTerminalPaletteSet: ['FoundryTerminalPaletteSet', 'GObject'],
36
59
  };
37
60
 
38
- // The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
39
- // and descend from `GObject.Object`. A renderer places them like a container; a check
40
- // asking "is this a widget" must not count them. Derived from the accessor pair, never
41
- // from a list — the count is in the provenance line above.
61
+ // The GTypes above that ARE widgets are the `Widgets` map in the sibling `.d.ts`; these
62
+ // are the ones that merely HOLD one, through `set_child`/`get_child`, descending from
63
+ // `GObject.Object`. A renderer places them like a container; a check asking "is this a
64
+ // widget" must not count them. Derived from the accessor pair, never from a list — the
65
+ // count is in the provenance line above.
42
66
  export const CHILD_HOLDERS = [];
43
67
 
44
68
  export const ENUM_NICKS = {};
@@ -48,7 +72,7 @@ export const ENUM_NICKS = {};
48
72
  // It ships because position in `ENUM_NICKS` is not the value and a consumer with no
49
73
  // typelib has no other way to learn it: a surface without GI still has to hand GObject an
50
74
  // integer. The alternative a consumer reaches for first is counting, and counting is wrong
51
- // on 6 of the 129 enums a GTK 4 vocabulary carries (104 in Gtk-4.0, 25 in Adw-1) --
75
+ // on 6 of the 137 enums a GTK 4 vocabulary carries (112 in Gtk-4.0, 25 in Adw-1) --
52
76
  // `GtkResponseType` runs -1 down to
53
77
  // -11, `GtkTextWindowType` starts at 1, and `GtkConstraintStrength.required` is
54
78
  // 1001001000 where counting answers 0.
@@ -85,11 +109,12 @@ export const ENUM_VALUES_UNREADABLE = {};
85
109
  // The number behind each member of a registered BITFIELD, keyed the same way.
86
110
  //
87
111
  // `ENUM_NICKS` refuses a bitfield because GObject cannot resolve a nick SET, and that
88
- // reason says nothing about one member's number. 21 writable widget properties in Gtk-4.0
89
- // and Adw-1 are bitfield-typed -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`,
90
- // `AdwTabView:shortcuts`, ... -- and they are typed bare `number`, so a host without GI
91
- // has nothing to compute one from. Counting is worst exactly here: 95 of 121 Gtk-4.0
92
- // bitfield members disagree with their position, against 29 of 685 enumeration members.
112
+ // reason says nothing about one member's number. 23 settable properties in Gtk-4.0 and
113
+ // Adw-1 are bitfield-typed -- `GtkEntry:input-hints`, `GtkPopoverMenu:flags`,
114
+ // `AdwTabView:shortcuts`, `GtkDropTarget:actions`, ... -- and they are typed bare
115
+ // `number`, so a host without GI has nothing to compute one from. Counting is worst
116
+ // exactly here: 119 of the 156 Gtk-4.0 bitfield members this vocabulary carries disagree
117
+ // with their declaration position, against 29 of 672 enumeration members.
93
118
  //
94
119
  // A table of its own rather than more rows in `ENUM_VALUES`, so that "every nick in
95
120
  // `ENUM_NICKS` has a number or a declared reason" stays a claim about one set.
@@ -112,7 +137,7 @@ export const FLAG_VALUES_UNREADABLE = {};
112
137
  // one are both entries a consumer would resolve wrongly, so neither is written.
113
138
  //
114
139
  // A GType named here has numbers in SOME vocabulary, not necessarily this one: the namespace
115
- // that OWNS an enum publishes it, so 57 of the 438 entries a full run emits want the owner's
140
+ // that OWNS an enum publishes it, so 83 of the 909 entries a full run emits want the owner's
116
141
  // vocabulary loaded too. Owners that emit none (Gdk, Pango) are inlined into the tables above.
117
142
  export const PROP_ENUMS = {};
118
143
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/foundrygtk-1",
3
- "version": "5.1.0",
3
+ "version": "5.3.0",
4
4
  "description": "GJS TypeScript type definitions for FoundryGtk-1",
5
5
  "type": "module",
6
6
  "module": "foundrygtk-1.js",
@@ -36,27 +36,27 @@
36
36
  "test": "tsc --project tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@girs/gjs": "^5.1.0",
40
- "@girs/peas-2": "^5.1.0",
41
- "@girs/gio-2.0": "^5.1.0",
42
- "@girs/gobject-2.0": "^5.1.0",
43
- "@girs/glib-2.0": "^5.1.0",
44
- "@girs/gmodule-2.0": "^5.1.0",
45
- "@girs/json-1.0": "^5.1.0",
46
- "@girs/gtksource-5": "^5.1.0",
47
- "@girs/gtk-4.0": "^5.1.0",
48
- "@girs/gsk-4.0": "^5.1.0",
49
- "@girs/graphene-1.0": "^5.1.0",
50
- "@girs/gdk-4.0": "^5.1.0",
51
- "@girs/cairo-1.0": "^5.1.0",
52
- "@girs/pangocairo-1.0": "^5.1.0",
53
- "@girs/pango-1.0": "^5.1.0",
54
- "@girs/harfbuzz-0.0": "^5.1.0",
55
- "@girs/freetype2-2.0": "^5.1.0",
56
- "@girs/gdkpixbuf-2.0": "^5.1.0",
57
- "@girs/foundry-1": "^5.1.0",
58
- "@girs/dex-1": "^5.1.0",
59
- "@girs/giounix-2.0": "^5.1.0" },
39
+ "@girs/gjs": "^5.3.0",
40
+ "@girs/peas-2": "^5.3.0",
41
+ "@girs/gio-2.0": "^5.3.0",
42
+ "@girs/gobject-2.0": "^5.3.0",
43
+ "@girs/glib-2.0": "^5.3.0",
44
+ "@girs/gmodule-2.0": "^5.3.0",
45
+ "@girs/json-1.0": "^5.3.0",
46
+ "@girs/gtksource-5": "^5.3.0",
47
+ "@girs/gtk-4.0": "^5.3.0",
48
+ "@girs/gsk-4.0": "^5.3.0",
49
+ "@girs/graphene-1.0": "^5.3.0",
50
+ "@girs/gdk-4.0": "^5.3.0",
51
+ "@girs/cairo-1.0": "^5.3.0",
52
+ "@girs/pangocairo-1.0": "^5.3.0",
53
+ "@girs/pango-1.0": "^5.3.0",
54
+ "@girs/harfbuzz-0.0": "^5.3.0",
55
+ "@girs/freetype2-2.0": "^5.3.0",
56
+ "@girs/gdkpixbuf-2.0": "^5.3.0",
57
+ "@girs/foundry-1": "^5.3.0",
58
+ "@girs/dex-1": "^5.3.0",
59
+ "@girs/giounix-2.0": "^5.3.0" },
60
60
  "devDependencies": {
61
61
  "typescript": "*"
62
62
  },