@girs/gtef-2 2.0.0-3.2.7 → 2.0.0-3.2.9

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
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gtef-2)
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) v3.2.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) v3.2.9.
9
9
 
10
10
 
11
11
  ## Install
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
package/gtef-2.d.cts CHANGED
@@ -510,15 +510,11 @@ export module ApplicationWindow {
510
510
  /**
511
511
  * The #GtkApplicationWindow.
512
512
  */
513
- application_window?: Gtk.ApplicationWindow | null
513
+ applicationWindow?: Gtk.ApplicationWindow | null
514
514
  /**
515
515
  * The #GtkStatusbar. %NULL by default.
516
516
  */
517
517
  statusbar?: Gtk.Statusbar | null
518
- /**
519
- * The #GtkApplicationWindow.
520
- */
521
- applicationWindow?: Gtk.ApplicationWindow | null
522
518
  }
523
519
 
524
520
  }
@@ -527,10 +523,6 @@ export interface ApplicationWindow {
527
523
 
528
524
  // Own properties of Gtef-2.Gtef.ApplicationWindow
529
525
 
530
- /**
531
- * The #GtkApplicationWindow.
532
- */
533
- readonly application_window: Gtk.ApplicationWindow
534
526
  /**
535
527
  * The #GtkApplicationWindow.
536
528
  */
@@ -649,14 +641,6 @@ export module Buffer {
649
641
 
650
642
  // Own constructor properties of Gtef-2.Gtef.Buffer
651
643
 
652
- /**
653
- * The #GtkSourceBuffer:style-scheme ID, as a string. This property is
654
- * useful for binding it to a #GSettings key.
655
- *
656
- * When the #GtkSourceBuffer:style-scheme is %NULL,
657
- * #GtefBuffer:gtef-style-scheme-id contains the empty string.
658
- */
659
- gtef_style_scheme_id?: string | null
660
644
  /**
661
645
  * The #GtkSourceBuffer:style-scheme ID, as a string. This property is
662
646
  * useful for binding it to a #GSettings key.
@@ -673,14 +657,6 @@ export interface Buffer {
673
657
 
674
658
  // Own properties of Gtef-2.Gtef.Buffer
675
659
 
676
- /**
677
- * The #GtkSourceBuffer:style-scheme ID, as a string. This property is
678
- * useful for binding it to a #GSettings key.
679
- *
680
- * When the #GtkSourceBuffer:style-scheme is %NULL,
681
- * #GtefBuffer:gtef-style-scheme-id contains the empty string.
682
- */
683
- gtef_style_scheme_id: string | null
684
660
  /**
685
661
  * The #GtkSourceBuffer:style-scheme ID, as a string. This property is
686
662
  * useful for binding it to a #GSettings key.
@@ -689,10 +665,6 @@ export interface Buffer {
689
665
  * #GtefBuffer:gtef-style-scheme-id contains the empty string.
690
666
  */
691
667
  gtefStyleSchemeId: string | null
692
- /**
693
- * The buffer title. See gtef_buffer_get_title().
694
- */
695
- readonly gtef_title: string | null
696
668
  /**
697
669
  * The buffer title. See gtef_buffer_get_title().
698
670
  */
@@ -868,10 +840,6 @@ export interface File {
868
840
 
869
841
  // Own properties of Gtef-2.Gtef.File
870
842
 
871
- /**
872
- * The compression type.
873
- */
874
- readonly compression_type: CompressionType
875
843
  /**
876
844
  * The compression type.
877
845
  */
@@ -885,28 +853,15 @@ export interface File {
885
853
  * The location.
886
854
  */
887
855
  location: Gio.File
888
- /**
889
- * The line ending type.
890
- */
891
- readonly newline_type: NewlineType
892
856
  /**
893
857
  * The line ending type.
894
858
  */
895
859
  readonly newlineType: NewlineType
896
- /**
897
- * Whether the file is read-only or not. The value of this property is
898
- * not updated automatically (there is no file monitors).
899
- */
900
- readonly read_only: boolean
901
860
  /**
902
861
  * Whether the file is read-only or not. The value of this property is
903
862
  * not updated automatically (there is no file monitors).
904
863
  */
905
864
  readonly readOnly: boolean
906
- /**
907
- * The file short name. See gtef_file_get_short_name().
908
- */
909
- readonly short_name: string | null
910
865
  /**
911
866
  * The file short name. See gtef_file_get_short_name().
912
867
  */
@@ -1050,7 +1005,7 @@ export module FileLoader {
1050
1005
  * A small chunk size is better when loading a remote file with a slow
1051
1006
  * connection. For local files, the chunk size can be larger.
1052
1007
  */
1053
- chunk_size?: number | null
1008
+ chunkSize?: number | null
1054
1009
  /**
1055
1010
  * The #GtefFile. The #GtefFileLoader object has a weak
1056
1011
  * reference to the file.
@@ -1061,23 +1016,6 @@ export module FileLoader {
1061
1016
  * #GtefFile at construction time.
1062
1017
  */
1063
1018
  location?: Gio.File | null
1064
- /**
1065
- * The maximum content size, in bytes. Keep in mind that all the
1066
- * content is loaded in memory, and when loaded into a #GtkTextBuffer
1067
- * it takes more memory than just the content size.
1068
- *
1069
- * Set to -1 for unlimited size.
1070
- */
1071
- max_size?: number | null
1072
- /**
1073
- * The chunk size, in bytes. The content is loaded chunk by chunk. It
1074
- * permits to avoid allocating a too big contiguous memory area, as well
1075
- * as reporting progress information after each chunk read.
1076
- *
1077
- * A small chunk size is better when loading a remote file with a slow
1078
- * connection. For local files, the chunk size can be larger.
1079
- */
1080
- chunkSize?: number | null
1081
1019
  /**
1082
1020
  * The maximum content size, in bytes. Keep in mind that all the
1083
1021
  * content is loaded in memory, and when loaded into a #GtkTextBuffer
@@ -1099,15 +1037,6 @@ export interface FileLoader {
1099
1037
  * has a weak reference to the buffer.
1100
1038
  */
1101
1039
  readonly buffer: Buffer
1102
- /**
1103
- * The chunk size, in bytes. The content is loaded chunk by chunk. It
1104
- * permits to avoid allocating a too big contiguous memory area, as well
1105
- * as reporting progress information after each chunk read.
1106
- *
1107
- * A small chunk size is better when loading a remote file with a slow
1108
- * connection. For local files, the chunk size can be larger.
1109
- */
1110
- chunk_size: number
1111
1040
  /**
1112
1041
  * The chunk size, in bytes. The content is loaded chunk by chunk. It
1113
1042
  * permits to avoid allocating a too big contiguous memory area, as well
@@ -1127,14 +1056,6 @@ export interface FileLoader {
1127
1056
  * #GtefFile at construction time.
1128
1057
  */
1129
1058
  readonly location: Gio.File
1130
- /**
1131
- * The maximum content size, in bytes. Keep in mind that all the
1132
- * content is loaded in memory, and when loaded into a #GtkTextBuffer
1133
- * it takes more memory than just the content size.
1134
- *
1135
- * Set to -1 for unlimited size.
1136
- */
1137
- max_size: number
1138
1059
  /**
1139
1060
  * The maximum content size, in bytes. Keep in mind that all the
1140
1061
  * content is loaded in memory, and when loaded into a #GtkTextBuffer
@@ -1446,7 +1367,7 @@ export module FileSaver {
1446
1367
  /**
1447
1368
  * The compression type.
1448
1369
  */
1449
- compression_type?: GtkSource.CompressionType | null
1370
+ compressionType?: GtkSource.CompressionType | null
1450
1371
  /**
1451
1372
  * The file's encoding.
1452
1373
  */
@@ -1465,14 +1386,6 @@ export module FileSaver {
1465
1386
  * from the #GtefFile at construction time.
1466
1387
  */
1467
1388
  location?: Gio.File | null
1468
- /**
1469
- * The newline type.
1470
- */
1471
- newline_type?: GtkSource.NewlineType | null
1472
- /**
1473
- * The compression type.
1474
- */
1475
- compressionType?: GtkSource.CompressionType | null
1476
1389
  /**
1477
1390
  * The newline type.
1478
1391
  */
@@ -1490,10 +1403,6 @@ export interface FileSaver {
1490
1403
  * reference to the buffer.
1491
1404
  */
1492
1405
  readonly buffer: GtkSource.Buffer
1493
- /**
1494
- * The compression type.
1495
- */
1496
- compression_type: GtkSource.CompressionType
1497
1406
  /**
1498
1407
  * The compression type.
1499
1408
  */
@@ -1516,10 +1425,6 @@ export interface FileSaver {
1516
1425
  * from the #GtefFile at construction time.
1517
1426
  */
1518
1427
  readonly location: Gio.File
1519
- /**
1520
- * The newline type.
1521
- */
1522
- newline_type: GtkSource.NewlineType
1523
1428
  /**
1524
1429
  * The newline type.
1525
1430
  */
@@ -2176,10 +2081,6 @@ export module MenuShell {
2176
2081
 
2177
2082
  // Own constructor properties of Gtef-2.Gtef.MenuShell
2178
2083
 
2179
- /**
2180
- * The #GtkMenuShell.
2181
- */
2182
- menu_shell?: Gtk.MenuShell | null
2183
2084
  /**
2184
2085
  * The #GtkMenuShell.
2185
2086
  */
@@ -2192,10 +2093,6 @@ export interface MenuShell {
2192
2093
 
2193
2094
  // Own properties of Gtef-2.Gtef.MenuShell
2194
2095
 
2195
- /**
2196
- * The #GtkMenuShell.
2197
- */
2198
- readonly menu_shell: Gtk.MenuShell
2199
2096
  /**
2200
2097
  * The #GtkMenuShell.
2201
2098
  */
package/gtef-2.d.ts CHANGED
@@ -512,15 +512,11 @@ module ApplicationWindow {
512
512
  /**
513
513
  * The #GtkApplicationWindow.
514
514
  */
515
- application_window?: Gtk.ApplicationWindow | null
515
+ applicationWindow?: Gtk.ApplicationWindow | null
516
516
  /**
517
517
  * The #GtkStatusbar. %NULL by default.
518
518
  */
519
519
  statusbar?: Gtk.Statusbar | null
520
- /**
521
- * The #GtkApplicationWindow.
522
- */
523
- applicationWindow?: Gtk.ApplicationWindow | null
524
520
  }
525
521
 
526
522
  }
@@ -529,10 +525,6 @@ interface ApplicationWindow {
529
525
 
530
526
  // Own properties of Gtef-2.Gtef.ApplicationWindow
531
527
 
532
- /**
533
- * The #GtkApplicationWindow.
534
- */
535
- readonly application_window: Gtk.ApplicationWindow
536
528
  /**
537
529
  * The #GtkApplicationWindow.
538
530
  */
@@ -651,14 +643,6 @@ module Buffer {
651
643
 
652
644
  // Own constructor properties of Gtef-2.Gtef.Buffer
653
645
 
654
- /**
655
- * The #GtkSourceBuffer:style-scheme ID, as a string. This property is
656
- * useful for binding it to a #GSettings key.
657
- *
658
- * When the #GtkSourceBuffer:style-scheme is %NULL,
659
- * #GtefBuffer:gtef-style-scheme-id contains the empty string.
660
- */
661
- gtef_style_scheme_id?: string | null
662
646
  /**
663
647
  * The #GtkSourceBuffer:style-scheme ID, as a string. This property is
664
648
  * useful for binding it to a #GSettings key.
@@ -675,14 +659,6 @@ interface Buffer {
675
659
 
676
660
  // Own properties of Gtef-2.Gtef.Buffer
677
661
 
678
- /**
679
- * The #GtkSourceBuffer:style-scheme ID, as a string. This property is
680
- * useful for binding it to a #GSettings key.
681
- *
682
- * When the #GtkSourceBuffer:style-scheme is %NULL,
683
- * #GtefBuffer:gtef-style-scheme-id contains the empty string.
684
- */
685
- gtef_style_scheme_id: string | null
686
662
  /**
687
663
  * The #GtkSourceBuffer:style-scheme ID, as a string. This property is
688
664
  * useful for binding it to a #GSettings key.
@@ -691,10 +667,6 @@ interface Buffer {
691
667
  * #GtefBuffer:gtef-style-scheme-id contains the empty string.
692
668
  */
693
669
  gtefStyleSchemeId: string | null
694
- /**
695
- * The buffer title. See gtef_buffer_get_title().
696
- */
697
- readonly gtef_title: string | null
698
670
  /**
699
671
  * The buffer title. See gtef_buffer_get_title().
700
672
  */
@@ -870,10 +842,6 @@ interface File {
870
842
 
871
843
  // Own properties of Gtef-2.Gtef.File
872
844
 
873
- /**
874
- * The compression type.
875
- */
876
- readonly compression_type: CompressionType
877
845
  /**
878
846
  * The compression type.
879
847
  */
@@ -887,28 +855,15 @@ interface File {
887
855
  * The location.
888
856
  */
889
857
  location: Gio.File
890
- /**
891
- * The line ending type.
892
- */
893
- readonly newline_type: NewlineType
894
858
  /**
895
859
  * The line ending type.
896
860
  */
897
861
  readonly newlineType: NewlineType
898
- /**
899
- * Whether the file is read-only or not. The value of this property is
900
- * not updated automatically (there is no file monitors).
901
- */
902
- readonly read_only: boolean
903
862
  /**
904
863
  * Whether the file is read-only or not. The value of this property is
905
864
  * not updated automatically (there is no file monitors).
906
865
  */
907
866
  readonly readOnly: boolean
908
- /**
909
- * The file short name. See gtef_file_get_short_name().
910
- */
911
- readonly short_name: string | null
912
867
  /**
913
868
  * The file short name. See gtef_file_get_short_name().
914
869
  */
@@ -1052,7 +1007,7 @@ module FileLoader {
1052
1007
  * A small chunk size is better when loading a remote file with a slow
1053
1008
  * connection. For local files, the chunk size can be larger.
1054
1009
  */
1055
- chunk_size?: number | null
1010
+ chunkSize?: number | null
1056
1011
  /**
1057
1012
  * The #GtefFile. The #GtefFileLoader object has a weak
1058
1013
  * reference to the file.
@@ -1063,23 +1018,6 @@ module FileLoader {
1063
1018
  * #GtefFile at construction time.
1064
1019
  */
1065
1020
  location?: Gio.File | null
1066
- /**
1067
- * The maximum content size, in bytes. Keep in mind that all the
1068
- * content is loaded in memory, and when loaded into a #GtkTextBuffer
1069
- * it takes more memory than just the content size.
1070
- *
1071
- * Set to -1 for unlimited size.
1072
- */
1073
- max_size?: number | null
1074
- /**
1075
- * The chunk size, in bytes. The content is loaded chunk by chunk. It
1076
- * permits to avoid allocating a too big contiguous memory area, as well
1077
- * as reporting progress information after each chunk read.
1078
- *
1079
- * A small chunk size is better when loading a remote file with a slow
1080
- * connection. For local files, the chunk size can be larger.
1081
- */
1082
- chunkSize?: number | null
1083
1021
  /**
1084
1022
  * The maximum content size, in bytes. Keep in mind that all the
1085
1023
  * content is loaded in memory, and when loaded into a #GtkTextBuffer
@@ -1101,15 +1039,6 @@ interface FileLoader {
1101
1039
  * has a weak reference to the buffer.
1102
1040
  */
1103
1041
  readonly buffer: Buffer
1104
- /**
1105
- * The chunk size, in bytes. The content is loaded chunk by chunk. It
1106
- * permits to avoid allocating a too big contiguous memory area, as well
1107
- * as reporting progress information after each chunk read.
1108
- *
1109
- * A small chunk size is better when loading a remote file with a slow
1110
- * connection. For local files, the chunk size can be larger.
1111
- */
1112
- chunk_size: number
1113
1042
  /**
1114
1043
  * The chunk size, in bytes. The content is loaded chunk by chunk. It
1115
1044
  * permits to avoid allocating a too big contiguous memory area, as well
@@ -1129,14 +1058,6 @@ interface FileLoader {
1129
1058
  * #GtefFile at construction time.
1130
1059
  */
1131
1060
  readonly location: Gio.File
1132
- /**
1133
- * The maximum content size, in bytes. Keep in mind that all the
1134
- * content is loaded in memory, and when loaded into a #GtkTextBuffer
1135
- * it takes more memory than just the content size.
1136
- *
1137
- * Set to -1 for unlimited size.
1138
- */
1139
- max_size: number
1140
1061
  /**
1141
1062
  * The maximum content size, in bytes. Keep in mind that all the
1142
1063
  * content is loaded in memory, and when loaded into a #GtkTextBuffer
@@ -1448,7 +1369,7 @@ module FileSaver {
1448
1369
  /**
1449
1370
  * The compression type.
1450
1371
  */
1451
- compression_type?: GtkSource.CompressionType | null
1372
+ compressionType?: GtkSource.CompressionType | null
1452
1373
  /**
1453
1374
  * The file's encoding.
1454
1375
  */
@@ -1467,14 +1388,6 @@ module FileSaver {
1467
1388
  * from the #GtefFile at construction time.
1468
1389
  */
1469
1390
  location?: Gio.File | null
1470
- /**
1471
- * The newline type.
1472
- */
1473
- newline_type?: GtkSource.NewlineType | null
1474
- /**
1475
- * The compression type.
1476
- */
1477
- compressionType?: GtkSource.CompressionType | null
1478
1391
  /**
1479
1392
  * The newline type.
1480
1393
  */
@@ -1492,10 +1405,6 @@ interface FileSaver {
1492
1405
  * reference to the buffer.
1493
1406
  */
1494
1407
  readonly buffer: GtkSource.Buffer
1495
- /**
1496
- * The compression type.
1497
- */
1498
- compression_type: GtkSource.CompressionType
1499
1408
  /**
1500
1409
  * The compression type.
1501
1410
  */
@@ -1518,10 +1427,6 @@ interface FileSaver {
1518
1427
  * from the #GtefFile at construction time.
1519
1428
  */
1520
1429
  readonly location: Gio.File
1521
- /**
1522
- * The newline type.
1523
- */
1524
- newline_type: GtkSource.NewlineType
1525
1430
  /**
1526
1431
  * The newline type.
1527
1432
  */
@@ -2178,10 +2083,6 @@ module MenuShell {
2178
2083
 
2179
2084
  // Own constructor properties of Gtef-2.Gtef.MenuShell
2180
2085
 
2181
- /**
2182
- * The #GtkMenuShell.
2183
- */
2184
- menu_shell?: Gtk.MenuShell | null
2185
2086
  /**
2186
2087
  * The #GtkMenuShell.
2187
2088
  */
@@ -2194,10 +2095,6 @@ interface MenuShell {
2194
2095
 
2195
2096
  // Own properties of Gtef-2.Gtef.MenuShell
2196
2097
 
2197
- /**
2198
- * The #GtkMenuShell.
2199
- */
2200
- readonly menu_shell: Gtk.MenuShell
2201
2098
  /**
2202
2099
  * The #GtkMenuShell.
2203
2100
  */
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/gtef-2",
3
- "version": "2.0.0-3.2.7",
3
+ "version": "2.0.0-3.2.9",
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",
7
7
  "main": "gtef-2.js",
8
8
  "exports": {
9
- "./ambient": "./gtef-2-ambient.d.ts",
10
- "./import": "./gtef-2-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./gtef-2-ambient.d.ts",
11
+ "default": "./gtef-2-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./gtef-2-import.d.ts",
15
+ "default": "./gtef-2-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./gtef-2.d.ts",
@@ -25,21 +31,21 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gtef-2.d.cts"
26
32
  },
27
33
  "dependencies": {
28
- "@girs/atk-1.0": "^2.50.0-3.2.7",
29
- "@girs/cairo-1.0": "^1.0.0-3.2.7",
30
- "@girs/freetype2-2.0": "^2.0.0-3.2.7",
31
- "@girs/gdk-3.0": "^3.24.38-3.2.7",
32
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.7",
33
- "@girs/gio-2.0": "^2.78.0-3.2.7",
34
- "@girs/gjs": "^3.2.7",
35
- "@girs/glib-2.0": "^2.78.0-3.2.7",
36
- "@girs/gmodule-2.0": "^2.0.0-3.2.7",
37
- "@girs/gobject-2.0": "^2.78.0-3.2.7",
38
- "@girs/gtk-3.0": "^3.24.38-3.2.7",
39
- "@girs/gtksource-3.0": "^3.0.0-3.2.7",
40
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.7",
41
- "@girs/pango-1.0": "^1.51.0-3.2.7",
42
- "@girs/xlib-2.0": "^2.0.0-3.2.7"
34
+ "@girs/atk-1.0": "^2.50.1-3.2.9",
35
+ "@girs/cairo-1.0": "^1.0.0-3.2.9",
36
+ "@girs/freetype2-2.0": "^2.0.0-3.2.9",
37
+ "@girs/gdk-3.0": "^3.24.41-3.2.9",
38
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.9",
39
+ "@girs/gio-2.0": "^2.78.0-3.2.9",
40
+ "@girs/gjs": "^3.2.9",
41
+ "@girs/glib-2.0": "^2.78.0-3.2.9",
42
+ "@girs/gmodule-2.0": "^2.0.0-3.2.9",
43
+ "@girs/gobject-2.0": "^2.78.0-3.2.9",
44
+ "@girs/gtk-3.0": "^3.24.41-3.2.9",
45
+ "@girs/gtksource-3.0": "^3.0.0-3.2.9",
46
+ "@girs/harfbuzz-0.0": "^8.2.1-3.2.9",
47
+ "@girs/pango-1.0": "^1.51.0-3.2.9",
48
+ "@girs/xlib-2.0": "^2.0.0-3.2.9"
43
49
  },
44
50
  "devDependencies": {
45
51
  "typescript": "*"
@@ -56,7 +62,7 @@
56
62
  "license": "MIT",
57
63
  "repository": {
58
64
  "type": "git",
59
- "url": "git+https://github.com/gjsify/types.git"
65
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
60
66
  },
61
67
  "bugs": {
62
68
  "url": "https://github.com/gjsify/ts-for-gir/issues"