@girs/gtef-2 2.0.0-3.2.6 → 2.0.0-3.2.8
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-ambient.js +2 -0
- package/gtef-2-import.js +3 -0
- package/gtef-2.d.cts +34 -137
- package/gtef-2.d.ts +34 -137
- package/package.json +25 -19
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) v3.2.
|
|
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.8.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/gtef-2-import.js
ADDED
package/gtef-2.d.cts
CHANGED
|
@@ -212,7 +212,7 @@ export function menu_item_get_long_description(menu_item: Gtk.MenuItem): string
|
|
|
212
212
|
* @param item a #GtkMenuItem.
|
|
213
213
|
* @param icon_name an icon name.
|
|
214
214
|
*/
|
|
215
|
-
export function menu_item_set_icon_name(item: Gtk.MenuItem, icon_name: string
|
|
215
|
+
export function menu_item_set_icon_name(item: Gtk.MenuItem, icon_name: string): void
|
|
216
216
|
/**
|
|
217
217
|
* Sets the long description of `menu_item`. A possible use-case is to display it
|
|
218
218
|
* in a #GtkStatusbar, or as a tooltip.
|
|
@@ -230,7 +230,7 @@ export function menu_item_set_long_description(menu_item: Gtk.MenuItem, long_des
|
|
|
230
230
|
* directory. See g_get_user_data_dir().
|
|
231
231
|
* @param metadata_path the filename where the metadata is stored.
|
|
232
232
|
*/
|
|
233
|
-
export function metadata_manager_init(metadata_path: string
|
|
233
|
+
export function metadata_manager_init(metadata_path: string): void
|
|
234
234
|
/**
|
|
235
235
|
* This function saves synchronously metadata if they need to be saved, and
|
|
236
236
|
* frees the internal data of the metadata manager.
|
|
@@ -266,7 +266,7 @@ export interface ActionInfoCentralStore {
|
|
|
266
266
|
|
|
267
267
|
// Owm methods of Gtef-2.Gtef.ActionInfoCentralStore
|
|
268
268
|
|
|
269
|
-
lookup(action_name: string
|
|
269
|
+
lookup(action_name: string): ActionInfo
|
|
270
270
|
|
|
271
271
|
// Class property signals of Gtef-2.Gtef.ActionInfoCentralStore
|
|
272
272
|
|
|
@@ -370,9 +370,9 @@ export interface ActionInfoStore {
|
|
|
370
370
|
* @param action_name an action name.
|
|
371
371
|
* @returns a new #GtkMenuItem for @action_name.
|
|
372
372
|
*/
|
|
373
|
-
create_menu_item(action_name: string
|
|
373
|
+
create_menu_item(action_name: string): Gtk.Widget
|
|
374
374
|
get_application(): Gtk.Application | null
|
|
375
|
-
lookup(action_name: string
|
|
375
|
+
lookup(action_name: string): ActionInfo
|
|
376
376
|
|
|
377
377
|
// Class property signals of Gtef-2.Gtef.ActionInfoStore
|
|
378
378
|
|
|
@@ -510,15 +510,11 @@ export module ApplicationWindow {
|
|
|
510
510
|
/**
|
|
511
511
|
* The #GtkApplicationWindow.
|
|
512
512
|
*/
|
|
513
|
-
|
|
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
|
*/
|
|
@@ -745,7 +717,7 @@ export interface Buffer {
|
|
|
745
717
|
* gtk_source_style_scheme_manager_get_default().
|
|
746
718
|
* @param style_scheme_id the new value.
|
|
747
719
|
*/
|
|
748
|
-
set_style_scheme_id(style_scheme_id: string
|
|
720
|
+
set_style_scheme_id(style_scheme_id: string): void
|
|
749
721
|
|
|
750
722
|
// Own virtual methods of Gtef-2.Gtef.Buffer
|
|
751
723
|
|
|
@@ -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
|
*/
|
|
@@ -948,7 +903,7 @@ export interface File {
|
|
|
948
903
|
* released and can be used by a later untitled file.
|
|
949
904
|
* @returns the @file short name.
|
|
950
905
|
*/
|
|
951
|
-
get_short_name(): string
|
|
906
|
+
get_short_name(): string
|
|
952
907
|
/**
|
|
953
908
|
* Returns whether the file has been deleted. If the
|
|
954
909
|
* #GtefFile:location is %NULL, returns %FALSE.
|
|
@@ -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
|
-
|
|
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
|
|
@@ -1293,7 +1214,7 @@ export interface FileMetadata {
|
|
|
1293
1214
|
* @param key the name of the metadata.
|
|
1294
1215
|
* @returns the value of the metadata, or %NULL if the metadata doesn't exist. Free with g_free().
|
|
1295
1216
|
*/
|
|
1296
|
-
get(key: string
|
|
1217
|
+
get(key: string): string | null
|
|
1297
1218
|
get_file(): File
|
|
1298
1219
|
/**
|
|
1299
1220
|
* Loads synchronously the metadata from #GtefFile:location. The loaded
|
|
@@ -1402,7 +1323,7 @@ export interface FileMetadata {
|
|
|
1402
1323
|
* @param key the name of the metadata.
|
|
1403
1324
|
* @param value the value of the metadata, or %NULL to unset.
|
|
1404
1325
|
*/
|
|
1405
|
-
set(key: string
|
|
1326
|
+
set(key: string, value: string | null): void
|
|
1406
1327
|
|
|
1407
1328
|
// Class property signals of Gtef-2.Gtef.FileMetadata
|
|
1408
1329
|
|
|
@@ -1446,7 +1367,7 @@ export module FileSaver {
|
|
|
1446
1367
|
/**
|
|
1447
1368
|
* The compression type.
|
|
1448
1369
|
*/
|
|
1449
|
-
|
|
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
|
*/
|
|
@@ -1900,12 +1805,12 @@ export interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orient
|
|
|
1900
1805
|
* Adds a primary message.
|
|
1901
1806
|
* @param primary_msg a primary message.
|
|
1902
1807
|
*/
|
|
1903
|
-
add_primary_message(primary_msg: string
|
|
1808
|
+
add_primary_message(primary_msg: string): void
|
|
1904
1809
|
/**
|
|
1905
1810
|
* Adds a secondary message.
|
|
1906
1811
|
* @param secondary_msg a secondary message.
|
|
1907
1812
|
*/
|
|
1908
|
-
add_secondary_message(secondary_msg: string
|
|
1813
|
+
add_secondary_message(secondary_msg: string): void
|
|
1909
1814
|
|
|
1910
1815
|
// Conflicting methods
|
|
1911
1816
|
|
|
@@ -1920,7 +1825,7 @@ export interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orient
|
|
|
1920
1825
|
* @param child the child widget
|
|
1921
1826
|
* @param child_property the name of a child property installed on the class of `container`
|
|
1922
1827
|
*/
|
|
1923
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
1828
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
1924
1829
|
|
|
1925
1830
|
// Overloads of child_notify
|
|
1926
1831
|
|
|
@@ -1934,7 +1839,7 @@ export interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orient
|
|
|
1934
1839
|
* Also see gtk_container_child_notify().
|
|
1935
1840
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
1936
1841
|
*/
|
|
1937
|
-
child_notify(child_property: string
|
|
1842
|
+
child_notify(child_property: string): void
|
|
1938
1843
|
/**
|
|
1939
1844
|
* Emits a #GtkWidget::child-notify signal for the
|
|
1940
1845
|
* [child property][child-properties] `child_property`
|
|
@@ -1945,7 +1850,7 @@ export interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orient
|
|
|
1945
1850
|
* Also see gtk_container_child_notify().
|
|
1946
1851
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
1947
1852
|
*/
|
|
1948
|
-
child_notify(child_property: string
|
|
1853
|
+
child_notify(child_property: string): void
|
|
1949
1854
|
|
|
1950
1855
|
// Class property signals of Gtef-2.Gtef.InfoBar
|
|
1951
1856
|
|
|
@@ -2140,7 +2045,7 @@ export class InfoBar extends Gtk.InfoBar {
|
|
|
2140
2045
|
* @param secondary_msg the secondary message, or %NULL.
|
|
2141
2046
|
* @returns a new #GtefInfoBar.
|
|
2142
2047
|
*/
|
|
2143
|
-
static new_simple(msg_type: Gtk.MessageType, primary_msg: string
|
|
2048
|
+
static new_simple(msg_type: Gtk.MessageType, primary_msg: string, secondary_msg: string | null): InfoBar
|
|
2144
2049
|
_init(config?: InfoBar.ConstructorProperties): void
|
|
2145
2050
|
/**
|
|
2146
2051
|
* Utility function to create a #GtkLabel suitable for a #GtkInfoBar. The
|
|
@@ -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
|
*/
|
|
@@ -2295,7 +2192,7 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
|
|
|
2295
2192
|
* @param child the child widget
|
|
2296
2193
|
* @param child_property the name of a child property installed on the class of `container`
|
|
2297
2194
|
*/
|
|
2298
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
2195
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
2299
2196
|
|
|
2300
2197
|
// Overloads of child_notify
|
|
2301
2198
|
|
|
@@ -2309,7 +2206,7 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
|
|
|
2309
2206
|
* Also see gtk_container_child_notify().
|
|
2310
2207
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2311
2208
|
*/
|
|
2312
|
-
child_notify(child_property: string
|
|
2209
|
+
child_notify(child_property: string): void
|
|
2313
2210
|
/**
|
|
2314
2211
|
* Emits a #GtkWidget::child-notify signal for the
|
|
2315
2212
|
* [child property][child-properties] `child_property`
|
|
@@ -2320,7 +2217,7 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
|
|
|
2320
2217
|
* Also see gtk_container_child_notify().
|
|
2321
2218
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2322
2219
|
*/
|
|
2323
|
-
child_notify(child_property: string
|
|
2220
|
+
child_notify(child_property: string): void
|
|
2324
2221
|
|
|
2325
2222
|
// Class property signals of Gtef-2.Gtef.Tab
|
|
2326
2223
|
|
|
@@ -2607,7 +2504,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
2607
2504
|
* @param child the child widget
|
|
2608
2505
|
* @param child_property the name of a child property installed on the class of `container`
|
|
2609
2506
|
*/
|
|
2610
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
2507
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
2611
2508
|
|
|
2612
2509
|
// Overloads of child_notify
|
|
2613
2510
|
|
|
@@ -2621,7 +2518,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
2621
2518
|
* Also see gtk_container_child_notify().
|
|
2622
2519
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2623
2520
|
*/
|
|
2624
|
-
child_notify(child_property: string
|
|
2521
|
+
child_notify(child_property: string): void
|
|
2625
2522
|
/**
|
|
2626
2523
|
* Emits a #GtkWidget::child-notify signal for the
|
|
2627
2524
|
* [child property][child-properties] `child_property`
|
|
@@ -2632,7 +2529,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
|
|
|
2632
2529
|
* Also see gtk_container_child_notify().
|
|
2633
2530
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2634
2531
|
*/
|
|
2635
|
-
child_notify(child_property: string
|
|
2532
|
+
child_notify(child_property: string): void
|
|
2636
2533
|
|
|
2637
2534
|
// Class property signals of Gtef-2.Gtef.View
|
|
2638
2535
|
|
|
@@ -2943,7 +2840,7 @@ export interface ActionInfo {
|
|
|
2943
2840
|
* Sets the action name, for example `"win.save"`.
|
|
2944
2841
|
* @param action_name the action name.
|
|
2945
2842
|
*/
|
|
2946
|
-
set_action_name(action_name: string
|
|
2843
|
+
set_action_name(action_name: string): void
|
|
2947
2844
|
set_icon_name(icon_name: string | null): void
|
|
2948
2845
|
set_label(label: string | null): void
|
|
2949
2846
|
set_tooltip(tooltip: string | null): void
|
|
@@ -3010,28 +2907,28 @@ export interface ActionInfoEntry {
|
|
|
3010
2907
|
* the action name.
|
|
3011
2908
|
* @field
|
|
3012
2909
|
*/
|
|
3013
|
-
action_name: string
|
|
2910
|
+
action_name: string
|
|
3014
2911
|
/**
|
|
3015
2912
|
* the icon name, or %NULL.
|
|
3016
2913
|
* @field
|
|
3017
2914
|
*/
|
|
3018
|
-
icon_name: string
|
|
2915
|
+
icon_name: string
|
|
3019
2916
|
/**
|
|
3020
2917
|
* the label (i.e. a short description), or %NULL.
|
|
3021
2918
|
* @field
|
|
3022
2919
|
*/
|
|
3023
|
-
label: string
|
|
2920
|
+
label: string
|
|
3024
2921
|
/**
|
|
3025
2922
|
* the accelerator, in the format understood by gtk_accelerator_parse().
|
|
3026
2923
|
* Or %NULL.
|
|
3027
2924
|
* @field
|
|
3028
2925
|
*/
|
|
3029
|
-
accel: string
|
|
2926
|
+
accel: string
|
|
3030
2927
|
/**
|
|
3031
2928
|
* the tooltip (i.e. a long description), or %NULL.
|
|
3032
2929
|
* @field
|
|
3033
2930
|
*/
|
|
3034
|
-
tooltip: string
|
|
2931
|
+
tooltip: string
|
|
3035
2932
|
}
|
|
3036
2933
|
|
|
3037
2934
|
/**
|
|
@@ -3152,12 +3049,12 @@ export interface Encoding {
|
|
|
3152
3049
|
* Gets the character set of the #GtefEncoding, such as "UTF-8" or "ISO-8859-1".
|
|
3153
3050
|
* @returns the character set of the #GtefEncoding.
|
|
3154
3051
|
*/
|
|
3155
|
-
get_charset(): string
|
|
3052
|
+
get_charset(): string
|
|
3156
3053
|
/**
|
|
3157
3054
|
* Gets the name of the #GtefEncoding such as "Unicode" or "Western".
|
|
3158
3055
|
* @returns the name of the #GtefEncoding.
|
|
3159
3056
|
*/
|
|
3160
|
-
get_name(): string
|
|
3057
|
+
get_name(): string
|
|
3161
3058
|
is_utf8(): boolean
|
|
3162
3059
|
/**
|
|
3163
3060
|
* Returns the encoding name with the charset in parenthesis, for example
|
|
@@ -3182,7 +3079,7 @@ export class Encoding {
|
|
|
3182
3079
|
* @param charset a character set.
|
|
3183
3080
|
* @returns the new #GtefEncoding. Free with gtef_encoding_free().
|
|
3184
3081
|
*/
|
|
3185
|
-
constructor(charset: string
|
|
3082
|
+
constructor(charset: string)
|
|
3186
3083
|
/**
|
|
3187
3084
|
* Creates a new #GtefEncoding from a character set such as "UTF-8" or
|
|
3188
3085
|
* "ISO-8859-1".
|
|
@@ -3190,7 +3087,7 @@ export class Encoding {
|
|
|
3190
3087
|
* @param charset a character set.
|
|
3191
3088
|
* @returns the new #GtefEncoding. Free with gtef_encoding_free().
|
|
3192
3089
|
*/
|
|
3193
|
-
static new(charset: string
|
|
3090
|
+
static new(charset: string): Encoding
|
|
3194
3091
|
/**
|
|
3195
3092
|
* Creates a new #GtefEncoding from the current locale, as returned by
|
|
3196
3093
|
* g_get_charset().
|
package/gtef-2.d.ts
CHANGED
|
@@ -214,7 +214,7 @@ function menu_item_get_long_description(menu_item: Gtk.MenuItem): string | null
|
|
|
214
214
|
* @param item a #GtkMenuItem.
|
|
215
215
|
* @param icon_name an icon name.
|
|
216
216
|
*/
|
|
217
|
-
function menu_item_set_icon_name(item: Gtk.MenuItem, icon_name: string
|
|
217
|
+
function menu_item_set_icon_name(item: Gtk.MenuItem, icon_name: string): void
|
|
218
218
|
/**
|
|
219
219
|
* Sets the long description of `menu_item`. A possible use-case is to display it
|
|
220
220
|
* in a #GtkStatusbar, or as a tooltip.
|
|
@@ -232,7 +232,7 @@ function menu_item_set_long_description(menu_item: Gtk.MenuItem, long_descriptio
|
|
|
232
232
|
* directory. See g_get_user_data_dir().
|
|
233
233
|
* @param metadata_path the filename where the metadata is stored.
|
|
234
234
|
*/
|
|
235
|
-
function metadata_manager_init(metadata_path: string
|
|
235
|
+
function metadata_manager_init(metadata_path: string): void
|
|
236
236
|
/**
|
|
237
237
|
* This function saves synchronously metadata if they need to be saved, and
|
|
238
238
|
* frees the internal data of the metadata manager.
|
|
@@ -268,7 +268,7 @@ interface ActionInfoCentralStore {
|
|
|
268
268
|
|
|
269
269
|
// Owm methods of Gtef-2.Gtef.ActionInfoCentralStore
|
|
270
270
|
|
|
271
|
-
lookup(action_name: string
|
|
271
|
+
lookup(action_name: string): ActionInfo
|
|
272
272
|
|
|
273
273
|
// Class property signals of Gtef-2.Gtef.ActionInfoCentralStore
|
|
274
274
|
|
|
@@ -372,9 +372,9 @@ interface ActionInfoStore {
|
|
|
372
372
|
* @param action_name an action name.
|
|
373
373
|
* @returns a new #GtkMenuItem for @action_name.
|
|
374
374
|
*/
|
|
375
|
-
create_menu_item(action_name: string
|
|
375
|
+
create_menu_item(action_name: string): Gtk.Widget
|
|
376
376
|
get_application(): Gtk.Application | null
|
|
377
|
-
lookup(action_name: string
|
|
377
|
+
lookup(action_name: string): ActionInfo
|
|
378
378
|
|
|
379
379
|
// Class property signals of Gtef-2.Gtef.ActionInfoStore
|
|
380
380
|
|
|
@@ -512,15 +512,11 @@ module ApplicationWindow {
|
|
|
512
512
|
/**
|
|
513
513
|
* The #GtkApplicationWindow.
|
|
514
514
|
*/
|
|
515
|
-
|
|
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
|
*/
|
|
@@ -747,7 +719,7 @@ interface Buffer {
|
|
|
747
719
|
* gtk_source_style_scheme_manager_get_default().
|
|
748
720
|
* @param style_scheme_id the new value.
|
|
749
721
|
*/
|
|
750
|
-
set_style_scheme_id(style_scheme_id: string
|
|
722
|
+
set_style_scheme_id(style_scheme_id: string): void
|
|
751
723
|
|
|
752
724
|
// Own virtual methods of Gtef-2.Gtef.Buffer
|
|
753
725
|
|
|
@@ -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
|
*/
|
|
@@ -950,7 +905,7 @@ interface File {
|
|
|
950
905
|
* released and can be used by a later untitled file.
|
|
951
906
|
* @returns the @file short name.
|
|
952
907
|
*/
|
|
953
|
-
get_short_name(): string
|
|
908
|
+
get_short_name(): string
|
|
954
909
|
/**
|
|
955
910
|
* Returns whether the file has been deleted. If the
|
|
956
911
|
* #GtefFile:location is %NULL, returns %FALSE.
|
|
@@ -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
|
-
|
|
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
|
|
@@ -1295,7 +1216,7 @@ interface FileMetadata {
|
|
|
1295
1216
|
* @param key the name of the metadata.
|
|
1296
1217
|
* @returns the value of the metadata, or %NULL if the metadata doesn't exist. Free with g_free().
|
|
1297
1218
|
*/
|
|
1298
|
-
get(key: string
|
|
1219
|
+
get(key: string): string | null
|
|
1299
1220
|
get_file(): File
|
|
1300
1221
|
/**
|
|
1301
1222
|
* Loads synchronously the metadata from #GtefFile:location. The loaded
|
|
@@ -1404,7 +1325,7 @@ interface FileMetadata {
|
|
|
1404
1325
|
* @param key the name of the metadata.
|
|
1405
1326
|
* @param value the value of the metadata, or %NULL to unset.
|
|
1406
1327
|
*/
|
|
1407
|
-
set(key: string
|
|
1328
|
+
set(key: string, value: string | null): void
|
|
1408
1329
|
|
|
1409
1330
|
// Class property signals of Gtef-2.Gtef.FileMetadata
|
|
1410
1331
|
|
|
@@ -1448,7 +1369,7 @@ module FileSaver {
|
|
|
1448
1369
|
/**
|
|
1449
1370
|
* The compression type.
|
|
1450
1371
|
*/
|
|
1451
|
-
|
|
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
|
*/
|
|
@@ -1902,12 +1807,12 @@ interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
|
|
|
1902
1807
|
* Adds a primary message.
|
|
1903
1808
|
* @param primary_msg a primary message.
|
|
1904
1809
|
*/
|
|
1905
|
-
add_primary_message(primary_msg: string
|
|
1810
|
+
add_primary_message(primary_msg: string): void
|
|
1906
1811
|
/**
|
|
1907
1812
|
* Adds a secondary message.
|
|
1908
1813
|
* @param secondary_msg a secondary message.
|
|
1909
1814
|
*/
|
|
1910
|
-
add_secondary_message(secondary_msg: string
|
|
1815
|
+
add_secondary_message(secondary_msg: string): void
|
|
1911
1816
|
|
|
1912
1817
|
// Conflicting methods
|
|
1913
1818
|
|
|
@@ -1922,7 +1827,7 @@ interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
|
|
|
1922
1827
|
* @param child the child widget
|
|
1923
1828
|
* @param child_property the name of a child property installed on the class of `container`
|
|
1924
1829
|
*/
|
|
1925
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
1830
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
1926
1831
|
|
|
1927
1832
|
// Overloads of child_notify
|
|
1928
1833
|
|
|
@@ -1936,7 +1841,7 @@ interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
|
|
|
1936
1841
|
* Also see gtk_container_child_notify().
|
|
1937
1842
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
1938
1843
|
*/
|
|
1939
|
-
child_notify(child_property: string
|
|
1844
|
+
child_notify(child_property: string): void
|
|
1940
1845
|
/**
|
|
1941
1846
|
* Emits a #GtkWidget::child-notify signal for the
|
|
1942
1847
|
* [child property][child-properties] `child_property`
|
|
@@ -1947,7 +1852,7 @@ interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
|
|
|
1947
1852
|
* Also see gtk_container_child_notify().
|
|
1948
1853
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
1949
1854
|
*/
|
|
1950
|
-
child_notify(child_property: string
|
|
1855
|
+
child_notify(child_property: string): void
|
|
1951
1856
|
|
|
1952
1857
|
// Class property signals of Gtef-2.Gtef.InfoBar
|
|
1953
1858
|
|
|
@@ -2142,7 +2047,7 @@ class InfoBar extends Gtk.InfoBar {
|
|
|
2142
2047
|
* @param secondary_msg the secondary message, or %NULL.
|
|
2143
2048
|
* @returns a new #GtefInfoBar.
|
|
2144
2049
|
*/
|
|
2145
|
-
static new_simple(msg_type: Gtk.MessageType, primary_msg: string
|
|
2050
|
+
static new_simple(msg_type: Gtk.MessageType, primary_msg: string, secondary_msg: string | null): InfoBar
|
|
2146
2051
|
_init(config?: InfoBar.ConstructorProperties): void
|
|
2147
2052
|
/**
|
|
2148
2053
|
* Utility function to create a #GtkLabel suitable for a #GtkInfoBar. The
|
|
@@ -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
|
*/
|
|
@@ -2297,7 +2194,7 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
|
|
|
2297
2194
|
* @param child the child widget
|
|
2298
2195
|
* @param child_property the name of a child property installed on the class of `container`
|
|
2299
2196
|
*/
|
|
2300
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
2197
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
2301
2198
|
|
|
2302
2199
|
// Overloads of child_notify
|
|
2303
2200
|
|
|
@@ -2311,7 +2208,7 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
|
|
|
2311
2208
|
* Also see gtk_container_child_notify().
|
|
2312
2209
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2313
2210
|
*/
|
|
2314
|
-
child_notify(child_property: string
|
|
2211
|
+
child_notify(child_property: string): void
|
|
2315
2212
|
/**
|
|
2316
2213
|
* Emits a #GtkWidget::child-notify signal for the
|
|
2317
2214
|
* [child property][child-properties] `child_property`
|
|
@@ -2322,7 +2219,7 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
|
|
|
2322
2219
|
* Also see gtk_container_child_notify().
|
|
2323
2220
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2324
2221
|
*/
|
|
2325
|
-
child_notify(child_property: string
|
|
2222
|
+
child_notify(child_property: string): void
|
|
2326
2223
|
|
|
2327
2224
|
// Class property signals of Gtef-2.Gtef.Tab
|
|
2328
2225
|
|
|
@@ -2609,7 +2506,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
2609
2506
|
* @param child the child widget
|
|
2610
2507
|
* @param child_property the name of a child property installed on the class of `container`
|
|
2611
2508
|
*/
|
|
2612
|
-
child_notify(child: Gtk.Widget, child_property: string
|
|
2509
|
+
child_notify(child: Gtk.Widget, child_property: string): void
|
|
2613
2510
|
|
|
2614
2511
|
// Overloads of child_notify
|
|
2615
2512
|
|
|
@@ -2623,7 +2520,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
2623
2520
|
* Also see gtk_container_child_notify().
|
|
2624
2521
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2625
2522
|
*/
|
|
2626
|
-
child_notify(child_property: string
|
|
2523
|
+
child_notify(child_property: string): void
|
|
2627
2524
|
/**
|
|
2628
2525
|
* Emits a #GtkWidget::child-notify signal for the
|
|
2629
2526
|
* [child property][child-properties] `child_property`
|
|
@@ -2634,7 +2531,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
|
|
|
2634
2531
|
* Also see gtk_container_child_notify().
|
|
2635
2532
|
* @param child_property the name of a child property installed on the class of `widget’`s parent
|
|
2636
2533
|
*/
|
|
2637
|
-
child_notify(child_property: string
|
|
2534
|
+
child_notify(child_property: string): void
|
|
2638
2535
|
|
|
2639
2536
|
// Class property signals of Gtef-2.Gtef.View
|
|
2640
2537
|
|
|
@@ -2945,7 +2842,7 @@ interface ActionInfo {
|
|
|
2945
2842
|
* Sets the action name, for example `"win.save"`.
|
|
2946
2843
|
* @param action_name the action name.
|
|
2947
2844
|
*/
|
|
2948
|
-
set_action_name(action_name: string
|
|
2845
|
+
set_action_name(action_name: string): void
|
|
2949
2846
|
set_icon_name(icon_name: string | null): void
|
|
2950
2847
|
set_label(label: string | null): void
|
|
2951
2848
|
set_tooltip(tooltip: string | null): void
|
|
@@ -3012,28 +2909,28 @@ interface ActionInfoEntry {
|
|
|
3012
2909
|
* the action name.
|
|
3013
2910
|
* @field
|
|
3014
2911
|
*/
|
|
3015
|
-
action_name: string
|
|
2912
|
+
action_name: string
|
|
3016
2913
|
/**
|
|
3017
2914
|
* the icon name, or %NULL.
|
|
3018
2915
|
* @field
|
|
3019
2916
|
*/
|
|
3020
|
-
icon_name: string
|
|
2917
|
+
icon_name: string
|
|
3021
2918
|
/**
|
|
3022
2919
|
* the label (i.e. a short description), or %NULL.
|
|
3023
2920
|
* @field
|
|
3024
2921
|
*/
|
|
3025
|
-
label: string
|
|
2922
|
+
label: string
|
|
3026
2923
|
/**
|
|
3027
2924
|
* the accelerator, in the format understood by gtk_accelerator_parse().
|
|
3028
2925
|
* Or %NULL.
|
|
3029
2926
|
* @field
|
|
3030
2927
|
*/
|
|
3031
|
-
accel: string
|
|
2928
|
+
accel: string
|
|
3032
2929
|
/**
|
|
3033
2930
|
* the tooltip (i.e. a long description), or %NULL.
|
|
3034
2931
|
* @field
|
|
3035
2932
|
*/
|
|
3036
|
-
tooltip: string
|
|
2933
|
+
tooltip: string
|
|
3037
2934
|
}
|
|
3038
2935
|
|
|
3039
2936
|
/**
|
|
@@ -3154,12 +3051,12 @@ interface Encoding {
|
|
|
3154
3051
|
* Gets the character set of the #GtefEncoding, such as "UTF-8" or "ISO-8859-1".
|
|
3155
3052
|
* @returns the character set of the #GtefEncoding.
|
|
3156
3053
|
*/
|
|
3157
|
-
get_charset(): string
|
|
3054
|
+
get_charset(): string
|
|
3158
3055
|
/**
|
|
3159
3056
|
* Gets the name of the #GtefEncoding such as "Unicode" or "Western".
|
|
3160
3057
|
* @returns the name of the #GtefEncoding.
|
|
3161
3058
|
*/
|
|
3162
|
-
get_name(): string
|
|
3059
|
+
get_name(): string
|
|
3163
3060
|
is_utf8(): boolean
|
|
3164
3061
|
/**
|
|
3165
3062
|
* Returns the encoding name with the charset in parenthesis, for example
|
|
@@ -3184,7 +3081,7 @@ class Encoding {
|
|
|
3184
3081
|
* @param charset a character set.
|
|
3185
3082
|
* @returns the new #GtefEncoding. Free with gtef_encoding_free().
|
|
3186
3083
|
*/
|
|
3187
|
-
constructor(charset: string
|
|
3084
|
+
constructor(charset: string)
|
|
3188
3085
|
/**
|
|
3189
3086
|
* Creates a new #GtefEncoding from a character set such as "UTF-8" or
|
|
3190
3087
|
* "ISO-8859-1".
|
|
@@ -3192,7 +3089,7 @@ class Encoding {
|
|
|
3192
3089
|
* @param charset a character set.
|
|
3193
3090
|
* @returns the new #GtefEncoding. Free with gtef_encoding_free().
|
|
3194
3091
|
*/
|
|
3195
|
-
static new(charset: string
|
|
3092
|
+
static new(charset: string): Encoding
|
|
3196
3093
|
/**
|
|
3197
3094
|
* Creates a new #GtefEncoding from the current locale, as returned by
|
|
3198
3095
|
* g_get_charset().
|
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/gtef-2",
|
|
3
|
-
"version": "2.0.0-3.2.
|
|
3
|
+
"version": "2.0.0-3.2.8",
|
|
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":
|
|
10
|
-
|
|
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.
|
|
29
|
-
"@girs/cairo-1.0": "^1.0.0-3.2.
|
|
30
|
-
"@girs/freetype2-2.0": "^2.0.0-3.2.
|
|
31
|
-
"@girs/gdk-3.0": "^3.24.
|
|
32
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.
|
|
33
|
-
"@girs/gio-2.0": "^2.
|
|
34
|
-
"@girs/gjs": "^3.2.
|
|
35
|
-
"@girs/glib-2.0": "^2.
|
|
36
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
37
|
-
"@girs/gobject-2.0": "^2.
|
|
38
|
-
"@girs/gtk-3.0": "^3.24.
|
|
39
|
-
"@girs/gtksource-3.0": "^3.0.0-3.2.
|
|
40
|
-
"@girs/harfbuzz-0.0": "^8.
|
|
41
|
-
"@girs/pango-1.0": "^1.51.0-3.2.
|
|
42
|
-
"@girs/xlib-2.0": "^2.0.0-3.2.
|
|
34
|
+
"@girs/atk-1.0": "^2.45.1-3.2.8",
|
|
35
|
+
"@girs/cairo-1.0": "^1.0.0-3.2.8",
|
|
36
|
+
"@girs/freetype2-2.0": "^2.0.0-3.2.8",
|
|
37
|
+
"@girs/gdk-3.0": "^3.24.39-3.2.8",
|
|
38
|
+
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.8",
|
|
39
|
+
"@girs/gio-2.0": "^2.77.0-3.2.8",
|
|
40
|
+
"@girs/gjs": "^3.2.8",
|
|
41
|
+
"@girs/glib-2.0": "^2.77.0-3.2.8",
|
|
42
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.8",
|
|
43
|
+
"@girs/gobject-2.0": "^2.77.0-3.2.8",
|
|
44
|
+
"@girs/gtk-3.0": "^3.24.39-3.2.8",
|
|
45
|
+
"@girs/gtksource-3.0": "^3.0.0-3.2.8",
|
|
46
|
+
"@girs/harfbuzz-0.0": "^8.1.1-3.2.8",
|
|
47
|
+
"@girs/pango-1.0": "^1.51.0-3.2.8",
|
|
48
|
+
"@girs/xlib-2.0": "^2.0.0-3.2.8"
|
|
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/
|
|
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"
|