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

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.
Files changed (4) hide show
  1. package/README.md +1 -1
  2. package/gtef-2.d.cts +134 -31
  3. package/gtef-2.d.ts +134 -31
  4. package/package.json +16 -16
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.5.
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.
9
9
 
10
10
 
11
11
  ## Install
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 | null): void
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 | null): void
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 | null): ActionInfo
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 | null): Gtk.Widget
373
+ create_menu_item(action_name: string): Gtk.Widget
374
374
  get_application(): Gtk.Application | null
375
- lookup(action_name: string | null): ActionInfo
375
+ lookup(action_name: string): ActionInfo
376
376
 
377
377
  // Class property signals of Gtef-2.Gtef.ActionInfoStore
378
378
 
@@ -515,6 +515,10 @@ export module ApplicationWindow {
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
518
522
  }
519
523
 
520
524
  }
@@ -527,6 +531,10 @@ export interface ApplicationWindow {
527
531
  * The #GtkApplicationWindow.
528
532
  */
529
533
  readonly application_window: Gtk.ApplicationWindow
534
+ /**
535
+ * The #GtkApplicationWindow.
536
+ */
537
+ readonly applicationWindow: Gtk.ApplicationWindow
530
538
  /**
531
539
  * The #GtkStatusbar. %NULL by default.
532
540
  */
@@ -649,6 +657,14 @@ export module Buffer {
649
657
  * #GtefBuffer:gtef-style-scheme-id contains the empty string.
650
658
  */
651
659
  gtef_style_scheme_id?: string | null
660
+ /**
661
+ * The #GtkSourceBuffer:style-scheme ID, as a string. This property is
662
+ * useful for binding it to a #GSettings key.
663
+ *
664
+ * When the #GtkSourceBuffer:style-scheme is %NULL,
665
+ * #GtefBuffer:gtef-style-scheme-id contains the empty string.
666
+ */
667
+ gtefStyleSchemeId?: string | null
652
668
  }
653
669
 
654
670
  }
