@girs/gtef-2 2.0.0-4.0.0-rc.15 → 2.0.0-4.0.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 +1 -1
- package/gtef-2.d.ts +73 -90
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for Gtef-2, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0
|
|
8
|
+
GJS TypeScript type definitions for Gtef-2, generated from library version 2.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
package/gtef-2.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export namespace Gtef {
|
|
|
76
76
|
static ENCODING_AUTO_DETECTION_FAILED: number;
|
|
77
77
|
|
|
78
78
|
// Constructors
|
|
79
|
-
constructor(options: { message: string
|
|
79
|
+
constructor(options: { message: string; code: number });
|
|
80
80
|
|
|
81
81
|
// Static methods
|
|
82
82
|
static quark(): GLib.Quark;
|
|
@@ -104,7 +104,7 @@ export namespace Gtef {
|
|
|
104
104
|
static EXTERNALLY_MODIFIED: number;
|
|
105
105
|
|
|
106
106
|
// Constructors
|
|
107
|
-
constructor(options: { message: string
|
|
107
|
+
constructor(options: { message: string; code: number });
|
|
108
108
|
|
|
109
109
|
// Static methods
|
|
110
110
|
static quark(): GLib.Quark;
|
|
@@ -227,7 +227,7 @@ export namespace Gtef {
|
|
|
227
227
|
* @returns the long description of `menu_item`, previously set with `gtef_menu_item_set_long_description()`.
|
|
228
228
|
* @since 2.0
|
|
229
229
|
*/
|
|
230
|
-
function menu_item_get_long_description(menu_item: Gtk.MenuItem):
|
|
230
|
+
function menu_item_get_long_description(menu_item: Gtk.MenuItem): string | null;
|
|
231
231
|
|
|
232
232
|
/**
|
|
233
233
|
* Sets an icon to a {@link Gtk.MenuItem}.
|
|
@@ -255,7 +255,7 @@ export namespace Gtef {
|
|
|
255
255
|
* @param long_description the long description, or `null` to unset it.
|
|
256
256
|
* @since 2.0
|
|
257
257
|
*/
|
|
258
|
-
function menu_item_set_long_description(menu_item: Gtk.MenuItem, long_description:
|
|
258
|
+
function menu_item_set_long_description(menu_item: Gtk.MenuItem, long_description: string | null): void;
|
|
259
259
|
|
|
260
260
|
/**
|
|
261
261
|
* This function initializes the metadata manager.
|
|
@@ -367,13 +367,10 @@ export namespace Gtef {
|
|
|
367
367
|
|
|
368
368
|
namespace ActionInfoCentralStore {
|
|
369
369
|
// Signal signatures
|
|
370
|
-
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
371
|
-
}
|
|
370
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
372
371
|
|
|
373
372
|
// Constructor properties interface
|
|
374
|
-
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
375
|
-
|
|
376
|
-
}
|
|
373
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
377
374
|
}
|
|
378
375
|
|
|
379
376
|
/**
|
|
@@ -429,7 +426,7 @@ export namespace Gtef {
|
|
|
429
426
|
|
|
430
427
|
// Constructor properties interface
|
|
431
428
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
432
|
-
application:
|
|
429
|
+
application: Gtk.Application | null;
|
|
433
430
|
}
|
|
434
431
|
}
|
|
435
432
|
|
|
@@ -446,7 +443,7 @@ export namespace Gtef {
|
|
|
446
443
|
* @since 2.0
|
|
447
444
|
* @construct-only
|
|
448
445
|
*/
|
|
449
|
-
get application():
|
|
446
|
+
get application(): Gtk.Application | null;
|
|
450
447
|
|
|
451
448
|
/**
|
|
452
449
|
* Compile-time signal type information.
|
|
@@ -462,7 +459,7 @@ export namespace Gtef {
|
|
|
462
459
|
|
|
463
460
|
_init(...args: any[]): void;
|
|
464
461
|
|
|
465
|
-
static ["new"](application:
|
|
462
|
+
static ["new"](application: Gtk.Application | null): ActionInfoStore;
|
|
466
463
|
|
|
467
464
|
// Signals
|
|
468
465
|
/** @signal */
|
|
@@ -497,7 +494,7 @@ export namespace Gtef {
|
|
|
497
494
|
* @param entries a pointer to the first item in an array of {@link Gtef.ActionInfoEntry} structs.
|
|
498
495
|
* @param translation_domain a gettext domain, or `null`.
|
|
499
496
|
*/
|
|
500
|
-
add_entries(entries: ActionInfoEntry[], translation_domain:
|
|
497
|
+
add_entries(entries: ActionInfoEntry[], translation_domain: string | null): void;
|
|
501
498
|
|
|
502
499
|
/**
|
|
503
500
|
* Checks that all {@link Gtef.ActionInfo}'s of `store` have been used by
|
|
@@ -532,7 +529,7 @@ export namespace Gtef {
|
|
|
532
529
|
/**
|
|
533
530
|
* @returns the associated {@link Gtk.Application}, or `null`.
|
|
534
531
|
*/
|
|
535
|
-
get_application():
|
|
532
|
+
get_application(): Gtk.Application | null;
|
|
536
533
|
|
|
537
534
|
/**
|
|
538
535
|
* @param action_name an action name.
|
|
@@ -644,7 +641,7 @@ export namespace Gtef {
|
|
|
644
641
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
645
642
|
application_window: Gtk.ApplicationWindow;
|
|
646
643
|
applicationWindow: Gtk.ApplicationWindow;
|
|
647
|
-
statusbar:
|
|
644
|
+
statusbar: Gtk.Statusbar | null;
|
|
648
645
|
}
|
|
649
646
|
}
|
|
650
647
|
|
|
@@ -673,8 +670,8 @@ export namespace Gtef {
|
|
|
673
670
|
* The {@link Gtk.Statusbar}. `null` by default.
|
|
674
671
|
* @since 2.0
|
|
675
672
|
*/
|
|
676
|
-
get statusbar():
|
|
677
|
-
set statusbar(val:
|
|
673
|
+
get statusbar(): Gtk.Statusbar | null;
|
|
674
|
+
set statusbar(val: Gtk.Statusbar | null);
|
|
678
675
|
|
|
679
676
|
/**
|
|
680
677
|
* Compile-time signal type information.
|
|
@@ -765,13 +762,13 @@ export namespace Gtef {
|
|
|
765
762
|
/**
|
|
766
763
|
* @returns the {@link Gtef.ApplicationWindow.statusbar}.
|
|
767
764
|
*/
|
|
768
|
-
get_statusbar():
|
|
765
|
+
get_statusbar(): Gtk.Statusbar | null;
|
|
769
766
|
|
|
770
767
|
/**
|
|
771
768
|
* Sets the {@link Gtef.ApplicationWindow.statusbar} property.
|
|
772
769
|
* @param statusbar a {@link Gtk.Statusbar}, or `null`.
|
|
773
770
|
*/
|
|
774
|
-
set_statusbar(statusbar:
|
|
771
|
+
set_statusbar(statusbar: Gtk.Statusbar | null): void;
|
|
775
772
|
}
|
|
776
773
|
|
|
777
774
|
|
|
@@ -1175,7 +1172,7 @@ export namespace Gtef {
|
|
|
1175
1172
|
* Sets the location.
|
|
1176
1173
|
* @param location the new {@link Gio.File}, or `null`.
|
|
1177
1174
|
*/
|
|
1178
|
-
set_location(location:
|
|
1175
|
+
set_location(location: Gio.File | null): void;
|
|
1179
1176
|
}
|
|
1180
1177
|
|
|
1181
1178
|
|
|
@@ -1191,13 +1188,13 @@ export namespace Gtef {
|
|
|
1191
1188
|
|
|
1192
1189
|
// Constructor properties interface
|
|
1193
1190
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1194
|
-
buffer:
|
|
1195
|
-
chunk_size:
|
|
1196
|
-
chunkSize:
|
|
1197
|
-
file:
|
|
1198
|
-
location:
|
|
1199
|
-
max_size:
|
|
1200
|
-
maxSize:
|
|
1191
|
+
buffer: Buffer | null;
|
|
1192
|
+
chunk_size: bigint | number;
|
|
1193
|
+
chunkSize: bigint | number;
|
|
1194
|
+
file: File | null;
|
|
1195
|
+
location: Gio.File | null;
|
|
1196
|
+
max_size: bigint | number;
|
|
1197
|
+
maxSize: bigint | number;
|
|
1201
1198
|
}
|
|
1202
1199
|
}
|
|
1203
1200
|
|
|
@@ -1214,7 +1211,7 @@ export namespace Gtef {
|
|
|
1214
1211
|
* @since 1.0
|
|
1215
1212
|
* @construct-only
|
|
1216
1213
|
*/
|
|
1217
|
-
get buffer():
|
|
1214
|
+
get buffer(): Buffer | null;
|
|
1218
1215
|
|
|
1219
1216
|
/**
|
|
1220
1217
|
* The chunk size, in bytes. The content is loaded chunk by chunk. It
|
|
@@ -1226,7 +1223,7 @@ export namespace Gtef {
|
|
|
1226
1223
|
* @since 1.0
|
|
1227
1224
|
*/
|
|
1228
1225
|
get chunk_size(): number;
|
|
1229
|
-
set chunk_size(val:
|
|
1226
|
+
set chunk_size(val: bigint | number);
|
|
1230
1227
|
|
|
1231
1228
|
/**
|
|
1232
1229
|
* The chunk size, in bytes. The content is loaded chunk by chunk. It
|
|
@@ -1238,7 +1235,7 @@ export namespace Gtef {
|
|
|
1238
1235
|
* @since 1.0
|
|
1239
1236
|
*/
|
|
1240
1237
|
get chunkSize(): number;
|
|
1241
|
-
set chunkSize(val:
|
|
1238
|
+
set chunkSize(val: bigint | number);
|
|
1242
1239
|
|
|
1243
1240
|
/**
|
|
1244
1241
|
* The {@link Gtef.File}. The {@link Gtef.FileLoader} object has a weak
|
|
@@ -1246,7 +1243,7 @@ export namespace Gtef {
|
|
|
1246
1243
|
* @since 1.0
|
|
1247
1244
|
* @construct-only
|
|
1248
1245
|
*/
|
|
1249
|
-
get file():
|
|
1246
|
+
get file(): File | null;
|
|
1250
1247
|
|
|
1251
1248
|
/**
|
|
1252
1249
|
* The {@link Gio.File} to load. By default the location is taken from the
|
|
@@ -1254,7 +1251,7 @@ export namespace Gtef {
|
|
|
1254
1251
|
* @since 1.0
|
|
1255
1252
|
* @construct-only
|
|
1256
1253
|
*/
|
|
1257
|
-
get location():
|
|
1254
|
+
get location(): Gio.File | null;
|
|
1258
1255
|
|
|
1259
1256
|
/**
|
|
1260
1257
|
* The maximum content size, in bytes. Keep in mind that all the
|
|
@@ -1265,7 +1262,7 @@ export namespace Gtef {
|
|
|
1265
1262
|
* @since 1.0
|
|
1266
1263
|
*/
|
|
1267
1264
|
get max_size(): number;
|
|
1268
|
-
set max_size(val:
|
|
1265
|
+
set max_size(val: bigint | number);
|
|
1269
1266
|
|
|
1270
1267
|
/**
|
|
1271
1268
|
* The maximum content size, in bytes. Keep in mind that all the
|
|
@@ -1276,7 +1273,7 @@ export namespace Gtef {
|
|
|
1276
1273
|
* @since 1.0
|
|
1277
1274
|
*/
|
|
1278
1275
|
get maxSize(): number;
|
|
1279
|
-
set maxSize(val:
|
|
1276
|
+
set maxSize(val: bigint | number);
|
|
1280
1277
|
|
|
1281
1278
|
/**
|
|
1282
1279
|
* Compile-time signal type information.
|
|
@@ -1311,7 +1308,7 @@ export namespace Gtef {
|
|
|
1311
1308
|
/**
|
|
1312
1309
|
* @returns the {@link Gtef.Buffer} to load the content into.
|
|
1313
1310
|
*/
|
|
1314
|
-
get_buffer():
|
|
1311
|
+
get_buffer(): Buffer | null;
|
|
1315
1312
|
|
|
1316
1313
|
/**
|
|
1317
1314
|
* @returns the chunk size.
|
|
@@ -1321,17 +1318,17 @@ export namespace Gtef {
|
|
|
1321
1318
|
/**
|
|
1322
1319
|
* @returns the detected file encoding, or `null`.
|
|
1323
1320
|
*/
|
|
1324
|
-
get_encoding():
|
|
1321
|
+
get_encoding(): Encoding | null;
|
|
1325
1322
|
|
|
1326
1323
|
/**
|
|
1327
1324
|
* @returns the {@link Gtef.File}.
|
|
1328
1325
|
*/
|
|
1329
|
-
get_file():
|
|
1326
|
+
get_file(): File | null;
|
|
1330
1327
|
|
|
1331
1328
|
/**
|
|
1332
1329
|
* @returns the {@link Gio.File} to load.
|
|
1333
1330
|
*/
|
|
1334
|
-
get_location():
|
|
1331
|
+
get_location(): Gio.File | null;
|
|
1335
1332
|
|
|
1336
1333
|
/**
|
|
1337
1334
|
* @returns the maximum content size, or -1 for unlimited.
|
|
@@ -1351,7 +1348,7 @@ export namespace Gtef {
|
|
|
1351
1348
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1352
1349
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
1353
1350
|
*/
|
|
1354
|
-
load_async(io_priority: number, cancellable:
|
|
1351
|
+
load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null): globalThis.Promise<boolean>;
|
|
1355
1352
|
|
|
1356
1353
|
/**
|
|
1357
1354
|
* Loads asynchronously the file content into the {@link Gtef.Buffer}.
|
|
@@ -1362,7 +1359,7 @@ export namespace Gtef {
|
|
|
1362
1359
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
1363
1360
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
|
|
1364
1361
|
*/
|
|
1365
|
-
load_async(io_priority: number, cancellable:
|
|
1362
|
+
load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
1366
1363
|
|
|
1367
1364
|
/**
|
|
1368
1365
|
* Loads asynchronously the file content into the {@link Gtef.Buffer}.
|
|
@@ -1373,7 +1370,7 @@ export namespace Gtef {
|
|
|
1373
1370
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
1374
1371
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
|
|
1375
1372
|
*/
|
|
1376
|
-
load_async(io_priority: number, cancellable:
|
|
1373
|
+
load_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
|
|
1377
1374
|
|
|
1378
1375
|
/**
|
|
1379
1376
|
* Finishes a file loading started with `gtef_file_loader_load_async()`.
|
|
@@ -1385,12 +1382,12 @@ export namespace Gtef {
|
|
|
1385
1382
|
/**
|
|
1386
1383
|
* @param chunk_size the new chunk size.
|
|
1387
1384
|
*/
|
|
1388
|
-
set_chunk_size(chunk_size:
|
|
1385
|
+
set_chunk_size(chunk_size: bigint | number): void;
|
|
1389
1386
|
|
|
1390
1387
|
/**
|
|
1391
1388
|
* @param max_size the new maximum size, or -1 for unlimited.
|
|
1392
1389
|
*/
|
|
1393
|
-
set_max_size(max_size:
|
|
1390
|
+
set_max_size(max_size: bigint | number): void;
|
|
1394
1391
|
}
|
|
1395
1392
|
|
|
1396
1393
|
|
|
@@ -1455,7 +1452,7 @@ export namespace Gtef {
|
|
|
1455
1452
|
* @param key the name of the metadata.
|
|
1456
1453
|
* @returns the value of the metadata, or `null` if the metadata doesn't exist. Free with `g_free()`.
|
|
1457
1454
|
*/
|
|
1458
|
-
get(key: string):
|
|
1455
|
+
get(key: string): string | null;
|
|
1459
1456
|
|
|
1460
1457
|
/**
|
|
1461
1458
|
* @returns the {@link Gtef.File} that the metadata belong to.
|
|
@@ -1476,7 +1473,7 @@ export namespace Gtef {
|
|
|
1476
1473
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1477
1474
|
* @returns whether the metadata was loaded successfully.
|
|
1478
1475
|
*/
|
|
1479
|
-
load(cancellable:
|
|
1476
|
+
load(cancellable: Gio.Cancellable | null): boolean;
|
|
1480
1477
|
|
|
1481
1478
|
/**
|
|
1482
1479
|
* The asynchronous version of `gtef_file_metadata_load()`.
|
|
@@ -1489,7 +1486,7 @@ export namespace Gtef {
|
|
|
1489
1486
|
* @param io_priority the I/O priority of the request. E.g. `G_PRIORITY_LOW`, `G_PRIORITY_DEFAULT` or `G_PRIORITY_HIGH`.
|
|
1490
1487
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1491
1488
|
*/
|
|
1492
|
-
load_async(io_priority: number, cancellable:
|
|
1489
|
+
load_async(io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>;
|
|
1493
1490
|
|
|
1494
1491
|
/**
|
|
1495
1492
|
* The asynchronous version of `gtef_file_metadata_load()`.
|
|
@@ -1503,7 +1500,7 @@ export namespace Gtef {
|
|
|
1503
1500
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1504
1501
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
|
|
1505
1502
|
*/
|
|
1506
|
-
load_async(io_priority: number, cancellable:
|
|
1503
|
+
load_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
1507
1504
|
|
|
1508
1505
|
/**
|
|
1509
1506
|
* The asynchronous version of `gtef_file_metadata_load()`.
|
|
@@ -1517,7 +1514,7 @@ export namespace Gtef {
|
|
|
1517
1514
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1518
1515
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
|
|
1519
1516
|
*/
|
|
1520
|
-
load_async(io_priority: number, cancellable:
|
|
1517
|
+
load_async(io_priority: number, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
|
|
1521
1518
|
|
|
1522
1519
|
/**
|
|
1523
1520
|
* Finishes the metadata loading started with `gtef_file_metadata_load_async()`.
|
|
@@ -1536,7 +1533,7 @@ export namespace Gtef {
|
|
|
1536
1533
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1537
1534
|
* @returns whether the metadata was saved successfully.
|
|
1538
1535
|
*/
|
|
1539
|
-
save(cancellable:
|
|
1536
|
+
save(cancellable: Gio.Cancellable | null): boolean;
|
|
1540
1537
|
|
|
1541
1538
|
/**
|
|
1542
1539
|
* The asynchronous version of `gtef_file_metadata_save()`.
|
|
@@ -1548,7 +1545,7 @@ export namespace Gtef {
|
|
|
1548
1545
|
* @param io_priority the I/O priority of the request. E.g. `G_PRIORITY_LOW`, `G_PRIORITY_DEFAULT` or `G_PRIORITY_HIGH`.
|
|
1549
1546
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1550
1547
|
*/
|
|
1551
|
-
save_async(io_priority: number, cancellable:
|
|
1548
|
+
save_async(io_priority: number, cancellable: Gio.Cancellable | null): globalThis.Promise<boolean>;
|
|
1552
1549
|
|
|
1553
1550
|
/**
|
|
1554
1551
|
* The asynchronous version of `gtef_file_metadata_save()`.
|
|
@@ -1561,7 +1558,7 @@ export namespace Gtef {
|
|
|
1561
1558
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1562
1559
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
|
|
1563
1560
|
*/
|
|
1564
|
-
save_async(io_priority: number, cancellable:
|
|
1561
|
+
save_async(io_priority: number, cancellable: Gio.Cancellable | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
1565
1562
|
|
|
1566
1563
|
/**
|
|
1567
1564
|
* The asynchronous version of `gtef_file_metadata_save()`.
|
|
@@ -1574,7 +1571,7 @@ export namespace Gtef {
|
|
|
1574
1571
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1575
1572
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
|
|
1576
1573
|
*/
|
|
1577
|
-
save_async(io_priority: number, cancellable:
|
|
1574
|
+
save_async(io_priority: number, cancellable: Gio.Cancellable | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
|
|
1578
1575
|
|
|
1579
1576
|
/**
|
|
1580
1577
|
* Finishes the metadata saving started with `gtef_file_metadata_save_async()`.
|
|
@@ -1592,7 +1589,7 @@ export namespace Gtef {
|
|
|
1592
1589
|
* @param key the name of the metadata.
|
|
1593
1590
|
* @param value the value of the metadata, or `null` to unset.
|
|
1594
1591
|
*/
|
|
1595
|
-
set(key: string, value:
|
|
1592
|
+
set(key: string, value: string | null): void;
|
|
1596
1593
|
|
|
1597
1594
|
/**
|
|
1598
1595
|
* @param args
|
|
@@ -1778,7 +1775,7 @@ export namespace Gtef {
|
|
|
1778
1775
|
* @param cancellable optional {@link Gio.Cancellable} object, `null` to ignore.
|
|
1779
1776
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
1780
1777
|
*/
|
|
1781
|
-
save_async(io_priority: number, cancellable:
|
|
1778
|
+
save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null): globalThis.Promise<boolean>;
|
|
1782
1779
|
|
|
1783
1780
|
/**
|
|
1784
1781
|
* Saves asynchronously the buffer into the file. See the {@link Gio.AsyncResult}
|
|
@@ -1788,7 +1785,7 @@ export namespace Gtef {
|
|
|
1788
1785
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
1789
1786
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
|
|
1790
1787
|
*/
|
|
1791
|
-
save_async(io_priority: number, cancellable:
|
|
1788
|
+
save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback: Gio.AsyncReadyCallback<this> | null): void;
|
|
1792
1789
|
|
|
1793
1790
|
/**
|
|
1794
1791
|
* Saves asynchronously the buffer into the file. See the {@link Gio.AsyncResult}
|
|
@@ -1798,7 +1795,7 @@ export namespace Gtef {
|
|
|
1798
1795
|
* @param progress_callback function to call back with progress information, or `null` if progress information is not needed.
|
|
1799
1796
|
* @param callback a {@link Gio.AsyncReadyCallback} to call when the request is satisfied.
|
|
1800
1797
|
*/
|
|
1801
|
-
save_async(io_priority: number, cancellable:
|
|
1798
|
+
save_async(io_priority: number, cancellable: Gio.Cancellable | null, progress_callback: Gio.FileProgressCallback | null, callback?: Gio.AsyncReadyCallback<this> | null): globalThis.Promise<boolean> | void;
|
|
1802
1799
|
|
|
1803
1800
|
/**
|
|
1804
1801
|
* Finishes a file saving started with `gtef_file_saver_save_async()`.
|
|
@@ -1826,7 +1823,7 @@ export namespace Gtef {
|
|
|
1826
1823
|
* By default the encoding is taken from the {@link Gtef.File}.
|
|
1827
1824
|
* @param encoding the new encoding, or `null` for UTF-8.
|
|
1828
1825
|
*/
|
|
1829
|
-
set_encoding(encoding:
|
|
1826
|
+
set_encoding(encoding: Encoding | null): void;
|
|
1830
1827
|
|
|
1831
1828
|
/**
|
|
1832
1829
|
* @param flags the new flags.
|
|
@@ -1851,7 +1848,7 @@ export namespace Gtef {
|
|
|
1851
1848
|
|
|
1852
1849
|
// Constructor properties interface
|
|
1853
1850
|
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1854
|
-
buffer:
|
|
1851
|
+
buffer: Gtk.TextBuffer | null;
|
|
1855
1852
|
folded: boolean;
|
|
1856
1853
|
}
|
|
1857
1854
|
}
|
|
@@ -1869,7 +1866,7 @@ export namespace Gtef {
|
|
|
1869
1866
|
* @since 1.0
|
|
1870
1867
|
* @construct-only
|
|
1871
1868
|
*/
|
|
1872
|
-
get buffer():
|
|
1869
|
+
get buffer(): Gtk.TextBuffer | null;
|
|
1873
1870
|
|
|
1874
1871
|
/**
|
|
1875
1872
|
* Whether the {@link Gtef.FoldRegion} is folded or not.
|
|
@@ -1917,7 +1914,7 @@ export namespace Gtef {
|
|
|
1917
1914
|
/**
|
|
1918
1915
|
* @returns the {@link Gtk.TextBuffer} where the fold region is applied.
|
|
1919
1916
|
*/
|
|
1920
|
-
get_buffer():
|
|
1917
|
+
get_buffer(): Gtk.TextBuffer | null;
|
|
1921
1918
|
|
|
1922
1919
|
/**
|
|
1923
1920
|
* @returns whether the {@link Gtef.FoldRegion} is folded.
|
|
@@ -1956,9 +1953,7 @@ export namespace Gtef {
|
|
|
1956
1953
|
}
|
|
1957
1954
|
|
|
1958
1955
|
// Constructor properties interface
|
|
1959
|
-
interface ConstructorProps extends GtkSource.GutterRenderer.ConstructorProps {
|
|
1960
|
-
|
|
1961
|
-
}
|
|
1956
|
+
interface ConstructorProps extends GtkSource.GutterRenderer.ConstructorProps {}
|
|
1962
1957
|
}
|
|
1963
1958
|
|
|
1964
1959
|
/**
|
|
@@ -2062,9 +2057,7 @@ export namespace Gtef {
|
|
|
2062
2057
|
}
|
|
2063
2058
|
|
|
2064
2059
|
// Constructor properties interface
|
|
2065
|
-
interface ConstructorProps extends Gtk.InfoBar.ConstructorProps, Atk.ImplementorIface.ConstructorProps, Gtk.Buildable.ConstructorProps, Gtk.Orientable.ConstructorProps {
|
|
2066
|
-
|
|
2067
|
-
}
|
|
2060
|
+
interface ConstructorProps extends Gtk.InfoBar.ConstructorProps, Atk.ImplementorIface.ConstructorProps, Gtk.Buildable.ConstructorProps, Gtk.Orientable.ConstructorProps {}
|
|
2068
2061
|
}
|
|
2069
2062
|
|
|
2070
2063
|
/**
|
|
@@ -2089,7 +2082,7 @@ export namespace Gtef {
|
|
|
2089
2082
|
|
|
2090
2083
|
static ["new"](): InfoBar;
|
|
2091
2084
|
|
|
2092
|
-
static new_simple(msg_type: Gtk.MessageType, primary_msg: string, secondary_msg:
|
|
2085
|
+
static new_simple(msg_type: Gtk.MessageType, primary_msg: string, secondary_msg: string | null): InfoBar;
|
|
2093
2086
|
|
|
2094
2087
|
// Signals
|
|
2095
2088
|
/** @signal */
|
|
@@ -2317,9 +2310,7 @@ export namespace Gtef {
|
|
|
2317
2310
|
}
|
|
2318
2311
|
|
|
2319
2312
|
// Constructor properties interface
|
|
2320
|
-
interface ConstructorProps extends Gtk.Grid.ConstructorProps, Atk.ImplementorIface.ConstructorProps, Gtk.Buildable.ConstructorProps, Gtk.Orientable.ConstructorProps {
|
|
2321
|
-
|
|
2322
|
-
}
|
|
2313
|
+
interface ConstructorProps extends Gtk.Grid.ConstructorProps, Atk.ImplementorIface.ConstructorProps, Gtk.Buildable.ConstructorProps, Gtk.Orientable.ConstructorProps {}
|
|
2323
2314
|
}
|
|
2324
2315
|
|
|
2325
2316
|
/**
|
|
@@ -2479,9 +2470,7 @@ export namespace Gtef {
|
|
|
2479
2470
|
}
|
|
2480
2471
|
|
|
2481
2472
|
// Constructor properties interface
|
|
2482
|
-
interface ConstructorProps extends GtkSource.View.ConstructorProps, Atk.ImplementorIface.ConstructorProps, Gtk.Buildable.ConstructorProps, Gtk.Scrollable.ConstructorProps {
|
|
2483
|
-
|
|
2484
|
-
}
|
|
2473
|
+
interface ConstructorProps extends GtkSource.View.ConstructorProps, Atk.ImplementorIface.ConstructorProps, Gtk.Buildable.ConstructorProps, Gtk.Scrollable.ConstructorProps {}
|
|
2485
2474
|
}
|
|
2486
2475
|
|
|
2487
2476
|
/**
|
|
@@ -2588,14 +2577,11 @@ export namespace Gtef {
|
|
|
2588
2577
|
static $gtype: GObject.GType<ActionInfo>;
|
|
2589
2578
|
|
|
2590
2579
|
// Constructors
|
|
2591
|
-
|
|
2592
|
-
constructor(properties?: Partial<{
|
|
2593
|
-
|
|
2594
|
-
}>);
|
|
2580
|
+
constructor(properties?: Partial<{}>);
|
|
2595
2581
|
|
|
2596
2582
|
static ["new"](): ActionInfo;
|
|
2597
2583
|
|
|
2598
|
-
static new_from_entry(info_entry: ActionInfoEntry, translation_domain:
|
|
2584
|
+
static new_from_entry(info_entry: ActionInfoEntry, translation_domain: string | null): ActionInfo;
|
|
2599
2585
|
|
|
2600
2586
|
// Methods
|
|
2601
2587
|
/**
|
|
@@ -2614,22 +2600,22 @@ export namespace Gtef {
|
|
|
2614
2600
|
/**
|
|
2615
2601
|
* @returns the action name, or `null`. Example: `"win.save"`.
|
|
2616
2602
|
*/
|
|
2617
|
-
get_action_name():
|
|
2603
|
+
get_action_name(): string | null;
|
|
2618
2604
|
|
|
2619
2605
|
/**
|
|
2620
2606
|
* @returns the icon name, or `null`.
|
|
2621
2607
|
*/
|
|
2622
|
-
get_icon_name():
|
|
2608
|
+
get_icon_name(): string | null;
|
|
2623
2609
|
|
|
2624
2610
|
/**
|
|
2625
2611
|
* @returns the label (i.e. a short description), or `null`.
|
|
2626
2612
|
*/
|
|
2627
|
-
get_label():
|
|
2613
|
+
get_label(): string | null;
|
|
2628
2614
|
|
|
2629
2615
|
/**
|
|
2630
2616
|
* @returns the tooltip (i.e. a long description), or `null`.
|
|
2631
2617
|
*/
|
|
2632
|
-
get_tooltip():
|
|
2618
|
+
get_tooltip(): string | null;
|
|
2633
2619
|
|
|
2634
2620
|
/**
|
|
2635
2621
|
* Increments the reference count of `info` by one.
|
|
@@ -2655,17 +2641,17 @@ export namespace Gtef {
|
|
|
2655
2641
|
/**
|
|
2656
2642
|
* @param icon_name the icon name, or `null`.
|
|
2657
2643
|
*/
|
|
2658
|
-
set_icon_name(icon_name:
|
|
2644
|
+
set_icon_name(icon_name: string | null): void;
|
|
2659
2645
|
|
|
2660
2646
|
/**
|
|
2661
2647
|
* @param label the label (i.e. a short description), or `null`.
|
|
2662
2648
|
*/
|
|
2663
|
-
set_label(label:
|
|
2649
|
+
set_label(label: string | null): void;
|
|
2664
2650
|
|
|
2665
2651
|
/**
|
|
2666
2652
|
* @param tooltip the tooltip (i.e. a long description), or `null`.
|
|
2667
2653
|
*/
|
|
2668
|
-
set_tooltip(tooltip:
|
|
2654
|
+
set_tooltip(tooltip: string | null): void;
|
|
2669
2655
|
|
|
2670
2656
|
/**
|
|
2671
2657
|
* Decrements the reference count of `info` by one. If the reference count drops
|
|
@@ -2775,10 +2761,7 @@ export namespace Gtef {
|
|
|
2775
2761
|
static $gtype: GObject.GType<Encoding>;
|
|
2776
2762
|
|
|
2777
2763
|
// Constructors
|
|
2778
|
-
|
|
2779
|
-
constructor(properties?: Partial<{
|
|
2780
|
-
|
|
2781
|
-
}>);
|
|
2764
|
+
constructor(properties?: Partial<{}>);
|
|
2782
2765
|
|
|
2783
2766
|
static ["new"](charset: string): Encoding;
|
|
2784
2767
|
|
|
@@ -2812,7 +2795,7 @@ export namespace Gtef {
|
|
|
2812
2795
|
* @param enc2 a {@link Gtef.Encoding}, or `null`.
|
|
2813
2796
|
* @returns whether `enc1` and `enc2` are equals.
|
|
2814
2797
|
*/
|
|
2815
|
-
equals(enc2:
|
|
2798
|
+
equals(enc2: Encoding | null): boolean;
|
|
2816
2799
|
|
|
2817
2800
|
free(): void;
|
|
2818
2801
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gtef-2",
|
|
3
|
-
"version": "2.0.0-4.0.0
|
|
3
|
+
"version": "2.0.0-4.0.0",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Gtef-2, generated from library version 2.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "gtef-2.js",
|
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/gjs": "4.0.0
|
|
35
|
-
"@girs/gtksource-3.0": "3.0.0-4.0.0
|
|
36
|
-
"@girs/gtk-3.0": "3.24.53-4.0.0
|
|
37
|
-
"@girs/xlib-2.0": "2.0.0-4.0.0
|
|
38
|
-
"@girs/gdk-3.0": "3.24.53-4.0.0
|
|
39
|
-
"@girs/cairo-1.0": "1.0.0-4.0.0
|
|
40
|
-
"@girs/gobject-2.0": "2.88.0-4.0.0
|
|
41
|
-
"@girs/glib-2.0": "2.88.0-4.0.0
|
|
42
|
-
"@girs/pango-1.0": "1.57.1-4.0.0
|
|
43
|
-
"@girs/harfbuzz-0.0": "13.2.1-4.0.0
|
|
44
|
-
"@girs/freetype2-2.0": "2.0.0-4.0.0
|
|
45
|
-
"@girs/gio-2.0": "2.88.0-4.0.0
|
|
46
|
-
"@girs/gmodule-2.0": "2.0.0-4.0.0
|
|
47
|
-
"@girs/gdkpixbuf-2.0": "2.0.0-4.0.0
|
|
48
|
-
"@girs/atk-1.0": "2.60.0-4.0.0
|
|
34
|
+
"@girs/gjs": "4.0.0",
|
|
35
|
+
"@girs/gtksource-3.0": "3.0.0-4.0.0",
|
|
36
|
+
"@girs/gtk-3.0": "3.24.53-4.0.0",
|
|
37
|
+
"@girs/xlib-2.0": "2.0.0-4.0.0",
|
|
38
|
+
"@girs/gdk-3.0": "3.24.53-4.0.0",
|
|
39
|
+
"@girs/cairo-1.0": "1.0.0-4.0.0",
|
|
40
|
+
"@girs/gobject-2.0": "2.88.0-4.0.0",
|
|
41
|
+
"@girs/glib-2.0": "2.88.0-4.0.0",
|
|
42
|
+
"@girs/pango-1.0": "1.57.1-4.0.0",
|
|
43
|
+
"@girs/harfbuzz-0.0": "13.2.1-4.0.0",
|
|
44
|
+
"@girs/freetype2-2.0": "2.0.0-4.0.0",
|
|
45
|
+
"@girs/gio-2.0": "2.88.0-4.0.0",
|
|
46
|
+
"@girs/gmodule-2.0": "2.0.0-4.0.0",
|
|
47
|
+
"@girs/gdkpixbuf-2.0": "2.0.0-4.0.0",
|
|
48
|
+
"@girs/atk-1.0": "2.60.0-4.0.0" },
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "*"
|
|
51
51
|
},
|