@gtkx/ffi 0.1.40 → 0.1.42
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/dist/codegen/ffi-generator.js +27 -5
- package/dist/generated/gdk/device.js +1 -1
- package/dist/generated/gdk/display-manager.js +1 -1
- package/dist/generated/gdk/display.js +2 -6
- package/dist/generated/gdk/seat.js +4 -4
- package/dist/generated/gdk/surface.js +4 -4
- package/dist/generated/gio/app-launch-context.js +4 -4
- package/dist/generated/gio/application.js +2 -2
- package/dist/generated/gio/dbus-auth-observer.js +2 -2
- package/dist/generated/gio/dbus-connection.js +1 -1
- package/dist/generated/gio/dbus-interface-skeleton.js +1 -1
- package/dist/generated/gio/dbus-object-manager-client.js +6 -6
- package/dist/generated/gio/dbus-object-skeleton.js +2 -2
- package/dist/generated/gio/dbus-proxy.js +2 -2
- package/dist/generated/gio/dbus-server.js +1 -1
- package/dist/generated/gio/debug-controller-dbus.js +1 -1
- package/dist/generated/gio/file-monitor.js +2 -2
- package/dist/generated/gio/mount-operation.js +1 -1
- package/dist/generated/gio/simple-action.js +2 -2
- package/dist/generated/gio/socket-client.js +2 -2
- package/dist/generated/gio/socket-listener.js +1 -1
- package/dist/generated/gio/socket-service.js +6 -2
- package/dist/generated/gio/threaded-socket-service.js +11 -4
- package/dist/generated/gio/tls-connection.js +1 -1
- package/dist/generated/gio/volume-monitor.js +12 -12
- package/dist/generated/gobject/binding-group.js +1 -1
- package/dist/generated/gobject/binding.js +1 -1
- package/dist/generated/gobject/initially-unowned.js +1 -1
- package/dist/generated/gobject/object.js +1 -1
- package/dist/generated/gobject/signal-group.js +2 -2
- package/dist/generated/gobject/type-module.js +1 -1
- package/dist/generated/gtk/app-chooser-widget.js +6 -2
- package/dist/generated/gtk/application.js +2 -2
- package/dist/generated/gtk/assistant.js +1 -1
- package/dist/generated/gtk/cell-area.js +8 -17
- package/dist/generated/gtk/cell-renderer-combo.js +1 -1
- package/dist/generated/gtk/cell-renderer.js +1 -1
- package/dist/generated/gtk/css-provider.js +2 -2
- package/dist/generated/gtk/drag-source.js +10 -8
- package/dist/generated/gtk/drop-target-async.js +9 -5
- package/dist/generated/gtk/drop-target.js +4 -2
- package/dist/generated/gtk/entry-completion.js +4 -4
- package/dist/generated/gtk/event-controller-legacy.js +4 -1
- package/dist/generated/gtk/flow-box.js +1 -4
- package/dist/generated/gtk/gesture-click.js +6 -6
- package/dist/generated/gtk/gesture-drag.js +5 -5
- package/dist/generated/gtk/gesture-long-press.js +5 -5
- package/dist/generated/gtk/gesture-pan.js +5 -5
- package/dist/generated/gtk/gesture-rotate.js +5 -5
- package/dist/generated/gtk/gesture-single.js +5 -5
- package/dist/generated/gtk/gesture-stylus.js +5 -5
- package/dist/generated/gtk/gesture-swipe.js +5 -5
- package/dist/generated/gtk/gesture-zoom.js +5 -5
- package/dist/generated/gtk/gesture.js +5 -5
- package/dist/generated/gtk/glarea.js +6 -1
- package/dist/generated/gtk/icon-view.js +1 -1
- package/dist/generated/gtk/list-box.js +2 -2
- package/dist/generated/gtk/notebook.js +5 -5
- package/dist/generated/gtk/overlay.js +11 -2
- package/dist/generated/gtk/print-operation.js +13 -31
- package/dist/generated/gtk/signal-list-item-factory.js +25 -4
- package/dist/generated/gtk/spin-button.js +1 -1
- package/dist/generated/gtk/text-buffer.js +25 -17
- package/dist/generated/gtk/text-tag-table.js +3 -3
- package/dist/generated/gtk/text-view.js +3 -3
- package/dist/generated/gtk/tree-view.js +10 -10
- package/dist/generated/gtk/widget.js +1 -1
- package/dist/generated/gtksource/buffer.js +6 -4
- package/dist/generated/gtksource/completion-context.js +5 -2
- package/dist/generated/gtksource/completion.js +2 -2
- package/dist/generated/gtksource/gutter-renderer.js +9 -5
- package/dist/generated/gtksource/mark-attributes.js +2 -6
- package/dist/generated/gtksource/view.js +13 -4
- package/dist/generated/gtksource/vim-imcontext.js +4 -4
- package/package.json +3 -3
|
@@ -1148,10 +1148,19 @@ ${allArgs ? `${allArgs},` : ""}
|
|
|
1148
1148
|
return undefined;
|
|
1149
1149
|
if (typeName.includes(".")) {
|
|
1150
1150
|
const [ns, className] = typeName.split(".", 2);
|
|
1151
|
-
if (
|
|
1152
|
-
return
|
|
1151
|
+
if (!className)
|
|
1152
|
+
return undefined;
|
|
1153
|
+
if (this.options.typeRegistry) {
|
|
1154
|
+
const registered = this.options.typeRegistry.resolve(typeName);
|
|
1155
|
+
if (!registered || (registered.kind !== "class" && registered.kind !== "interface")) {
|
|
1156
|
+
return undefined;
|
|
1157
|
+
}
|
|
1153
1158
|
}
|
|
1154
|
-
|
|
1159
|
+
const normalizedName = normalizeClassName(className);
|
|
1160
|
+
if (ns === this.options.namespace) {
|
|
1161
|
+
return normalizedName;
|
|
1162
|
+
}
|
|
1163
|
+
return `${ns}.${normalizedName}`;
|
|
1155
1164
|
}
|
|
1156
1165
|
const normalizedName = normalizeClassName(typeName);
|
|
1157
1166
|
if (classMap.has(typeName) || classMap.has(normalizedName)) {
|
|
@@ -1169,10 +1178,23 @@ ${allArgs ? `${allArgs},` : ""}
|
|
|
1169
1178
|
this.typeMapper.setSameNamespaceClassUsageCallback(null);
|
|
1170
1179
|
const signalMetadata = signals.map((signal) => {
|
|
1171
1180
|
const paramEntries = (signal.parameters ?? []).map((param) => {
|
|
1172
|
-
const ffiType = JSON.stringify(this.typeMapper.
|
|
1181
|
+
const ffiType = JSON.stringify(this.typeMapper.mapParameter(param).ffi);
|
|
1173
1182
|
const signalParamClass = this.extractSignalParamClass(param, classMap);
|
|
1174
1183
|
if (signalParamClass) {
|
|
1175
|
-
|
|
1184
|
+
const dotIndex = signalParamClass.indexOf(".");
|
|
1185
|
+
if (dotIndex !== -1) {
|
|
1186
|
+
const ns = signalParamClass.slice(0, dotIndex);
|
|
1187
|
+
const clsName = signalParamClass.slice(dotIndex + 1);
|
|
1188
|
+
this.usedExternalTypes.set(signalParamClass, {
|
|
1189
|
+
namespace: ns,
|
|
1190
|
+
name: clsName,
|
|
1191
|
+
transformedName: clsName,
|
|
1192
|
+
kind: "class",
|
|
1193
|
+
});
|
|
1194
|
+
}
|
|
1195
|
+
else {
|
|
1196
|
+
this.signalClasses.add(signalParamClass);
|
|
1197
|
+
}
|
|
1176
1198
|
return `{ type: ${ffiType}, getCls: () => ${signalParamClass} }`;
|
|
1177
1199
|
}
|
|
1178
1200
|
return `{ type: ${ffiType} }`;
|
|
@@ -9,7 +9,7 @@ const SIGNAL_META = {
|
|
|
9
9
|
changed: { params: [], returnType: { type: "undefined" } },
|
|
10
10
|
"tool-changed": {
|
|
11
11
|
params: [
|
|
12
|
-
{ type: { type: "gobject", borrowed:
|
|
12
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => DeviceTool },
|
|
13
13
|
],
|
|
14
14
|
returnType: { type: "undefined" },
|
|
15
15
|
},
|
|
@@ -5,7 +5,7 @@ import * as GObject from "../gobject/index.js";
|
|
|
5
5
|
const SIGNAL_META = {
|
|
6
6
|
"display-opened": {
|
|
7
7
|
params: [
|
|
8
|
-
{ type: { type: "gobject", borrowed:
|
|
8
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => Display },
|
|
9
9
|
],
|
|
10
10
|
returnType: { type: "undefined" },
|
|
11
11
|
},
|
|
@@ -14,15 +14,11 @@ const SIGNAL_META = {
|
|
|
14
14
|
},
|
|
15
15
|
opened: { params: [], returnType: { type: "undefined" } },
|
|
16
16
|
"seat-added": {
|
|
17
|
-
params: [
|
|
18
|
-
{ type: { type: "gobject", borrowed: false }, getCls: () => Seat },
|
|
19
|
-
],
|
|
17
|
+
params: [{ type: { type: "gobject", borrowed: true }, getCls: () => Seat }],
|
|
20
18
|
returnType: { type: "undefined" },
|
|
21
19
|
},
|
|
22
20
|
"seat-removed": {
|
|
23
|
-
params: [
|
|
24
|
-
{ type: { type: "gobject", borrowed: false }, getCls: () => Seat },
|
|
25
|
-
],
|
|
21
|
+
params: [{ type: { type: "gobject", borrowed: true }, getCls: () => Seat }],
|
|
26
22
|
returnType: { type: "undefined" },
|
|
27
23
|
},
|
|
28
24
|
"setting-changed": {
|
|
@@ -7,25 +7,25 @@ import * as GObject from "../gobject/index.js";
|
|
|
7
7
|
const SIGNAL_META = {
|
|
8
8
|
"device-added": {
|
|
9
9
|
params: [
|
|
10
|
-
{ type: { type: "gobject", borrowed:
|
|
10
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => Device },
|
|
11
11
|
],
|
|
12
12
|
returnType: { type: "undefined" },
|
|
13
13
|
},
|
|
14
14
|
"device-removed": {
|
|
15
15
|
params: [
|
|
16
|
-
{ type: { type: "gobject", borrowed:
|
|
16
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => Device },
|
|
17
17
|
],
|
|
18
18
|
returnType: { type: "undefined" },
|
|
19
19
|
},
|
|
20
20
|
"tool-added": {
|
|
21
21
|
params: [
|
|
22
|
-
{ type: { type: "gobject", borrowed:
|
|
22
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => DeviceTool },
|
|
23
23
|
],
|
|
24
24
|
returnType: { type: "undefined" },
|
|
25
25
|
},
|
|
26
26
|
"tool-removed": {
|
|
27
27
|
params: [
|
|
28
|
-
{ type: { type: "gobject", borrowed:
|
|
28
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => DeviceTool },
|
|
29
29
|
],
|
|
30
30
|
returnType: { type: "undefined" },
|
|
31
31
|
},
|
|
@@ -10,13 +10,13 @@ import * as cairo from "../cairo/index.js";
|
|
|
10
10
|
const SIGNAL_META = {
|
|
11
11
|
"enter-monitor": {
|
|
12
12
|
params: [
|
|
13
|
-
{ type: { type: "gobject", borrowed:
|
|
13
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => Monitor },
|
|
14
14
|
],
|
|
15
15
|
returnType: { type: "undefined" },
|
|
16
16
|
},
|
|
17
17
|
event: {
|
|
18
18
|
params: [
|
|
19
|
-
{ type: { type: "gobject", borrowed:
|
|
19
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => Event },
|
|
20
20
|
],
|
|
21
21
|
returnType: { type: "boolean" },
|
|
22
22
|
},
|
|
@@ -29,13 +29,13 @@ const SIGNAL_META = {
|
|
|
29
29
|
},
|
|
30
30
|
"leave-monitor": {
|
|
31
31
|
params: [
|
|
32
|
-
{ type: { type: "gobject", borrowed:
|
|
32
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => Monitor },
|
|
33
33
|
],
|
|
34
34
|
returnType: { type: "undefined" },
|
|
35
35
|
},
|
|
36
36
|
render: {
|
|
37
37
|
params: [
|
|
38
|
-
{ type: { type: "boxed", borrowed:
|
|
38
|
+
{ type: { type: "boxed", borrowed: true, innerType: "CairoRegion" } },
|
|
39
39
|
],
|
|
40
40
|
returnType: { type: "boolean" },
|
|
41
41
|
},
|
|
@@ -8,15 +8,15 @@ const SIGNAL_META = {
|
|
|
8
8
|
},
|
|
9
9
|
"launch-started": {
|
|
10
10
|
params: [
|
|
11
|
-
{ type: { type: "gobject", borrowed:
|
|
12
|
-
{ type: { type: "boxed", borrowed:
|
|
11
|
+
{ type: { type: "gobject", borrowed: true } },
|
|
12
|
+
{ type: { type: "boxed", borrowed: true, innerType: "GVariant" } },
|
|
13
13
|
],
|
|
14
14
|
returnType: { type: "undefined" },
|
|
15
15
|
},
|
|
16
16
|
launched: {
|
|
17
17
|
params: [
|
|
18
|
-
{ type: { type: "gobject", borrowed:
|
|
19
|
-
{ type: { type: "boxed", borrowed:
|
|
18
|
+
{ type: { type: "gobject", borrowed: true } },
|
|
19
|
+
{ type: { type: "boxed", borrowed: true, innerType: "GVariant" } },
|
|
20
20
|
],
|
|
21
21
|
returnType: { type: "undefined" },
|
|
22
22
|
},
|
|
@@ -10,7 +10,7 @@ const SIGNAL_META = {
|
|
|
10
10
|
"command-line": {
|
|
11
11
|
params: [
|
|
12
12
|
{
|
|
13
|
-
type: { type: "gobject", borrowed:
|
|
13
|
+
type: { type: "gobject", borrowed: true },
|
|
14
14
|
getCls: () => ApplicationCommandLine,
|
|
15
15
|
},
|
|
16
16
|
],
|
|
@@ -18,7 +18,7 @@ const SIGNAL_META = {
|
|
|
18
18
|
},
|
|
19
19
|
"handle-local-options": {
|
|
20
20
|
params: [
|
|
21
|
-
{ type: { type: "boxed", borrowed:
|
|
21
|
+
{ type: { type: "boxed", borrowed: true, innerType: "GVariantDict" } },
|
|
22
22
|
],
|
|
23
23
|
returnType: { type: "int", size: 32, unsigned: false },
|
|
24
24
|
},
|
|
@@ -10,8 +10,8 @@ const SIGNAL_META = {
|
|
|
10
10
|
},
|
|
11
11
|
"authorize-authenticated-peer": {
|
|
12
12
|
params: [
|
|
13
|
-
{ type: { type: "gobject", borrowed:
|
|
14
|
-
{ type: { type: "gobject", borrowed:
|
|
13
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => IOStream },
|
|
14
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => Credentials },
|
|
15
15
|
],
|
|
16
16
|
returnType: { type: "boolean" },
|
|
17
17
|
},
|
|
@@ -9,7 +9,7 @@ const SIGNAL_META = {
|
|
|
9
9
|
closed: {
|
|
10
10
|
params: [
|
|
11
11
|
{ type: { type: "boolean" } },
|
|
12
|
-
{ type: { type: "boxed", borrowed:
|
|
12
|
+
{ type: { type: "boxed", borrowed: true, innerType: "GError" } },
|
|
13
13
|
],
|
|
14
14
|
returnType: { type: "undefined" },
|
|
15
15
|
},
|
|
@@ -10,11 +10,11 @@ const SIGNAL_META = {
|
|
|
10
10
|
"interface-proxy-properties-changed": {
|
|
11
11
|
params: [
|
|
12
12
|
{
|
|
13
|
-
type: { type: "gobject", borrowed:
|
|
13
|
+
type: { type: "gobject", borrowed: true },
|
|
14
14
|
getCls: () => DBusObjectProxy,
|
|
15
15
|
},
|
|
16
|
-
{ type: { type: "gobject", borrowed:
|
|
17
|
-
{ type: { type: "boxed", borrowed:
|
|
16
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => DBusProxy },
|
|
17
|
+
{ type: { type: "boxed", borrowed: true, innerType: "GVariant" } },
|
|
18
18
|
{
|
|
19
19
|
type: { type: "array", itemType: { type: "string", borrowed: false } },
|
|
20
20
|
},
|
|
@@ -24,13 +24,13 @@ const SIGNAL_META = {
|
|
|
24
24
|
"interface-proxy-signal": {
|
|
25
25
|
params: [
|
|
26
26
|
{
|
|
27
|
-
type: { type: "gobject", borrowed:
|
|
27
|
+
type: { type: "gobject", borrowed: true },
|
|
28
28
|
getCls: () => DBusObjectProxy,
|
|
29
29
|
},
|
|
30
|
-
{ type: { type: "gobject", borrowed:
|
|
30
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => DBusProxy },
|
|
31
31
|
{ type: { type: "string", borrowed: false } },
|
|
32
32
|
{ type: { type: "string", borrowed: false } },
|
|
33
|
-
{ type: { type: "boxed", borrowed:
|
|
33
|
+
{ type: { type: "boxed", borrowed: true, innerType: "GVariant" } },
|
|
34
34
|
],
|
|
35
35
|
returnType: { type: "undefined" },
|
|
36
36
|
},
|
|
@@ -8,11 +8,11 @@ const SIGNAL_META = {
|
|
|
8
8
|
"authorize-method": {
|
|
9
9
|
params: [
|
|
10
10
|
{
|
|
11
|
-
type: { type: "gobject", borrowed:
|
|
11
|
+
type: { type: "gobject", borrowed: true },
|
|
12
12
|
getCls: () => DBusInterfaceSkeleton,
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
type: { type: "gobject", borrowed:
|
|
15
|
+
type: { type: "gobject", borrowed: true },
|
|
16
16
|
getCls: () => DBusMethodInvocation,
|
|
17
17
|
},
|
|
18
18
|
],
|
|
@@ -8,7 +8,7 @@ import * as GObject from "../gobject/index.js";
|
|
|
8
8
|
const SIGNAL_META = {
|
|
9
9
|
"g-properties-changed": {
|
|
10
10
|
params: [
|
|
11
|
-
{ type: { type: "boxed", borrowed:
|
|
11
|
+
{ type: { type: "boxed", borrowed: true, innerType: "GVariant" } },
|
|
12
12
|
{
|
|
13
13
|
type: { type: "array", itemType: { type: "string", borrowed: false } },
|
|
14
14
|
},
|
|
@@ -19,7 +19,7 @@ const SIGNAL_META = {
|
|
|
19
19
|
params: [
|
|
20
20
|
{ type: { type: "string", borrowed: false } },
|
|
21
21
|
{ type: { type: "string", borrowed: false } },
|
|
22
|
-
{ type: { type: "boxed", borrowed:
|
|
22
|
+
{ type: { type: "boxed", borrowed: true, innerType: "GVariant" } },
|
|
23
23
|
],
|
|
24
24
|
returnType: { type: "undefined" },
|
|
25
25
|
},
|
|
@@ -4,8 +4,8 @@ import * as GObject from "../gobject/index.js";
|
|
|
4
4
|
const SIGNAL_META = {
|
|
5
5
|
changed: {
|
|
6
6
|
params: [
|
|
7
|
-
{ type: { type: "gobject", borrowed:
|
|
8
|
-
{ type: { type: "gobject", borrowed:
|
|
7
|
+
{ type: { type: "gobject", borrowed: true } },
|
|
8
|
+
{ type: { type: "gobject", borrowed: true } },
|
|
9
9
|
{ type: { type: "int", size: 32, unsigned: false } },
|
|
10
10
|
],
|
|
11
11
|
returnType: { type: "undefined" },
|
|
@@ -28,7 +28,7 @@ const SIGNAL_META = {
|
|
|
28
28
|
"show-processes": {
|
|
29
29
|
params: [
|
|
30
30
|
{ type: { type: "string", borrowed: false } },
|
|
31
|
-
{ type: { type: "boxed", borrowed:
|
|
31
|
+
{ type: { type: "boxed", borrowed: true, innerType: "GArray" } },
|
|
32
32
|
{
|
|
33
33
|
type: { type: "array", itemType: { type: "string", borrowed: false } },
|
|
34
34
|
},
|
|
@@ -5,13 +5,13 @@ import * as GObject from "../gobject/index.js";
|
|
|
5
5
|
const SIGNAL_META = {
|
|
6
6
|
activate: {
|
|
7
7
|
params: [
|
|
8
|
-
{ type: { type: "boxed", borrowed:
|
|
8
|
+
{ type: { type: "boxed", borrowed: true, innerType: "GVariant" } },
|
|
9
9
|
],
|
|
10
10
|
returnType: { type: "undefined" },
|
|
11
11
|
},
|
|
12
12
|
"change-state": {
|
|
13
13
|
params: [
|
|
14
|
-
{ type: { type: "boxed", borrowed:
|
|
14
|
+
{ type: { type: "boxed", borrowed: true, innerType: "GVariant" } },
|
|
15
15
|
],
|
|
16
16
|
returnType: { type: "undefined" },
|
|
17
17
|
},
|
|
@@ -9,8 +9,8 @@ const SIGNAL_META = {
|
|
|
9
9
|
event: {
|
|
10
10
|
params: [
|
|
11
11
|
{ type: { type: "int", size: 32, unsigned: false } },
|
|
12
|
-
{ type: { type: "gobject", borrowed:
|
|
13
|
-
{ type: { type: "gobject", borrowed:
|
|
12
|
+
{ type: { type: "gobject", borrowed: true } },
|
|
13
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => IOStream },
|
|
14
14
|
],
|
|
15
15
|
returnType: { type: "undefined" },
|
|
16
16
|
},
|
|
@@ -7,7 +7,7 @@ const SIGNAL_META = {
|
|
|
7
7
|
event: {
|
|
8
8
|
params: [
|
|
9
9
|
{ type: { type: "int", size: 32, unsigned: false } },
|
|
10
|
-
{ type: { type: "gobject", borrowed:
|
|
10
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => Socket },
|
|
11
11
|
],
|
|
12
12
|
returnType: { type: "undefined" },
|
|
13
13
|
},
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { call } from "@gtkx/native";
|
|
2
2
|
import { getObject } from "@gtkx/ffi";
|
|
3
3
|
import { SocketConnection } from "./socket-connection.js";
|
|
4
|
+
import * as GObject from "../gobject/index.js";
|
|
4
5
|
import { SocketListener } from "./socket-listener.js";
|
|
5
6
|
const SIGNAL_META = {
|
|
6
7
|
incoming: {
|
|
7
8
|
params: [
|
|
8
9
|
{
|
|
9
|
-
type: { type: "gobject", borrowed:
|
|
10
|
+
type: { type: "gobject", borrowed: true },
|
|
10
11
|
getCls: () => SocketConnection,
|
|
11
12
|
},
|
|
12
|
-
{
|
|
13
|
+
{
|
|
14
|
+
type: { type: "gobject", borrowed: true },
|
|
15
|
+
getCls: () => GObject.GObject,
|
|
16
|
+
},
|
|
13
17
|
],
|
|
14
18
|
returnType: { type: "boolean" },
|
|
15
19
|
},
|
|
@@ -1,25 +1,32 @@
|
|
|
1
1
|
import { call } from "@gtkx/native";
|
|
2
2
|
import { getObject } from "@gtkx/ffi";
|
|
3
3
|
import { SocketConnection } from "./socket-connection.js";
|
|
4
|
+
import * as GObject from "../gobject/index.js";
|
|
4
5
|
import { SocketService } from "./socket-service.js";
|
|
5
6
|
const SIGNAL_META = {
|
|
6
7
|
run: {
|
|
7
8
|
params: [
|
|
8
9
|
{
|
|
9
|
-
type: { type: "gobject", borrowed:
|
|
10
|
+
type: { type: "gobject", borrowed: true },
|
|
10
11
|
getCls: () => SocketConnection,
|
|
11
12
|
},
|
|
12
|
-
{
|
|
13
|
+
{
|
|
14
|
+
type: { type: "gobject", borrowed: true },
|
|
15
|
+
getCls: () => GObject.GObject,
|
|
16
|
+
},
|
|
13
17
|
],
|
|
14
18
|
returnType: { type: "boolean" },
|
|
15
19
|
},
|
|
16
20
|
incoming: {
|
|
17
21
|
params: [
|
|
18
22
|
{
|
|
19
|
-
type: { type: "gobject", borrowed:
|
|
23
|
+
type: { type: "gobject", borrowed: true },
|
|
20
24
|
getCls: () => SocketConnection,
|
|
21
25
|
},
|
|
22
|
-
{
|
|
26
|
+
{
|
|
27
|
+
type: { type: "gobject", borrowed: true },
|
|
28
|
+
getCls: () => GObject.GObject,
|
|
29
|
+
},
|
|
23
30
|
],
|
|
24
31
|
returnType: { type: "boolean" },
|
|
25
32
|
},
|
|
@@ -6,51 +6,51 @@ import { Volume } from "./volume.js";
|
|
|
6
6
|
import * as GObject from "../gobject/index.js";
|
|
7
7
|
const SIGNAL_META = {
|
|
8
8
|
"drive-changed": {
|
|
9
|
-
params: [{ type: { type: "gobject", borrowed:
|
|
9
|
+
params: [{ type: { type: "gobject", borrowed: true } }],
|
|
10
10
|
returnType: { type: "undefined" },
|
|
11
11
|
},
|
|
12
12
|
"drive-connected": {
|
|
13
|
-
params: [{ type: { type: "gobject", borrowed:
|
|
13
|
+
params: [{ type: { type: "gobject", borrowed: true } }],
|
|
14
14
|
returnType: { type: "undefined" },
|
|
15
15
|
},
|
|
16
16
|
"drive-disconnected": {
|
|
17
|
-
params: [{ type: { type: "gobject", borrowed:
|
|
17
|
+
params: [{ type: { type: "gobject", borrowed: true } }],
|
|
18
18
|
returnType: { type: "undefined" },
|
|
19
19
|
},
|
|
20
20
|
"drive-eject-button": {
|
|
21
|
-
params: [{ type: { type: "gobject", borrowed:
|
|
21
|
+
params: [{ type: { type: "gobject", borrowed: true } }],
|
|
22
22
|
returnType: { type: "undefined" },
|
|
23
23
|
},
|
|
24
24
|
"drive-stop-button": {
|
|
25
|
-
params: [{ type: { type: "gobject", borrowed:
|
|
25
|
+
params: [{ type: { type: "gobject", borrowed: true } }],
|
|
26
26
|
returnType: { type: "undefined" },
|
|
27
27
|
},
|
|
28
28
|
"mount-added": {
|
|
29
|
-
params: [{ type: { type: "gobject", borrowed:
|
|
29
|
+
params: [{ type: { type: "gobject", borrowed: true } }],
|
|
30
30
|
returnType: { type: "undefined" },
|
|
31
31
|
},
|
|
32
32
|
"mount-changed": {
|
|
33
|
-
params: [{ type: { type: "gobject", borrowed:
|
|
33
|
+
params: [{ type: { type: "gobject", borrowed: true } }],
|
|
34
34
|
returnType: { type: "undefined" },
|
|
35
35
|
},
|
|
36
36
|
"mount-pre-unmount": {
|
|
37
|
-
params: [{ type: { type: "gobject", borrowed:
|
|
37
|
+
params: [{ type: { type: "gobject", borrowed: true } }],
|
|
38
38
|
returnType: { type: "undefined" },
|
|
39
39
|
},
|
|
40
40
|
"mount-removed": {
|
|
41
|
-
params: [{ type: { type: "gobject", borrowed:
|
|
41
|
+
params: [{ type: { type: "gobject", borrowed: true } }],
|
|
42
42
|
returnType: { type: "undefined" },
|
|
43
43
|
},
|
|
44
44
|
"volume-added": {
|
|
45
|
-
params: [{ type: { type: "gobject", borrowed:
|
|
45
|
+
params: [{ type: { type: "gobject", borrowed: true } }],
|
|
46
46
|
returnType: { type: "undefined" },
|
|
47
47
|
},
|
|
48
48
|
"volume-changed": {
|
|
49
|
-
params: [{ type: { type: "gobject", borrowed:
|
|
49
|
+
params: [{ type: { type: "gobject", borrowed: true } }],
|
|
50
50
|
returnType: { type: "undefined" },
|
|
51
51
|
},
|
|
52
52
|
"volume-removed": {
|
|
53
|
-
params: [{ type: { type: "gobject", borrowed:
|
|
53
|
+
params: [{ type: { type: "gobject", borrowed: true } }],
|
|
54
54
|
returnType: { type: "undefined" },
|
|
55
55
|
},
|
|
56
56
|
};
|
|
@@ -5,7 +5,7 @@ import { GObject } from "./object.js";
|
|
|
5
5
|
const SIGNAL_META = {
|
|
6
6
|
notify: {
|
|
7
7
|
params: [
|
|
8
|
-
{ type: { type: "gobject", borrowed:
|
|
8
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => ParamSpec },
|
|
9
9
|
],
|
|
10
10
|
returnType: { type: "undefined" },
|
|
11
11
|
},
|
|
@@ -5,7 +5,7 @@ import { GObject } from "./object.js";
|
|
|
5
5
|
const SIGNAL_META = {
|
|
6
6
|
notify: {
|
|
7
7
|
params: [
|
|
8
|
-
{ type: { type: "gobject", borrowed:
|
|
8
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => ParamSpec },
|
|
9
9
|
],
|
|
10
10
|
returnType: { type: "undefined" },
|
|
11
11
|
},
|
|
@@ -5,7 +5,7 @@ import { GObject } from "./object.js";
|
|
|
5
5
|
const SIGNAL_META = {
|
|
6
6
|
notify: {
|
|
7
7
|
params: [
|
|
8
|
-
{ type: { type: "gobject", borrowed:
|
|
8
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => ParamSpec },
|
|
9
9
|
],
|
|
10
10
|
returnType: { type: "undefined" },
|
|
11
11
|
},
|
|
@@ -4,7 +4,7 @@ import { ParamSpec } from "./param-spec.js";
|
|
|
4
4
|
const SIGNAL_META = {
|
|
5
5
|
notify: {
|
|
6
6
|
params: [
|
|
7
|
-
{ type: { type: "gobject", borrowed:
|
|
7
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => ParamSpec },
|
|
8
8
|
],
|
|
9
9
|
returnType: { type: "undefined" },
|
|
10
10
|
},
|
|
@@ -5,14 +5,14 @@ import { GObject } from "./object.js";
|
|
|
5
5
|
const SIGNAL_META = {
|
|
6
6
|
bind: {
|
|
7
7
|
params: [
|
|
8
|
-
{ type: { type: "gobject", borrowed:
|
|
8
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => GObject },
|
|
9
9
|
],
|
|
10
10
|
returnType: { type: "undefined" },
|
|
11
11
|
},
|
|
12
12
|
unbind: { params: [], returnType: { type: "undefined" } },
|
|
13
13
|
notify: {
|
|
14
14
|
params: [
|
|
15
|
-
{ type: { type: "gobject", borrowed:
|
|
15
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => ParamSpec },
|
|
16
16
|
],
|
|
17
17
|
returnType: { type: "undefined" },
|
|
18
18
|
},
|
|
@@ -5,7 +5,7 @@ import { GObject } from "./object.js";
|
|
|
5
5
|
const SIGNAL_META = {
|
|
6
6
|
notify: {
|
|
7
7
|
params: [
|
|
8
|
-
{ type: { type: "gobject", borrowed:
|
|
8
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => ParamSpec },
|
|
9
9
|
],
|
|
10
10
|
returnType: { type: "undefined" },
|
|
11
11
|
},
|
|
@@ -4,11 +4,15 @@ import * as Gio from "../gio/index.js";
|
|
|
4
4
|
import { Widget } from "./widget.js";
|
|
5
5
|
const SIGNAL_META = {
|
|
6
6
|
"application-activated": {
|
|
7
|
-
params: [
|
|
7
|
+
params: [
|
|
8
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => Gio.AppInfo },
|
|
9
|
+
],
|
|
8
10
|
returnType: { type: "undefined" },
|
|
9
11
|
},
|
|
10
12
|
"application-selected": {
|
|
11
|
-
params: [
|
|
13
|
+
params: [
|
|
14
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => Gio.AppInfo },
|
|
15
|
+
],
|
|
12
16
|
returnType: { type: "undefined" },
|
|
13
17
|
},
|
|
14
18
|
};
|
|
@@ -6,13 +6,13 @@ const SIGNAL_META = {
|
|
|
6
6
|
"query-end": { params: [], returnType: { type: "undefined" } },
|
|
7
7
|
"window-added": {
|
|
8
8
|
params: [
|
|
9
|
-
{ type: { type: "gobject", borrowed:
|
|
9
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => Window },
|
|
10
10
|
],
|
|
11
11
|
returnType: { type: "undefined" },
|
|
12
12
|
},
|
|
13
13
|
"window-removed": {
|
|
14
14
|
params: [
|
|
15
|
-
{ type: { type: "gobject", borrowed:
|
|
15
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => Window },
|
|
16
16
|
],
|
|
17
17
|
returnType: { type: "undefined" },
|
|
18
18
|
},
|
|
@@ -11,7 +11,7 @@ const SIGNAL_META = {
|
|
|
11
11
|
escape: { params: [], returnType: { type: "undefined" } },
|
|
12
12
|
prepare: {
|
|
13
13
|
params: [
|
|
14
|
-
{ type: { type: "gobject", borrowed:
|
|
14
|
+
{ type: { type: "gobject", borrowed: true }, getCls: () => Widget },
|
|
15
15
|
],
|
|
16
16
|
returnType: { type: "undefined" },
|
|
17
17
|
},
|