@girs/garcongtk-1.0 4.3.0 → 4.5.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 +52 -38
- package/garcongtk-1.0-surface.d.ts +20 -0
- package/garcongtk-1.0-surface.js +6 -0
- package/garcongtk-1.0-vocabulary.d.ts +189 -0
- package/garcongtk-1.0-vocabulary.js +39 -0
- package/package.json +22 -22
- package/tsconfig.json +1 -1
package/README.md
CHANGED
|
@@ -4,82 +4,96 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
+
GJS TypeScript type definitions for GarconGtk-1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.5.0.
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
This package contains type declarations only. It ships no runtime code, so it adds
|
|
10
|
+
nothing to your program and works with any bundler or none at all.
|
|
9
11
|
|
|
10
12
|
## Install
|
|
11
13
|
|
|
12
|
-
Install the type definitions with npm:
|
|
13
14
|
```bash
|
|
14
15
|
npm install @girs/garcongtk-1.0
|
|
15
16
|
```
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
Any package manager works. The package has no dependencies beyond other `@girs/*`
|
|
19
|
+
type packages.
|
|
20
|
+
|
|
21
|
+
## What it exports
|
|
22
|
+
|
|
23
|
+
| Import | What you get |
|
|
24
|
+
|---|---|
|
|
25
|
+
| `@girs/garcongtk-1.0` | the namespace as a default export, plus the ambient and global declarations |
|
|
26
|
+
| `@girs/garcongtk-1.0/ambient` | only the `gi://` module declarations |
|
|
27
|
+
| `@girs/garcongtk-1.0/import` | only the `imports.gi` declarations |
|
|
28
|
+
| `@girs/garcongtk-1.0/garcongtk-1.0` | the namespace, without the side-effecting declarations |
|
|
29
|
+
| `@girs/garcongtk-1.0/vocabulary` | GIR-derived widget data: settable properties, enum nicks, slot candidates |
|
|
30
|
+
|
|
31
|
+
## Three ways to import
|
|
32
|
+
|
|
33
|
+
Which one you use depends on how you write imports elsewhere, not on your toolchain.
|
|
34
|
+
|
|
35
|
+
### As a module
|
|
18
36
|
|
|
19
|
-
Import it like any other module:
|
|
20
37
|
```ts
|
|
21
38
|
import GarconGtk from '@girs/garcongtk-1.0';
|
|
22
39
|
```
|
|
23
40
|
|
|
24
|
-
###
|
|
41
|
+
### As `gi://`
|
|
25
42
|
|
|
26
|
-
|
|
27
|
-
|
|
43
|
+
GJS resolves `gi://` at runtime. To give it types, reference the package once, either
|
|
44
|
+
from your entry point or from `tsconfig.json`:
|
|
28
45
|
|
|
29
|
-
`index.ts`:
|
|
30
46
|
```ts
|
|
31
|
-
import '@girs/garcongtk-1.0'
|
|
47
|
+
import '@girs/garcongtk-1.0';
|
|
32
48
|
```
|
|
33
49
|
|
|
34
|
-
`tsconfig.json`:
|
|
35
50
|
```json
|
|
36
|
-
{
|
|
37
|
-
"compilerOptions": {
|
|
38
|
-
...
|
|
39
|
-
},
|
|
40
|
-
"include": ["@girs/garcongtk-1.0"],
|
|
41
|
-
...
|
|
42
|
-
}
|
|
51
|
+
{ "include": ["@girs/garcongtk-1.0"] }
|
|
43
52
|
```
|
|
44
53
|
|
|
45
|
-
|
|
54
|
+
Then the runtime spelling type-checks:
|
|
46
55
|
|
|
47
56
|
```ts
|
|
48
57
|
import GarconGtk from 'gi://GarconGtk?version=1.0';
|
|
49
58
|
```
|
|
50
59
|
|
|
51
|
-
|
|
60
|
+
Referencing `@girs/garcongtk-1.0/ambient` instead pulls in these declarations
|
|
61
|
+
alone. See [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules).
|
|
62
|
+
|
|
63
|
+
### As `imports.gi`
|
|
52
64
|
|
|
53
|
-
GJS's global
|
|
54
|
-
For this you need to include `@girs/garcongtk-1.0` or `@girs/garcongtk-1.0/import` in your `tsconfig` or entry point Typescript file:
|
|
65
|
+
GJS's global object works the same way, via `@girs/garcongtk-1.0/import`:
|
|
55
66
|
|
|
56
|
-
`index.ts`:
|
|
57
67
|
```ts
|
|
58
|
-
|
|
68
|
+
const GarconGtk = imports.gi.GarconGtk;
|
|
59
69
|
```
|
|
60
70
|
|
|
61
|
-
|
|
62
|
-
```json
|
|
63
|
-
{
|
|
64
|
-
"compilerOptions": {
|
|
65
|
-
...
|
|
66
|
-
},
|
|
67
|
-
"include": ["@girs/garcongtk-1.0"],
|
|
68
|
-
...
|
|
69
|
-
}
|
|
70
|
-
```
|
|
71
|
+
## Widget vocabulary
|
|
71
72
|
|
|
72
|
-
|
|
73
|
+
`garcongtk-1.0` declares widgets, so it also carries what the GIR says about them, as
|
|
74
|
+
types and as values a test can read:
|
|
73
75
|
|
|
74
76
|
```ts
|
|
75
|
-
|
|
77
|
+
import type { Widgets, PropsOf } from '@girs/garcongtk-1.0/vocabulary';
|
|
78
|
+
import { OWN_PROPS, ENUM_NICKS, PROVENANCE } from '@girs/garcongtk-1.0/vocabulary';
|
|
76
79
|
```
|
|
77
80
|
|
|
78
|
-
|
|
81
|
+
Properties are keyed the way GObject registered them, writable-only and optional, so they
|
|
82
|
+
match `g_object_set`, GtkBuilder XML and Blueprint. `PROVENANCE.libraryVersion` names the
|
|
83
|
+
library release this was generated from, which lets a check tell "newer than what is
|
|
84
|
+
installed" from "wrong".
|
|
79
85
|
|
|
80
|
-
|
|
86
|
+
This subpath answers what the GIR says, not what the installed library has. For the
|
|
87
|
+
second question, ask the library.
|
|
88
|
+
|
|
89
|
+
## Building
|
|
90
|
+
|
|
91
|
+
The declarations need no build step. If you bundle, every bundler works, since there is
|
|
92
|
+
no runtime code to resolve. The [examples](https://github.com/gjsify/ts-for-gir/tree/main/examples)
|
|
93
|
+
show working setups for several.
|
|
81
94
|
|
|
82
95
|
## Other packages
|
|
83
96
|
|
|
84
|
-
|
|
97
|
+
Every pre-generated package is at [gjsify/types](https://github.com/gjsify/types).
|
|
98
|
+
|
|
85
99
|
|
|
@@ -89,6 +89,23 @@ export interface Widgets {
|
|
|
89
89
|
/** Every GType this namespace can create. A consumer derives its own tag map. */
|
|
90
90
|
export type WidgetGType = keyof Widgets;
|
|
91
91
|
|
|
92
|
+
// ---------------------------------------------------------------------------
|
|
93
|
+
// Child holders — the same shape, for objects that CARRY a widget without being one.
|
|
94
|
+
//
|
|
95
|
+
// `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
|
|
96
|
+
// `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
|
|
97
|
+
// them exactly like a container, so they belong in the vocabulary; a check asking "is
|
|
98
|
+
// this a widget" must still be able to say no. Hence a sibling table rather than four
|
|
99
|
+
// more rows in `Widgets`: concatenate them when you mean both.
|
|
100
|
+
// ---------------------------------------------------------------------------
|
|
101
|
+
|
|
102
|
+
export interface ChildHolders {
|
|
103
|
+
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** Every GType this namespace holds a child in without it being a widget. */
|
|
107
|
+
export type ChildHolderGType = keyof ChildHolders;
|
|
108
|
+
|
|
92
109
|
/** The writable, optional, GObject-keyed property surface of one GType. */
|
|
93
110
|
export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
|
|
94
111
|
|
|
@@ -124,6 +141,9 @@ export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
|
124
141
|
/** Widget GType -> every declaration its members come from, self first. */
|
|
125
142
|
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
126
143
|
|
|
144
|
+
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
145
|
+
export const CHILD_HOLDERS: readonly string[];
|
|
146
|
+
|
|
127
147
|
/** Enum GType -> the nicks this surface offers. */
|
|
128
148
|
export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
129
149
|
|
package/garcongtk-1.0-surface.js
CHANGED
|
@@ -18,6 +18,12 @@ export const DECLS = {
|
|
|
18
18
|
GarconGtkMenu: ['GarconGtkMenu', 'GtkMenu', 'GtkMenuShell', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
+
// The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
|
|
22
|
+
// and descend from `GObject.Object`. A renderer places them like a container; a check
|
|
23
|
+
// asking "is this a widget" must not count them. Derived from the accessor pair, never
|
|
24
|
+
// from a list — the count is in the provenance line above.
|
|
25
|
+
export const CHILD_HOLDERS = [];
|
|
26
|
+
|
|
21
27
|
export const ENUM_NICKS = {};
|
|
22
28
|
|
|
23
29
|
export const SLOT_CANDIDATES = {};
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The GIR-derived widget VOCABULARY for GarconGtk-1.0.
|
|
3
|
+
*
|
|
4
|
+
* GENERATED — do not edit. Provenance: GarconGtk-1.0 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Atk.ImplementorIface
|
|
5
|
+
*
|
|
6
|
+
* 1 concrete widgets, 1 declarations, 0 enum nick unions, 0 slot candidates.
|
|
7
|
+
*
|
|
8
|
+
* Module-scoped exports only. There is no `JSX` namespace here, no tag spelling and
|
|
9
|
+
* no `on<Signal>` prop name: those are DIALECT, and every framework answers them
|
|
10
|
+
* differently. The shape to avoid is the GLOBAL AUGMENT — a `declare global` on
|
|
11
|
+
* `React.JSX` collides with every other library on a shared tag — while a
|
|
12
|
+
* module-scoped `JSX` behind a `jsxImportSource` does not. This package is used by
|
|
13
|
+
* projects that want nothing to do with JSX, so it emits neither; a consumer declaring
|
|
14
|
+
* a module-scoped namespace over these names is doing it right.
|
|
15
|
+
*
|
|
16
|
+
* Three things this is and `ConstructorProps` is not: WRITABLE-only (measured on
|
|
17
|
+
* Gtk-4.0, `ConstructorProps` offers 150 read-only properties across 68 classes as
|
|
18
|
+
* settable, and GTK's failure mode for writing one is exit 0), OPTIONAL, and keyed
|
|
19
|
+
* by the name GObject actually REGISTERED — the dashed spelling `g_object_set`,
|
|
20
|
+
* GtkBuilder XML and Blueprint all use.
|
|
21
|
+
*
|
|
22
|
+
* Signal handler types are not re-derived: `X.SignalSignatures`, which this package
|
|
23
|
+
* already emits for every class with the parent chain, every implemented interface
|
|
24
|
+
* and the `notify::` keys folded in, is what `Widgets[G]['signals']` points at.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
import type Garcon from '@girs/garcon-1.0';
|
|
28
|
+
import type GarconGtk from './garcongtk-1.0.js';
|
|
29
|
+
import type { GtkBuildableConstructOnly, GtkBuildableProps, GtkContainerConstructOnly, GtkContainerProps, GtkMenuConstructOnly, GtkMenuProps, GtkMenuShellConstructOnly, GtkMenuShellProps, GtkWidgetConstructOnly, GtkWidgetProps } from '@girs/gtk-3.0/vocabulary';
|
|
30
|
+
|
|
31
|
+
// ---------------------------------------------------------------------------
|
|
32
|
+
// Enum nicks — the string vocabulary GObject registered, from GIR's `glib:nick`.
|
|
33
|
+
//
|
|
34
|
+
// Not derived from the member name. Substituting underscores for dashes is not a law:
|
|
35
|
+
// some nicks keep an underscore the substitution would have replaced, and only the
|
|
36
|
+
// attribute knows which. Gtk-4.0 and Adw-1 contradict no derivation at all, which is
|
|
37
|
+
// how a derived nick passes review and breaks elsewhere.
|
|
38
|
+
// Re-measure with `scripts/check-nick-derivation.mjs` in ts-for-gir.
|
|
39
|
+
// ---------------------------------------------------------------------------
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
// ---------------------------------------------------------------------------
|
|
44
|
+
// Property surfaces — one interface per GIR DECLARATION, mirroring GIR's own
|
|
45
|
+
// inheritance rather than flattening per widget.
|
|
46
|
+
//
|
|
47
|
+
// The interfaces are load-bearing, not tidiness: `GtkBox` declares four properties
|
|
48
|
+
// of its own and `orientation` is not among them — it lives on `Gtk.Orientable`,
|
|
49
|
+
// because GObject installs interface properties on the implementor at runtime while
|
|
50
|
+
// GIR keeps them once, on the interface.
|
|
51
|
+
// ---------------------------------------------------------------------------
|
|
52
|
+
|
|
53
|
+
export interface GarconGtkMenuProps extends GtkMenuProps, GtkBuildableProps {
|
|
54
|
+
menu?: Garcon.Menu;
|
|
55
|
+
/** @default FALSE */
|
|
56
|
+
'right-click-edits'?: boolean;
|
|
57
|
+
/** @default FALSE */
|
|
58
|
+
'show-desktop-actions'?: boolean;
|
|
59
|
+
/** @default FALSE */
|
|
60
|
+
'show-generic-names'?: boolean;
|
|
61
|
+
/** @default TRUE */
|
|
62
|
+
'show-menu-icons'?: boolean;
|
|
63
|
+
/** @default FALSE */
|
|
64
|
+
'show-tooltips'?: boolean;
|
|
65
|
+
}
|
|
66
|
+
/** Settable only at construction — a renderer must REBUILD, not patch. */
|
|
67
|
+
export type GarconGtkMenuConstructOnly = GtkMenuConstructOnly | GtkBuildableConstructOnly;
|
|
68
|
+
|
|
69
|
+
// ---------------------------------------------------------------------------
|
|
70
|
+
// The GType-keyed widget map.
|
|
71
|
+
//
|
|
72
|
+
// Keyed by GType because that is also the GtkBuilder XML key and the typelib key. A
|
|
73
|
+
// consumer maps GTypes to tags in ITS convention — kebab for JSX intrinsics, Pascal
|
|
74
|
+
// for a Vue `GlobalComponents`, the class itself for a renderer whose element type
|
|
75
|
+
// is the class. None of those is baked in here.
|
|
76
|
+
//
|
|
77
|
+
// `slotCandidates` is a candidate list and never an answer: derived from methods
|
|
78
|
+
// taking exactly one widget argument. The GIR cannot tell adoption from reference —
|
|
79
|
+
// `set_title_widget` parents its argument and `set_activatable_widget` does not, and
|
|
80
|
+
// both are `void f(GtkWidget*)` at `transfer-ownership="none"`. Curation decides;
|
|
81
|
+
// this is what notices when a release adds a candidate.
|
|
82
|
+
// ---------------------------------------------------------------------------
|
|
83
|
+
|
|
84
|
+
export interface Widgets {
|
|
85
|
+
GarconGtkMenu: {
|
|
86
|
+
class: GarconGtk.Menu;
|
|
87
|
+
props: GarconGtkMenuProps;
|
|
88
|
+
signals: GarconGtk.Menu.SignalSignatures;
|
|
89
|
+
constructOnly: GarconGtkMenuConstructOnly;
|
|
90
|
+
slotCandidates: {};
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** Every GType this namespace can create. A consumer derives its own tag map. */
|
|
95
|
+
export type WidgetGType = keyof Widgets;
|
|
96
|
+
|
|
97
|
+
// ---------------------------------------------------------------------------
|
|
98
|
+
// Child holders — the same shape, for objects that CARRY a widget without being one.
|
|
99
|
+
//
|
|
100
|
+
// `GtkListItem`, `GtkListHeader`, `GtkColumnViewCell` and `AdwToggle` descend from
|
|
101
|
+
// `GObject.Object` and hold a widget through `set_child`/`get_child`. A renderer places
|
|
102
|
+
// them exactly like a container, so they belong in the vocabulary; a check asking "is
|
|
103
|
+
// this a widget" must still be able to say no. Hence a sibling table rather than four
|
|
104
|
+
// more rows in `Widgets`: concatenate them when you mean both.
|
|
105
|
+
// ---------------------------------------------------------------------------
|
|
106
|
+
|
|
107
|
+
export interface ChildHolders {
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** Every GType this namespace holds a child in without it being a widget. */
|
|
112
|
+
export type ChildHolderGType = keyof ChildHolders;
|
|
113
|
+
|
|
114
|
+
/** The writable, optional, GObject-keyed property surface of one GType. */
|
|
115
|
+
export type PropsOf<G extends WidgetGType> = Widgets[G]['props'];
|
|
116
|
+
|
|
117
|
+
/** The signal table this package already emits, reached by GType. */
|
|
118
|
+
export type SignalsOf<G extends WidgetGType> = Widgets[G]['signals'];
|
|
119
|
+
|
|
120
|
+
/** The instance type — what a `ref`-shaped prop should infer. */
|
|
121
|
+
export type InstanceOf<G extends WidgetGType> = Widgets[G]['class'];
|
|
122
|
+
|
|
123
|
+
/** Property names that can only be set at construction. */
|
|
124
|
+
export type ConstructOnlyOf<G extends WidgetGType> = Widgets[G]['constructOnly'];
|
|
125
|
+
|
|
126
|
+
/** Candidate child slots — see the note above; curation decides. */
|
|
127
|
+
export type SlotCandidatesOf<G extends WidgetGType> = keyof Widgets[G]['slotCandidates'];
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The same facts as runtime data, for a consumer that CHECKS them.
|
|
131
|
+
*
|
|
132
|
+
* Types are erased, so a spec that asks the installed GTK whether every property
|
|
133
|
+
* here is a writable ParamSpec, every signal resolvable by `GObject.signal_lookup`
|
|
134
|
+
* and every nick resolvable through an enum lookup cannot read the interfaces
|
|
135
|
+
* above. Emitted headlessly with no GTK present, which is exactly why the checking
|
|
136
|
+
* belongs to the consumer and the DATA belongs here.
|
|
137
|
+
*/
|
|
138
|
+
export const PROVENANCE: {
|
|
139
|
+
readonly namespace: string;
|
|
140
|
+
readonly version: string;
|
|
141
|
+
/** The version the LIBRARY states, or null where it states none. Never the namespace's. */
|
|
142
|
+
readonly libraryVersion: string | null;
|
|
143
|
+
readonly childHolders: number;
|
|
144
|
+
readonly droppedBases: readonly string[];
|
|
145
|
+
readonly inlinedBases: readonly string[];
|
|
146
|
+
readonly unsettableProps: readonly string[];
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
/** Declaration GType -> its own settable properties, as GObject registered them. */
|
|
150
|
+
export const OWN_PROPS: Readonly<Record<string, readonly string[]>>;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Declaration GType -> the signals it registers itself, never its parents'.
|
|
154
|
+
*
|
|
155
|
+
* Keyed like `OWN_PROPS`, so both are read at every link of a `DECLS` chain. An
|
|
156
|
+
* abstract base has no `Widgets` row and still owns signals — `GtkWidget` owns 13.
|
|
157
|
+
*/
|
|
158
|
+
export const OWN_SIGNALS: Readonly<Record<string, readonly string[]>>;
|
|
159
|
+
|
|
160
|
+
/** Widget GType -> every declaration its members come from, self first. */
|
|
161
|
+
export const DECLS: Readonly<Record<string, readonly string[]>>;
|
|
162
|
+
|
|
163
|
+
/** The GTypes in `DECLS` that hold a widget without being one — see `ChildHolders`. */
|
|
164
|
+
export const CHILD_HOLDERS: readonly string[];
|
|
165
|
+
|
|
166
|
+
/** Enum GType -> the nicks this surface offers. */
|
|
167
|
+
export const ENUM_NICKS: Readonly<Record<string, readonly string[]>>;
|
|
168
|
+
|
|
169
|
+
/** Widget GType -> slot name -> the method that may adopt a child there. */
|
|
170
|
+
export const SLOT_CANDIDATES: Readonly<Record<string, Readonly<Record<string, string>>>>;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* `Type`, `Type.property` and `Type::signal` -> the release that introduced it.
|
|
174
|
+
*
|
|
175
|
+
* What keeps a runtime cross-check honest across a version gap without an
|
|
176
|
+
* allowlist: a name the installed library lacks is a defect UNLESS the version
|
|
177
|
+
* here is newer than the one running.
|
|
178
|
+
*
|
|
179
|
+
* ALL THREE key shapes, because that test only works for the names it covers. A
|
|
180
|
+
* property-only map leaves a consumer no way to explain a missing SIGNAL, which is
|
|
181
|
+
* a correct vocabulary reported as 18 defects; a member-only map leaves it no way to
|
|
182
|
+
* explain a missing CLASS, and that one fails as a bare
|
|
183
|
+
* `TypeError: can't access property "$gtype", ctor() is undefined` that does not
|
|
184
|
+
* even name the GType.
|
|
185
|
+
*
|
|
186
|
+
* A key is present only where the GIR states a version — sparse by nature (`version`
|
|
187
|
+
* sits on 29 of the 301 classes and interfaces in Gtk-4.0), never inferred.
|
|
188
|
+
*/
|
|
189
|
+
export const SINCE: Readonly<Record<string, string>>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// The widget vocabulary of GarconGtk-1.0 as runtime data.
|
|
2
|
+
//
|
|
3
|
+
// GENERATED — do not edit. Provenance: GarconGtk-1.0 — dropped empty base(s): GObject.InitiallyUnowned GObject.Object Atk.ImplementorIface
|
|
4
|
+
//
|
|
5
|
+
// The type half of this subpath is the sibling `.d.ts`. This file exists because
|
|
6
|
+
// types are erased: a consumer that wants to ask the installed library whether every
|
|
7
|
+
// name here is real needs values, not declarations.
|
|
8
|
+
|
|
9
|
+
export const PROVENANCE = {
|
|
10
|
+
namespace: 'GarconGtk',
|
|
11
|
+
version: '1.0',
|
|
12
|
+
libraryVersion: null,
|
|
13
|
+
childHolders: 0,
|
|
14
|
+
droppedBases: ['GObject.InitiallyUnowned', 'GObject.Object', 'Atk.ImplementorIface'],
|
|
15
|
+
inlinedBases: [],
|
|
16
|
+
unsettableProps: [],
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const OWN_PROPS = {
|
|
20
|
+
GarconGtkMenu: ['menu', 'right-click-edits', 'show-desktop-actions', 'show-generic-names', 'show-menu-icons', 'show-tooltips'],
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const OWN_SIGNALS = {};
|
|
24
|
+
|
|
25
|
+
export const DECLS = {
|
|
26
|
+
GarconGtkMenu: ['GarconGtkMenu', 'GtkMenu', 'GtkMenuShell', 'GtkContainer', 'GtkWidget', 'GtkBuildable'],
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
// The GTypes above that are NOT widgets: they hold one through `set_child`/`get_child`
|
|
30
|
+
// and descend from `GObject.Object`. A renderer places them like a container; a check
|
|
31
|
+
// asking "is this a widget" must not count them. Derived from the accessor pair, never
|
|
32
|
+
// from a list — the count is in the provenance line above.
|
|
33
|
+
export const CHILD_HOLDERS = [];
|
|
34
|
+
|
|
35
|
+
export const ENUM_NICKS = {};
|
|
36
|
+
|
|
37
|
+
export const SLOT_CANDIDATES = {};
|
|
38
|
+
|
|
39
|
+
export const SINCE = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/garcongtk-1.0",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for GarconGtk-1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "garcongtk-1.0.js",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"import": "./garcongtk-1.0-import.js",
|
|
17
17
|
"default": "./garcongtk-1.0-import.js"
|
|
18
18
|
},
|
|
19
|
-
"./
|
|
20
|
-
"types": "./garcongtk-1.0-
|
|
21
|
-
"import": "./garcongtk-1.0-
|
|
22
|
-
"default": "./garcongtk-1.0-
|
|
19
|
+
"./vocabulary": {
|
|
20
|
+
"types": "./garcongtk-1.0-vocabulary.d.ts",
|
|
21
|
+
"import": "./garcongtk-1.0-vocabulary.js",
|
|
22
|
+
"default": "./garcongtk-1.0-vocabulary.js"
|
|
23
23
|
},
|
|
24
24
|
"./garcongtk-1.0": {
|
|
25
25
|
"types": "./garcongtk-1.0.d.ts",
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
"test": "tsc --project tsconfig.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@girs/gjs": "^4.
|
|
40
|
-
"@girs/libxfce4util-1.0": "^4.
|
|
41
|
-
"@girs/gio-2.0": "^4.
|
|
42
|
-
"@girs/gobject-2.0": "^4.
|
|
43
|
-
"@girs/glib-2.0": "^4.
|
|
44
|
-
"@girs/gmodule-2.0": "^4.
|
|
45
|
-
"@girs/libxfce4ui-2.0": "^4.
|
|
46
|
-
"@girs/gtk-3.0": "^4.
|
|
47
|
-
"@girs/xlib-2.0": "^4.
|
|
48
|
-
"@girs/gdk-3.0": "^4.
|
|
49
|
-
"@girs/cairo-1.0": "^4.
|
|
50
|
-
"@girs/pango-1.0": "^4.
|
|
51
|
-
"@girs/harfbuzz-0.0": "^4.
|
|
52
|
-
"@girs/freetype2-2.0": "^4.
|
|
53
|
-
"@girs/gdkpixbuf-2.0": "^4.
|
|
54
|
-
"@girs/atk-1.0": "^4.
|
|
55
|
-
"@girs/garcon-1.0": "^4.
|
|
39
|
+
"@girs/gjs": "^4.5.0",
|
|
40
|
+
"@girs/libxfce4util-1.0": "^4.5.0",
|
|
41
|
+
"@girs/gio-2.0": "^4.5.0",
|
|
42
|
+
"@girs/gobject-2.0": "^4.5.0",
|
|
43
|
+
"@girs/glib-2.0": "^4.5.0",
|
|
44
|
+
"@girs/gmodule-2.0": "^4.5.0",
|
|
45
|
+
"@girs/libxfce4ui-2.0": "^4.5.0",
|
|
46
|
+
"@girs/gtk-3.0": "^4.5.0",
|
|
47
|
+
"@girs/xlib-2.0": "^4.5.0",
|
|
48
|
+
"@girs/gdk-3.0": "^4.5.0",
|
|
49
|
+
"@girs/cairo-1.0": "^4.5.0",
|
|
50
|
+
"@girs/pango-1.0": "^4.5.0",
|
|
51
|
+
"@girs/harfbuzz-0.0": "^4.5.0",
|
|
52
|
+
"@girs/freetype2-2.0": "^4.5.0",
|
|
53
|
+
"@girs/gdkpixbuf-2.0": "^4.5.0",
|
|
54
|
+
"@girs/atk-1.0": "^4.5.0",
|
|
55
|
+
"@girs/garcon-1.0": "^4.5.0" },
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"typescript": "*"
|
|
58
58
|
},
|