@@ -665,10 +681,22 @@ export interface Buffer {
665
681
  * #GtefBuffer:gtef-style-scheme-id contains the empty string.
666
682
  */
667
683
  gtef_style_scheme_id: string | null
684
+ /**
685
+ * The #GtkSourceBuffer:style-scheme ID, as a string. This property is
686
+ * useful for binding it to a #GSettings key.
687
+ *
688
+ * When the #GtkSourceBuffer:style-scheme is %NULL,
689
+ * #GtefBuffer:gtef-style-scheme-id contains the empty string.
690
+ */
691
+ gtefStyleSchemeId: string | null
668
692
  /**
669
693
  * The buffer title. See gtef_buffer_get_title().
670
694
  */
671
695
  readonly gtef_title: string | null
696
+ /**
697
+ * The buffer title. See gtef_buffer_get_title().
698
+ */
699
+ readonly gtefTitle: string | null
672
700
 
673
701
  // Conflicting properties
674
702
 
@@ -717,7 +745,7 @@ export interface Buffer {
717
745
  * gtk_source_style_scheme_manager_get_default().
718
746
  * @param style_scheme_id the new value.
719
747
  */
720
- set_style_scheme_id(style_scheme_id: string | null): void
748
+ set_style_scheme_id(style_scheme_id: string): void
721
749
 
722
750
  // Own virtual methods of Gtef-2.Gtef.Buffer
723
751
 
@@ -844,6 +872,10 @@ export interface File {
844
872
  * The compression type.
845
873
  */
846
874
  readonly compression_type: CompressionType
875
+ /**
876
+ * The compression type.
877
+ */
878
+ readonly compressionType: CompressionType
847
879
  /**
848
880
  * The character encoding, initially %NULL. After a successful file
849
881
  * loading or saving operation, the encoding is non-%NULL.
@@ -857,15 +889,28 @@ export interface File {
857
889
  * The line ending type.
858
890
  */
859
891
  readonly newline_type: NewlineType
892
+ /**
893
+ * The line ending type.
894
+ */
895
+ readonly newlineType: NewlineType
860
896
  /**
861
897
  * Whether the file is read-only or not. The value of this property is
862
898
  * not updated automatically (there is no file monitors).
863
899
  */
864
900
  readonly read_only: boolean
901
+ /**
902
+ * Whether the file is read-only or not. The value of this property is
903
+ * not updated automatically (there is no file monitors).
904
+ */
905
+ readonly readOnly: boolean
865
906
  /**
866
907
  * The file short name. See gtef_file_get_short_name().
867
908
  */
868
909
  readonly short_name: string | null
910
+ /**
911
+ * The file short name. See gtef_file_get_short_name().
912
+ */
913
+ readonly shortName: string | null
869
914
 
870
915
  // Own fields of Gtef-2.Gtef.File
871
916
 
@@ -903,7 +948,7 @@ export interface File {
903
948
  * released and can be used by a later untitled file.
904
949
  * @returns the @file short name.
905
950
  */
906
- get_short_name(): string | null
951
+ get_short_name(): string
907
952
  /**
908
953
  * Returns whether the file has been deleted. If the
909
954
  * #GtefFile:location is %NULL, returns %FALSE.
@@ -1024,6 +1069,23 @@ export module FileLoader {
1024
1069
  * Set to -1 for unlimited size.
1025
1070
  */
1026
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
+ /**
1082
+ * The maximum content size, in bytes. Keep in mind that all the
1083
+ * content is loaded in memory, and when loaded into a #GtkTextBuffer
1084
+ * it takes more memory than just the content size.
1085
+ *
1086
+ * Set to -1 for unlimited size.
1087
+ */
1088
+ maxSize?: number | null
1027
1089
  }
1028
1090
 
1029
1091
  }
@@ -1046,6 +1108,15 @@ export interface FileLoader {
1046
1108
  * connection. For local files, the chunk size can be larger.
1047
1109
  */
1048
1110
  chunk_size: number
1111
+ /**
1112
+ * The chunk size, in bytes. The content is loaded chunk by chunk. It
1113
+ * permits to avoid allocating a too big contiguous memory area, as well
1114
+ * as reporting progress information after each chunk read.
1115
+ *
1116
+ * A small chunk size is better when loading a remote file with a slow
1117
+ * connection. For local files, the chunk size can be larger.
1118
+ */
1119
+ chunkSize: number
1049
1120
  /**
1050
1121
  * The #GtefFile. The #GtefFileLoader object has a weak
1051
1122
  * reference to the file.
@@ -1064,6 +1135,14 @@ export interface FileLoader {
1064
1135
  * Set to -1 for unlimited size.
1065
1136
  */
1066
1137
  max_size: number
1138
+ /**
1139
+ * The maximum content size, in bytes. Keep in mind that all the
1140
+ * content is loaded in memory, and when loaded into a #GtkTextBuffer
1141
+ * it takes more memory than just the content size.
1142
+ *
1143
+ * Set to -1 for unlimited size.
1144
+ */
1145
+ maxSize: number
1067
1146
 
1068
1147
  // Own fields of Gtef-2.Gtef.FileLoader
1069
1148
 
@@ -1214,7 +1293,7 @@ export interface FileMetadata {
1214
1293
  * @param key the name of the metadata.
1215
1294
  * @returns the value of the metadata, or %NULL if the metadata doesn't exist. Free with g_free().
1216
1295
  */
1217
- get(key: string | null): string | null
1296
+ get(key: string): string | null
1218
1297
  get_file(): File
1219
1298
  /**
1220
1299
  * Loads synchronously the metadata from #GtefFile:location. The loaded
@@ -1323,7 +1402,7 @@ export interface FileMetadata {
1323
1402
  * @param key the name of the metadata.
1324
1403
  * @param value the value of the metadata, or %NULL to unset.
1325
1404
  */
1326
- set(key: string | null, value: string | null): void
1405
+ set(key: string, value: string | null): void
1327
1406
 
1328
1407
  // Class property signals of Gtef-2.Gtef.FileMetadata
1329
1408
 
@@ -1390,6 +1469,14 @@ export module FileSaver {
1390
1469
  * The newline type.
1391
1470
  */
1392
1471
  newline_type?: GtkSource.NewlineType | null
1472
+ /**
1473
+ * The compression type.
1474
+ */
1475
+ compressionType?: GtkSource.CompressionType | null
1476
+ /**
1477
+ * The newline type.
1478
+ */
1479
+ newlineType?: GtkSource.NewlineType | null
1393
1480
  }
1394
1481
 
1395
1482
  }
@@ -1407,6 +1494,10 @@ export interface FileSaver {
1407
1494
  * The compression type.
1408
1495
  */
1409
1496
  compression_type: GtkSource.CompressionType
1497
+ /**
1498
+ * The compression type.
1499
+ */
1500
+ compressionType: GtkSource.CompressionType
1410
1501
  /**
1411
1502
  * The file's encoding.
1412
1503
  */
@@ -1429,6 +1520,10 @@ export interface FileSaver {
1429
1520
  * The newline type.
1430
1521
  */
1431
1522
  newline_type: GtkSource.NewlineType
1523
+ /**
1524
+ * The newline type.
1525
+ */
1526
+ newlineType: GtkSource.NewlineType
1432
1527
 
1433
1528
  // Own fields of Gtef-2.Gtef.FileSaver
1434
1529
 
@@ -1805,12 +1900,12 @@ export interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orient
1805
1900
  * Adds a primary message.
1806
1901
  * @param primary_msg a primary message.
1807
1902
  */
1808
- add_primary_message(primary_msg: string | null): void
1903
+ add_primary_message(primary_msg: string): void
1809
1904
  /**
1810
1905
  * Adds a secondary message.
1811
1906
  * @param secondary_msg a secondary message.
1812
1907
  */
1813
- add_secondary_message(secondary_msg: string | null): void
1908
+ add_secondary_message(secondary_msg: string): void
1814
1909
 
1815
1910
  // Conflicting methods
1816
1911
 
@@ -1825,7 +1920,7 @@ export interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orient
1825
1920
  * @param child the child widget
1826
1921
  * @param child_property the name of a child property installed on the class of `container`
1827
1922
  */
1828
- child_notify(child: Gtk.Widget, child_property: string | null): void
1923
+ child_notify(child: Gtk.Widget, child_property: string): void
1829
1924
 
1830
1925
  // Overloads of child_notify
1831
1926
 
@@ -1839,7 +1934,7 @@ export interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orient
1839
1934
  * Also see gtk_container_child_notify().
1840
1935
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1841
1936
  */
1842
- child_notify(child_property: string | null): void
1937
+ child_notify(child_property: string): void
1843
1938
  /**
1844
1939
  * Emits a #GtkWidget::child-notify signal for the
1845
1940
  * [child property][child-properties] `child_property`
@@ -1850,7 +1945,7 @@ export interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orient
1850
1945
  * Also see gtk_container_child_notify().
1851
1946
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1852
1947
  */
1853
- child_notify(child_property: string | null): void
1948
+ child_notify(child_property: string): void
1854
1949
 
1855
1950
  // Class property signals of Gtef-2.Gtef.InfoBar
1856
1951
 
@@ -2045,7 +2140,7 @@ export class InfoBar extends Gtk.InfoBar {
2045
2140
  * @param secondary_msg the secondary message, or %NULL.
2046
2141
  * @returns a new #GtefInfoBar.
2047
2142
  */
2048
- static new_simple(msg_type: Gtk.MessageType, primary_msg: string | null, secondary_msg: string | null): InfoBar
2143
+ static new_simple(msg_type: Gtk.MessageType, primary_msg: string, secondary_msg: string | null): InfoBar
2049
2144
  _init(config?: InfoBar.ConstructorProperties): void
2050
2145
  /**
2051
2146
  * Utility function to create a #GtkLabel suitable for a #GtkInfoBar. The
@@ -2085,6 +2180,10 @@ export module MenuShell {
2085
2180
  * The #GtkMenuShell.
2086
2181
  */
2087
2182
  menu_shell?: Gtk.MenuShell | null
2183
+ /**
2184
+ * The #GtkMenuShell.
2185
+ */
2186
+ menuShell?: Gtk.MenuShell | null
2088
2187
  }
2089
2188
 
2090
2189
  }
@@ -2097,6 +2196,10 @@ export interface MenuShell {
2097
2196
  * The #GtkMenuShell.
2098
2197
  */
2099
2198
  readonly menu_shell: Gtk.MenuShell
2199
+ /**
2200
+ * The #GtkMenuShell.
2201
+ */
2202
+ readonly menuShell: Gtk.MenuShell
2100
2203
 
2101
2204
  // Own fields of Gtef-2.Gtef.MenuShell
2102
2205
 
@@ -2192,7 +2295,7 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
2192
2295
  * @param child the child widget
2193
2296
  * @param child_property the name of a child property installed on the class of `container`
2194
2297
  */
2195
- child_notify(child: Gtk.Widget, child_property: string | null): void
2298
+ child_notify(child: Gtk.Widget, child_property: string): void
2196
2299
 
2197
2300
  // Overloads of child_notify
2198
2301
 
@@ -2206,7 +2309,7 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
2206
2309
  * Also see gtk_container_child_notify().
2207
2310
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2208
2311
  */
2209
- child_notify(child_property: string | null): void
2312
+ child_notify(child_property: string): void
2210
2313
  /**
2211
2314
  * Emits a #GtkWidget::child-notify signal for the
2212
2315
  * [child property][child-properties] `child_property`
@@ -2217,7 +2320,7 @@ export interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable
2217
2320
  * Also see gtk_container_child_notify().
2218
2321
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2219
2322
  */
2220
- child_notify(child_property: string | null): void
2323
+ child_notify(child_property: string): void
2221
2324
 
2222
2325
  // Class property signals of Gtef-2.Gtef.Tab
2223
2326
 
@@ -2504,7 +2607,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
2504
2607
  * @param child the child widget
2505
2608
  * @param child_property the name of a child property installed on the class of `container`
2506
2609
  */
2507
- child_notify(child: Gtk.Widget, child_property: string | null): void
2610
+ child_notify(child: Gtk.Widget, child_property: string): void
2508
2611
 
2509
2612
  // Overloads of child_notify
2510
2613
 
@@ -2518,7 +2621,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
2518
2621
  * Also see gtk_container_child_notify().
2519
2622
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2520
2623
  */
2521
- child_notify(child_property: string | null): void
2624
+ child_notify(child_property: string): void
2522
2625
  /**
2523
2626
  * Emits a #GtkWidget::child-notify signal for the
2524
2627
  * [child property][child-properties] `child_property`
@@ -2529,7 +2632,7 @@ export interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollabl
2529
2632
  * Also see gtk_container_child_notify().
2530
2633
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2531
2634
  */
2532
- child_notify(child_property: string | null): void
2635
+ child_notify(child_property: string): void
2533
2636
 
2534
2637
  // Class property signals of Gtef-2.Gtef.View
2535
2638
 
@@ -2840,7 +2943,7 @@ export interface ActionInfo {
2840
2943
  * Sets the action name, for example `"win.save"`.
2841
2944
  * @param action_name the action name.
2842
2945
  */
2843
- set_action_name(action_name: string | null): void
2946
+ set_action_name(action_name: string): void
2844
2947
  set_icon_name(icon_name: string | null): void
2845
2948
  set_label(label: string | null): void
2846
2949
  set_tooltip(tooltip: string | null): void
@@ -2907,28 +3010,28 @@ export interface ActionInfoEntry {
2907
3010
  * the action name.
2908
3011
  * @field
2909
3012
  */
2910
- action_name: string | null
3013
+ action_name: string
2911
3014
  /**
2912
3015
  * the icon name, or %NULL.
2913
3016
  * @field
2914
3017
  */
2915
- icon_name: string | null
3018
+ icon_name: string
2916
3019
  /**
2917
3020
  * the label (i.e. a short description), or %NULL.
2918
3021
  * @field
2919
3022
  */
2920
- label: string | null
3023
+ label: string
2921
3024
  /**
2922
3025
  * the accelerator, in the format understood by gtk_accelerator_parse().
2923
3026
  * Or %NULL.
2924
3027
  * @field
2925
3028
  */
2926
- accel: string | null
3029
+ accel: string
2927
3030
  /**
2928
3031
  * the tooltip (i.e. a long description), or %NULL.
2929
3032
  * @field
2930
3033
  */
2931
- tooltip: string | null
3034
+ tooltip: string
2932
3035
  }
2933
3036
 
2934
3037
  /**
@@ -3049,12 +3152,12 @@ export interface Encoding {
3049
3152
  * Gets the character set of the #GtefEncoding, such as "UTF-8" or "ISO-8859-1".
3050
3153
  * @returns the character set of the #GtefEncoding.
3051
3154
  */
3052
- get_charset(): string | null
3155
+ get_charset(): string
3053
3156
  /**
3054
3157
  * Gets the name of the #GtefEncoding such as "Unicode" or "Western".
3055
3158
  * @returns the name of the #GtefEncoding.
3056
3159
  */
3057
- get_name(): string | null
3160
+ get_name(): string
3058
3161
  is_utf8(): boolean
3059
3162
  /**
3060
3163
  * Returns the encoding name with the charset in parenthesis, for example
@@ -3079,7 +3182,7 @@ export class Encoding {
3079
3182
  * @param charset a character set.
3080
3183
  * @returns the new #GtefEncoding. Free with gtef_encoding_free().
3081
3184
  */
3082
- constructor(charset: string | null)
3185
+ constructor(charset: string)
3083
3186
  /**
3084
3187
  * Creates a new #GtefEncoding from a character set such as "UTF-8" or
3085
3188
  * "ISO-8859-1".
@@ -3087,7 +3190,7 @@ export class Encoding {
3087
3190
  * @param charset a character set.
3088
3191
  * @returns the new #GtefEncoding. Free with gtef_encoding_free().
3089
3192
  */
3090
- static new(charset: string | null): Encoding
3193
+ static new(charset: string): Encoding
3091
3194
  /**
3092
3195
  * Creates a new #GtefEncoding from the current locale, as returned by
3093
3196
  * 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 | null): void
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 | null): void
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 | null): ActionInfo
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 | null): Gtk.Widget
375
+ create_menu_item(action_name: string): Gtk.Widget
376
376
  get_application(): Gtk.Application | null
377
- lookup(action_name: string | null): ActionInfo
377
+ lookup(action_name: string): ActionInfo
378
378
 
379
379
  // Class property signals of Gtef-2.Gtef.ActionInfoStore
380
380
 
@@ -517,6 +517,10 @@ module ApplicationWindow {
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
520
524
  }
521
525
 
522
526
  }
@@ -529,6 +533,10 @@ interface ApplicationWindow {
529
533
  * The #GtkApplicationWindow.
530
534
  */
531
535
  readonly application_window: Gtk.ApplicationWindow
536
+ /**
537
+ * The #GtkApplicationWindow.
538
+ */
539
+ readonly applicationWindow: Gtk.ApplicationWindow
532
540
  /**
533
541
  * The #GtkStatusbar. %NULL by default.
534
542
  */
@@ -651,6 +659,14 @@ module Buffer {
651
659
  * #GtefBuffer:gtef-style-scheme-id contains the empty string.
652
660
  */
653
661
  gtef_style_scheme_id?: string | null
662
+ /**
663
+ * The #GtkSourceBuffer:style-scheme ID, as a string. This property is
664
+ * useful for binding it to a #GSettings key.
665
+ *
666
+ * When the #GtkSourceBuffer:style-scheme is %NULL,
667
+ * #GtefBuffer:gtef-style-scheme-id contains the empty string.
668
+ */
669
+ gtefStyleSchemeId?: string | null
654
670
  }
655
671
 
656
672
  }
@@ -667,10 +683,22 @@ interface Buffer {
667
683
  * #GtefBuffer:gtef-style-scheme-id contains the empty string.
668
684
  */
669
685
  gtef_style_scheme_id: string | null
686
+ /**
687
+ * The #GtkSourceBuffer:style-scheme ID, as a string. This property is
688
+ * useful for binding it to a #GSettings key.
689
+ *
690
+ * When the #GtkSourceBuffer:style-scheme is %NULL,
691
+ * #GtefBuffer:gtef-style-scheme-id contains the empty string.
692
+ */
693
+ gtefStyleSchemeId: string | null
670
694
  /**
671
695
  * The buffer title. See gtef_buffer_get_title().
672
696
  */
673
697
  readonly gtef_title: string | null
698
+ /**
699
+ * The buffer title. See gtef_buffer_get_title().
700
+ */
701
+ readonly gtefTitle: string | null
674
702
 
675
703
  // Conflicting properties
676
704
 
@@ -719,7 +747,7 @@ interface Buffer {
719
747
  * gtk_source_style_scheme_manager_get_default().
720
748
  * @param style_scheme_id the new value.
721
749
  */
722
- set_style_scheme_id(style_scheme_id: string | null): void
750
+ set_style_scheme_id(style_scheme_id: string): void
723
751
 
724
752
  // Own virtual methods of Gtef-2.Gtef.Buffer
725
753
 
@@ -846,6 +874,10 @@ interface File {
846
874
  * The compression type.
847
875
  */
848
876
  readonly compression_type: CompressionType
877
+ /**
878
+ * The compression type.
879
+ */
880
+ readonly compressionType: CompressionType
849
881
  /**
850
882
  * The character encoding, initially %NULL. After a successful file
851
883
  * loading or saving operation, the encoding is non-%NULL.
@@ -859,15 +891,28 @@ interface File {
859
891
  * The line ending type.
860
892
  */
861
893
  readonly newline_type: NewlineType
894
+ /**
895
+ * The line ending type.
896
+ */
897
+ readonly newlineType: NewlineType
862
898
  /**
863
899
  * Whether the file is read-only or not. The value of this property is
864
900
  * not updated automatically (there is no file monitors).
865
901
  */
866
902
  readonly read_only: boolean
903
+ /**
904
+ * Whether the file is read-only or not. The value of this property is
905
+ * not updated automatically (there is no file monitors).
906
+ */
907
+ readonly readOnly: boolean
867
908
  /**
868
909
  * The file short name. See gtef_file_get_short_name().
869
910
  */
870
911
  readonly short_name: string | null
912
+ /**
913
+ * The file short name. See gtef_file_get_short_name().
914
+ */
915
+ readonly shortName: string | null
871
916
 
872
917
  // Own fields of Gtef-2.Gtef.File
873
918
 
@@ -905,7 +950,7 @@ interface File {
905
950
  * released and can be used by a later untitled file.
906
951
  * @returns the @file short name.
907
952
  */
908
- get_short_name(): string | null
953
+ get_short_name(): string
909
954
  /**
910
955
  * Returns whether the file has been deleted. If the
911
956
  * #GtefFile:location is %NULL, returns %FALSE.
@@ -1026,6 +1071,23 @@ module FileLoader {
1026
1071
  * Set to -1 for unlimited size.
1027
1072
  */
1028
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
+ /**
1084
+ * The maximum content size, in bytes. Keep in mind that all the
1085
+ * content is loaded in memory, and when loaded into a #GtkTextBuffer
1086
+ * it takes more memory than just the content size.
1087
+ *
1088
+ * Set to -1 for unlimited size.
1089
+ */
1090
+ maxSize?: number | null
1029
1091
  }
1030
1092
 
1031
1093
  }
@@ -1048,6 +1110,15 @@ interface FileLoader {
1048
1110
  * connection. For local files, the chunk size can be larger.
1049
1111
  */
1050
1112
  chunk_size: number
1113
+ /**
1114
+ * The chunk size, in bytes. The content is loaded chunk by chunk. It
1115
+ * permits to avoid allocating a too big contiguous memory area, as well
1116
+ * as reporting progress information after each chunk read.
1117
+ *
1118
+ * A small chunk size is better when loading a remote file with a slow
1119
+ * connection. For local files, the chunk size can be larger.
1120
+ */
1121
+ chunkSize: number
1051
1122
  /**
1052
1123
  * The #GtefFile. The #GtefFileLoader object has a weak
1053
1124
  * reference to the file.
@@ -1066,6 +1137,14 @@ interface FileLoader {
1066
1137
  * Set to -1 for unlimited size.
1067
1138
  */
1068
1139
  max_size: number
1140
+ /**
1141
+ * The maximum content size, in bytes. Keep in mind that all the
1142
+ * content is loaded in memory, and when loaded into a #GtkTextBuffer
1143
+ * it takes more memory than just the content size.
1144
+ *
1145
+ * Set to -1 for unlimited size.
1146
+ */
1147
+ maxSize: number
1069
1148
 
1070
1149
  // Own fields of Gtef-2.Gtef.FileLoader
1071
1150
 
@@ -1216,7 +1295,7 @@ interface FileMetadata {
1216
1295
  * @param key the name of the metadata.
1217
1296
  * @returns the value of the metadata, or %NULL if the metadata doesn't exist. Free with g_free().
1218
1297
  */
1219
- get(key: string | null): string | null
1298
+ get(key: string): string | null
1220
1299
  get_file(): File
1221
1300
  /**
1222
1301
  * Loads synchronously the metadata from #GtefFile:location. The loaded
@@ -1325,7 +1404,7 @@ interface FileMetadata {
1325
1404
  * @param key the name of the metadata.
1326
1405
  * @param value the value of the metadata, or %NULL to unset.
1327
1406
  */
1328
- set(key: string | null, value: string | null): void
1407
+ set(key: string, value: string | null): void
1329
1408
 
1330
1409
  // Class property signals of Gtef-2.Gtef.FileMetadata
1331
1410
 
@@ -1392,6 +1471,14 @@ module FileSaver {
1392
1471
  * The newline type.
1393
1472
  */
1394
1473
  newline_type?: GtkSource.NewlineType | null
1474
+ /**
1475
+ * The compression type.
1476
+ */
1477
+ compressionType?: GtkSource.CompressionType | null
1478
+ /**
1479
+ * The newline type.
1480
+ */
1481
+ newlineType?: GtkSource.NewlineType | null
1395
1482
  }
1396
1483
 
1397
1484
  }
@@ -1409,6 +1496,10 @@ interface FileSaver {
1409
1496
  * The compression type.
1410
1497
  */
1411
1498
  compression_type: GtkSource.CompressionType
1499
+ /**
1500
+ * The compression type.
1501
+ */
1502
+ compressionType: GtkSource.CompressionType
1412
1503
  /**
1413
1504
  * The file's encoding.
1414
1505
  */
@@ -1431,6 +1522,10 @@ interface FileSaver {
1431
1522
  * The newline type.
1432
1523
  */
1433
1524
  newline_type: GtkSource.NewlineType
1525
+ /**
1526
+ * The newline type.
1527
+ */
1528
+ newlineType: GtkSource.NewlineType
1434
1529
 
1435
1530
  // Own fields of Gtef-2.Gtef.FileSaver
1436
1531
 
@@ -1807,12 +1902,12 @@ interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
1807
1902
  * Adds a primary message.
1808
1903
  * @param primary_msg a primary message.
1809
1904
  */
1810
- add_primary_message(primary_msg: string | null): void
1905
+ add_primary_message(primary_msg: string): void
1811
1906
  /**
1812
1907
  * Adds a secondary message.
1813
1908
  * @param secondary_msg a secondary message.
1814
1909
  */
1815
- add_secondary_message(secondary_msg: string | null): void
1910
+ add_secondary_message(secondary_msg: string): void
1816
1911
 
1817
1912
  // Conflicting methods
1818
1913
 
@@ -1827,7 +1922,7 @@ interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
1827
1922
  * @param child the child widget
1828
1923
  * @param child_property the name of a child property installed on the class of `container`
1829
1924
  */
1830
- child_notify(child: Gtk.Widget, child_property: string | null): void
1925
+ child_notify(child: Gtk.Widget, child_property: string): void
1831
1926
 
1832
1927
  // Overloads of child_notify
1833
1928
 
@@ -1841,7 +1936,7 @@ interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
1841
1936
  * Also see gtk_container_child_notify().
1842
1937
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1843
1938
  */
1844
- child_notify(child_property: string | null): void
1939
+ child_notify(child_property: string): void
1845
1940
  /**
1846
1941
  * Emits a #GtkWidget::child-notify signal for the
1847
1942
  * [child property][child-properties] `child_property`
@@ -1852,7 +1947,7 @@ interface InfoBar extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
1852
1947
  * Also see gtk_container_child_notify().
1853
1948
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1854
1949
  */
1855
- child_notify(child_property: string | null): void
1950
+ child_notify(child_property: string): void
1856
1951
 
1857
1952
  // Class property signals of Gtef-2.Gtef.InfoBar
1858
1953
 
@@ -2047,7 +2142,7 @@ class InfoBar extends Gtk.InfoBar {
2047
2142
  * @param secondary_msg the secondary message, or %NULL.
2048
2143
  * @returns a new #GtefInfoBar.
2049
2144
  */
2050
- static new_simple(msg_type: Gtk.MessageType, primary_msg: string | null, secondary_msg: string | null): InfoBar
2145
+ static new_simple(msg_type: Gtk.MessageType, primary_msg: string, secondary_msg: string | null): InfoBar
2051
2146
  _init(config?: InfoBar.ConstructorProperties): void
2052
2147
  /**
2053
2148
  * Utility function to create a #GtkLabel suitable for a #GtkInfoBar. The
@@ -2087,6 +2182,10 @@ module MenuShell {
2087
2182
  * The #GtkMenuShell.
2088
2183
  */
2089
2184
  menu_shell?: Gtk.MenuShell | null
2185
+ /**
2186
+ * The #GtkMenuShell.
2187
+ */
2188
+ menuShell?: Gtk.MenuShell | null
2090
2189
  }
2091
2190
 
2092
2191
  }
@@ -2099,6 +2198,10 @@ interface MenuShell {
2099
2198
  * The #GtkMenuShell.
2100
2199
  */
2101
2200
  readonly menu_shell: Gtk.MenuShell
2201
+ /**
2202
+ * The #GtkMenuShell.
2203
+ */
2204
+ readonly menuShell: Gtk.MenuShell
2102
2205
 
2103
2206
  // Own fields of Gtef-2.Gtef.MenuShell
2104
2207
 
@@ -2194,7 +2297,7 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2194
2297
  * @param child the child widget
2195
2298
  * @param child_property the name of a child property installed on the class of `container`
2196
2299
  */
2197
- child_notify(child: Gtk.Widget, child_property: string | null): void
2300
+ child_notify(child: Gtk.Widget, child_property: string): void
2198
2301
 
2199
2302
  // Overloads of child_notify
2200
2303
 
@@ -2208,7 +2311,7 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2208
2311
  * Also see gtk_container_child_notify().
2209
2312
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2210
2313
  */
2211
- child_notify(child_property: string | null): void
2314
+ child_notify(child_property: string): void
2212
2315
  /**
2213
2316
  * Emits a #GtkWidget::child-notify signal for the
2214
2317
  * [child property][child-properties] `child_property`
@@ -2219,7 +2322,7 @@ interface Tab extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientable {
2219
2322
  * Also see gtk_container_child_notify().
2220
2323
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2221
2324
  */
2222
- child_notify(child_property: string | null): void
2325
+ child_notify(child_property: string): void
2223
2326
 
2224
2327
  // Class property signals of Gtef-2.Gtef.Tab
2225
2328
 
@@ -2506,7 +2609,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
2506
2609
  * @param child the child widget
2507
2610
  * @param child_property the name of a child property installed on the class of `container`
2508
2611
  */
2509
- child_notify(child: Gtk.Widget, child_property: string | null): void
2612
+ child_notify(child: Gtk.Widget, child_property: string): void
2510
2613
 
2511
2614
  // Overloads of child_notify
2512
2615
 
@@ -2520,7 +2623,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
2520
2623
  * Also see gtk_container_child_notify().
2521
2624
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2522
2625
  */
2523
- child_notify(child_property: string | null): void
2626
+ child_notify(child_property: string): void
2524
2627
  /**
2525
2628
  * Emits a #GtkWidget::child-notify signal for the
2526
2629
  * [child property][child-properties] `child_property`
@@ -2531,7 +2634,7 @@ interface View extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Scrollable {
2531
2634
  * Also see gtk_container_child_notify().
2532
2635
  * @param child_property the name of a child property installed on the class of `widget’`s parent
2533
2636
  */
2534
- child_notify(child_property: string | null): void
2637
+ child_notify(child_property: string): void
2535
2638
 
2536
2639
  // Class property signals of Gtef-2.Gtef.View
2537
2640
 
@@ -2842,7 +2945,7 @@ interface ActionInfo {
2842
2945
  * Sets the action name, for example `"win.save"`.
2843
2946
  * @param action_name the action name.
2844
2947
  */
2845
- set_action_name(action_name: string | null): void
2948
+ set_action_name(action_name: string): void
2846
2949
  set_icon_name(icon_name: string | null): void
2847
2950
  set_label(label: string | null): void
2848
2951
  set_tooltip(tooltip: string | null): void
@@ -2909,28 +3012,28 @@ interface ActionInfoEntry {
2909
3012
  * the action name.
2910
3013
  * @field
2911
3014
  */
2912
- action_name: string | null
3015
+ action_name: string
2913
3016
  /**
2914
3017
  * the icon name, or %NULL.
2915
3018
  * @field
2916
3019
  */
2917
- icon_name: string | null
3020
+ icon_name: string
2918
3021
  /**
2919
3022
  * the label (i.e. a short description), or %NULL.
2920
3023
  * @field
2921
3024
  */
2922
- label: string | null
3025
+ label: string
2923
3026
  /**
2924
3027
  * the accelerator, in the format understood by gtk_accelerator_parse().
2925
3028
  * Or %NULL.
2926
3029
  * @field
2927
3030
  */
2928
- accel: string | null
3031
+ accel: string
2929
3032
  /**
2930
3033
  * the tooltip (i.e. a long description), or %NULL.
2931
3034
  * @field
2932
3035
  */
2933
- tooltip: string | null
3036
+ tooltip: string
2934
3037
  }
2935
3038
 
2936
3039
  /**
@@ -3051,12 +3154,12 @@ interface Encoding {
3051
3154
  * Gets the character set of the #GtefEncoding, such as "UTF-8" or "ISO-8859-1".
3052
3155
  * @returns the character set of the #GtefEncoding.
3053
3156
  */
3054
- get_charset(): string | null
3157
+ get_charset(): string
3055
3158
  /**
3056
3159
  * Gets the name of the #GtefEncoding such as "Unicode" or "Western".
3057
3160
  * @returns the name of the #GtefEncoding.
3058
3161
  */
3059
- get_name(): string | null
3162
+ get_name(): string
3060
3163
  is_utf8(): boolean
3061
3164
  /**
3062
3165
  * Returns the encoding name with the charset in parenthesis, for example
@@ -3081,7 +3184,7 @@ class Encoding {
3081
3184
  * @param charset a character set.
3082
3185
  * @returns the new #GtefEncoding. Free with gtef_encoding_free().
3083
3186
  */
3084
- constructor(charset: string | null)
3187
+ constructor(charset: string)
3085
3188
  /**
3086
3189
  * Creates a new #GtefEncoding from a character set such as "UTF-8" or
3087
3190
  * "ISO-8859-1".
@@ -3089,7 +3192,7 @@ class Encoding {
3089
3192
  * @param charset a character set.
3090
3193
  * @returns the new #GtefEncoding. Free with gtef_encoding_free().
3091
3194
  */
3092
- static new(charset: string | null): Encoding
3195
+ static new(charset: string): Encoding
3093
3196
  /**
3094
3197
  * Creates a new #GtefEncoding from the current locale, as returned by
3095
3198
  * g_get_charset().
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gtef-2",
3
- "version": "2.0.0-3.2.5",
3
+ "version": "2.0.0-3.2.7",
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",
@@ -25,21 +25,21 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gtef-2.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/atk-1.0": "^2.50.0-3.2.5",
29
- "@girs/cairo-1.0": "^1.0.0-3.2.5",
30
- "@girs/freetype2-2.0": "^2.0.0-3.2.5",
31
- "@girs/gdk-3.0": "^3.24.38-3.2.5",
32
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.5",
33
- "@girs/gio-2.0": "^2.78.0-3.2.5",
34
- "@girs/gjs": "^3.2.5",
35
- "@girs/glib-2.0": "^2.78.0-3.2.5",
36
- "@girs/gmodule-2.0": "^2.0.0-3.2.5",
37
- "@girs/gobject-2.0": "^2.78.0-3.2.5",
38
- "@girs/gtk-3.0": "^3.24.38-3.2.5",
39
- "@girs/gtksource-3.0": "^3.0.0-3.2.5",
40
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.5",
41
- "@girs/pango-1.0": "^1.51.0-3.2.5",
42
- "@girs/xlib-2.0": "^2.0.0-3.2.5"
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"
43
43
  },
44
44
  "devDependencies": {
45
45
  "typescript": "*"