@girs/gspell-1 1.0.0-3.2.5 → 1.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.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/gspell-1)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Gspell-1, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.5.
8
+ GJS TypeScript type definitions for Gspell-1, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
 
11
11
  ## Install
package/gspell-1.d.cts CHANGED
@@ -47,7 +47,7 @@ export function language_get_available(): Language[]
47
47
  * @returns the default #GspellLanguage, or %NULL if no dictionaries are available.
48
48
  */
49
49
  export function language_get_default(): Language | null
50
- export function language_lookup(language_code: string | null): Language | null
50
+ export function language_lookup(language_code: string): Language | null
51
51
  export module LanguageChooser {
52
52
 
53
53
  // Constructor properties interface
@@ -66,6 +66,12 @@ export module LanguageChooser {
66
66
  * or if the selection has changed.
67
67
  */
68
68
  language_code?: string | null
69
+ /**
70
+ * The empty string if the default language was set and the selection
71
+ * hasn't changed. Or the language code if an explicit language was set
72
+ * or if the selection has changed.
73
+ */
74
+ languageCode?: string | null
69
75
  }
70
76
 
71
77
  }
@@ -84,11 +90,17 @@ export interface LanguageChooser {
84
90
  * or if the selection has changed.
85
91
  */
86
92
  language_code: string | null
93
+ /**
94
+ * The empty string if the default language was set and the selection
95
+ * hasn't changed. Or the language code if an explicit language was set
96
+ * or if the selection has changed.
97
+ */
98
+ languageCode: string | null
87
99
 
88
100
  // Owm methods of Gspell-1.Gspell.LanguageChooser
89
101
 
90
102
  get_language(): Language | null
91
- get_language_code(): string | null
103
+ get_language_code(): string
92
104
  /**
93
105
  * Sets the selected language.
94
106
  * @param language a #GspellLanguage or %NULL to pick the default language.
@@ -156,7 +168,7 @@ export interface Navigator extends GObject.InitiallyUnowned {
156
168
  * @param word the word to change.
157
169
  * @param change_to the replacement.
158
170
  */
159
- change(word: string | null, change_to: string | null): void
171
+ change(word: string, change_to: string): void
160
172
  /**
161
173
  * Changes all occurrences of `word` by `change_to` in the text.
162
174
  *
@@ -166,13 +178,13 @@ export interface Navigator extends GObject.InitiallyUnowned {
166
178
  * @param word the word to change.
167
179
  * @param change_to the replacement.
168
180
  */
169
- change_all(word: string | null, change_to: string | null): void
181
+ change_all(word: string, change_to: string): void
170
182
  /**
171
183
  * Goes to the next misspelled word. When called the first time, goes to the
172
184
  * first misspelled word.
173
185
  * @returns %TRUE if a next misspelled word has been found, %FALSE if the spell checking is finished or if an error occurred.
174
186
  */
175
- goto_next(): [ /* returnType */ boolean, /* word */ string | null, /* spell_checker */ Checker ]
187
+ goto_next(): [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
176
188
 
177
189
  // Own virtual methods of Gspell-1.Gspell.Navigator
178
190
 
@@ -187,7 +199,7 @@ export interface Navigator extends GObject.InitiallyUnowned {
187
199
  * @param word the word to change.
188
200
  * @param change_to the replacement.
189
201
  */
190
- vfunc_change(word: string | null, change_to: string | null): void
202
+ vfunc_change(word: string, change_to: string): void
191
203
  /**
192
204
  * Changes all occurrences of `word` by `change_to` in the text.
193
205
  *
@@ -198,14 +210,14 @@ export interface Navigator extends GObject.InitiallyUnowned {
198
210
  * @param word the word to change.
199
211
  * @param change_to the replacement.
200
212
  */
201
- vfunc_change_all(word: string | null, change_to: string | null): void
213
+ vfunc_change_all(word: string, change_to: string): void
202
214
  /**
203
215
  * Goes to the next misspelled word. When called the first time, goes to the
204
216
  * first misspelled word.
205
217
  * @virtual
206
218
  * @returns %TRUE if a next misspelled word has been found, %FALSE if the spell checking is finished or if an error occurred.
207
219
  */
208
- vfunc_goto_next(): [ /* returnType */ boolean, /* word */ string | null, /* spell_checker */ Checker ]
220
+ vfunc_goto_next(): [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
209
221
 
210
222
  // Class property signals of Gspell-1.Gspell.Navigator
211
223
 
@@ -289,7 +301,7 @@ export interface Checker {
289
301
  * @param word a word.
290
302
  * @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
291
303
  */
292
- add_word_to_personal(word: string | null, word_length: number): void
304
+ add_word_to_personal(word: string, word_length: number): void
293
305
  /**
294
306
  * Adds a word to the session dictionary. Each #GspellChecker instance has a
295
307
  * different session dictionary. The session dictionary is lost when the
@@ -300,7 +312,7 @@ export interface Checker {
300
312
  * @param word a word.
301
313
  * @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
302
314
  */
303
- add_word_to_session(word: string | null, word_length: number): void
315
+ add_word_to_session(word: string, word_length: number): void
304
316
  /**
305
317
  * If the #GspellChecker:language is %NULL, i.e. when no dictonaries are
306
318
  * available, this function returns %TRUE to limit the damage.
@@ -308,7 +320,7 @@ export interface Checker {
308
320
  * @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
309
321
  * @returns %TRUE if @word is correctly spelled, %FALSE otherwise.
310
322
  */
311
- check_word(word: string | null, word_length: number): boolean
323
+ check_word(word: string, word_length: number): boolean
312
324
  /**
313
325
  * Clears the session dictionary.
314
326
  */
@@ -321,7 +333,7 @@ export interface Checker {
321
333
  * @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
322
334
  * @returns the list of suggestions.
323
335
  */
324
- get_suggestions(word: string | null, word_length: number): string[]
336
+ get_suggestions(word: string, word_length: number): string[]
325
337
  /**
326
338
  * Informs the spell checker that `word` is replaced/corrected by `replacement`.
327
339
  * @param word a word.
@@ -329,7 +341,7 @@ export interface Checker {
329
341
  * @param replacement the replacement word.
330
342
  * @param replacement_length the byte length of `replacement,` or -1 if `replacement` is nul-terminated.
331
343
  */
332
- set_correction(word: string | null, word_length: number, replacement: string | null, replacement_length: number): void
344
+ set_correction(word: string, word_length: number, replacement: string, replacement_length: number): void
333
345
  /**
334
346
  * Sets the language to use for the spell checking. If `language` is %NULL, the
335
347
  * default language is picked with gspell_language_get_default().
@@ -340,8 +352,8 @@ export interface Checker {
340
352
  // Own virtual methods of Gspell-1.Gspell.Checker
341
353
 
342
354
  vfunc_session_cleared(): void
343
- vfunc_word_added_to_personal(word: string | null): void
344
- vfunc_word_added_to_session(word: string | null): void
355
+ vfunc_word_added_to_personal(word: string): void
356
+ vfunc_word_added_to_session(word: string): void
345
357
 
346
358
  // Own signals of Gspell-1.Gspell.Checker
347
359
 
@@ -407,6 +419,10 @@ export module CheckerDialog {
407
419
  * The #GspellNavigator to use.
408
420
  */
409
421
  spell_navigator?: Navigator | null
422
+ /**
423
+ * The #GspellNavigator to use.
424
+ */
425
+ spellNavigator?: Navigator | null
410
426
  }
411
427
 
412
428
  }
@@ -419,6 +435,10 @@ export interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
419
435
  * The #GspellNavigator to use.
420
436
  */
421
437
  readonly spell_navigator: Navigator
438
+ /**
439
+ * The #GspellNavigator to use.
440
+ */
441
+ readonly spellNavigator: Navigator
422
442
 
423
443
  // Conflicting properties
424
444
 
@@ -467,7 +487,7 @@ export interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
467
487
  * @param child the child widget
468
488
  * @param child_property the name of a child property installed on the class of `container`
469
489
  */
470
- child_notify(child: Gtk.Widget, child_property: string | null): void
490
+ child_notify(child: Gtk.Widget, child_property: string): void
471
491
 
472
492
  // Overloads of child_notify
473
493
 
@@ -481,7 +501,7 @@ export interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
481
501
  * Also see gtk_container_child_notify().
482
502
  * @param child_property the name of a child property installed on the class of `widget’`s parent
483
503
  */
484
- child_notify(child_property: string | null): void
504
+ child_notify(child_property: string): void
485
505
  /**
486
506
  * Emits a #GtkWidget::child-notify signal for the
487
507
  * [child property][child-properties] `child_property`
@@ -492,7 +512,7 @@ export interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
492
512
  * Also see gtk_container_child_notify().
493
513
  * @param child_property the name of a child property installed on the class of `widget’`s parent
494
514
  */
495
- child_notify(child_property: string | null): void
515
+ child_notify(child_property: string): void
496
516
 
497
517
  // Class property signals of Gspell-1.Gspell.CheckerDialog
498
518
 
@@ -806,6 +826,14 @@ export module Entry {
806
826
  * %FALSE.
807
827
  */
808
828
  inline_spell_checking?: boolean | null
829
+ /**
830
+ * Whether the inline spell checking is enabled.
831
+ *
832
+ * Even if this property is %TRUE, #GspellEntry disables internally the
833
+ * inline spell checking in case the #GtkEntry:visibility property is
834
+ * %FALSE.
835
+ */
836
+ inlineSpellChecking?: boolean | null
809
837
  }
810
838
 
811
839
  }
@@ -826,6 +854,14 @@ export interface Entry {
826
854
  * %FALSE.
827
855
  */
828
856
  inline_spell_checking: boolean
857
+ /**
858
+ * Whether the inline spell checking is enabled.
859
+ *
860
+ * Even if this property is %TRUE, #GspellEntry disables internally the
861
+ * inline spell checking in case the #GtkEntry:visibility property is
862
+ * %FALSE.
863
+ */
864
+ inlineSpellChecking: boolean
829
865
 
830
866
  // Owm methods of Gspell-1.Gspell.Entry
831
867
 
@@ -925,6 +961,10 @@ export module EntryBuffer {
925
961
  * The #GspellChecker.
926
962
  */
927
963
  spell_checker?: Checker | null
964
+ /**
965
+ * The #GspellChecker.
966
+ */
967
+ spellChecker?: Checker | null
928
968
  }
929
969
 
930
970
  }
@@ -941,6 +981,10 @@ export interface EntryBuffer {
941
981
  * The #GspellChecker.
942
982
  */
943
983
  spell_checker: Checker
984
+ /**
985
+ * The #GspellChecker.
986
+ */
987
+ spellChecker: Checker
944
988
 
945
989
  // Owm methods of Gspell-1.Gspell.EntryBuffer
946
990
 
@@ -1015,7 +1059,7 @@ export interface LanguageChooserButton extends Atk.ImplementorIface, LanguageCho
1015
1059
  * Also see gtk_container_child_notify().
1016
1060
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1017
1061
  */
1018
- child_notify(child_property: string | null): void
1062
+ child_notify(child_property: string): void
1019
1063
  /**
1020
1064
  * Emits a #GtkWidget::child-notify signal for the
1021
1065
  * [child property][child-properties]
@@ -1027,7 +1071,7 @@ export interface LanguageChooserButton extends Atk.ImplementorIface, LanguageCho
1027
1071
  * @param child the child widget
1028
1072
  * @param child_property the name of a child property installed on the class of `container`
1029
1073
  */
1030
- child_notify(child: Gtk.Widget, child_property: string | null): void
1074
+ child_notify(child: Gtk.Widget, child_property: string): void
1031
1075
 
1032
1076
  // Overloads of child_notify
1033
1077
 
@@ -1041,7 +1085,7 @@ export interface LanguageChooserButton extends Atk.ImplementorIface, LanguageCho
1041
1085
  * Also see gtk_container_child_notify().
1042
1086
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1043
1087
  */
1044
- child_notify(child_property: string | null): void
1088
+ child_notify(child_property: string): void
1045
1089
 
1046
1090
  // Class property signals of Gspell-1.Gspell.LanguageChooserButton
1047
1091
 
@@ -1301,7 +1345,7 @@ export interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageCho
1301
1345
  * @param child the child widget
1302
1346
  * @param child_property the name of a child property installed on the class of `container`
1303
1347
  */
1304
- child_notify(child: Gtk.Widget, child_property: string | null): void
1348
+ child_notify(child: Gtk.Widget, child_property: string): void
1305
1349
 
1306
1350
  // Overloads of child_notify
1307
1351
 
@@ -1315,7 +1359,7 @@ export interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageCho
1315
1359
  * Also see gtk_container_child_notify().
1316
1360
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1317
1361
  */
1318
- child_notify(child_property: string | null): void
1362
+ child_notify(child_property: string): void
1319
1363
  /**
1320
1364
  * Emits a #GtkWidget::child-notify signal for the
1321
1365
  * [child property][child-properties] `child_property`
@@ -1326,7 +1370,7 @@ export interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageCho
1326
1370
  * Also see gtk_container_child_notify().
1327
1371
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1328
1372
  */
1329
- child_notify(child_property: string | null): void
1373
+ child_notify(child_property: string): void
1330
1374
 
1331
1375
  // Class property signals of Gspell-1.Gspell.LanguageChooserDialog
1332
1376
 
@@ -1699,6 +1743,10 @@ export module TextBuffer {
1699
1743
  * The #GspellChecker.
1700
1744
  */
1701
1745
  spell_checker?: Checker | null
1746
+ /**
1747
+ * The #GspellChecker.
1748
+ */
1749
+ spellChecker?: Checker | null
1702
1750
  }
1703
1751
 
1704
1752
  }
@@ -1715,6 +1763,10 @@ export interface TextBuffer {
1715
1763
  * The #GspellChecker.
1716
1764
  */
1717
1765
  spell_checker: Checker
1766
+ /**
1767
+ * The #GspellChecker.
1768
+ */
1769
+ spellChecker: Checker
1718
1770
 
1719
1771
  // Owm methods of Gspell-1.Gspell.TextBuffer
1720
1772
 
@@ -1783,6 +1835,15 @@ export module TextView {
1783
1835
  * The #GtkTextView.
1784
1836
  */
1785
1837
  view?: Gtk.TextView | null
1838
+ /**
1839
+ * When the context menu is shown, whether to add a sub-menu to select
1840
+ * the language for the spell checking.
1841
+ */
1842
+ enableLanguageMenu?: boolean | null
1843
+ /**
1844
+ * Whether the inline spell checking is enabled.
1845
+ */
1846
+ inlineSpellChecking?: boolean | null
1786
1847
  }
1787
1848
 
1788
1849
  }
@@ -1796,10 +1857,19 @@ export interface TextView {
1796
1857
  * the language for the spell checking.
1797
1858
  */
1798
1859
  enable_language_menu: boolean
1860
+ /**
1861
+ * When the context menu is shown, whether to add a sub-menu to select
1862
+ * the language for the spell checking.
1863
+ */
1864
+ enableLanguageMenu: boolean
1799
1865
  /**
1800
1866
  * Whether the inline spell checking is enabled.
1801
1867
  */
1802
1868
  inline_spell_checking: boolean
1869
+ /**
1870
+ * Whether the inline spell checking is enabled.
1871
+ */
1872
+ inlineSpellChecking: boolean
1803
1873
  /**
1804
1874
  * The #GtkTextView.
1805
1875
  */
@@ -1911,8 +1981,8 @@ export interface CheckerClass {
1911
1981
  // Own fields of Gspell-1.Gspell.CheckerClass
1912
1982
 
1913
1983
  parent_class: GObject.ObjectClass
1914
- word_added_to_personal: (checker: Checker, word: string | null) => void
1915
- word_added_to_session: (checker: Checker, word: string | null) => void
1984
+ word_added_to_personal: (checker: Checker, word: string) => void
1985
+ word_added_to_session: (checker: Checker, word: string) => void
1916
1986
  session_cleared: (checker: Checker) => void
1917
1987
  padding: any[]
1918
1988
  }
@@ -1987,14 +2057,14 @@ export interface Language {
1987
2057
  * Used by language bindings.
1988
2058
  */
1989
2059
  free(): void
1990
- get_code(): string | null
2060
+ get_code(): string
1991
2061
  /**
1992
2062
  * Returns the `language` name translated to the current locale. For example
1993
2063
  * "French (Belgium)" is returned if the current locale is in English and the
1994
2064
  * `language` code is fr_BE.
1995
2065
  * @returns the @language name.
1996
2066
  */
1997
- get_name(): string | null
2067
+ get_name(): string
1998
2068
  }
1999
2069
 
2000
2070
  export class Language {
@@ -2011,7 +2081,7 @@ export class Language {
2011
2081
  * @returns the default #GspellLanguage, or %NULL if no dictionaries are available.
2012
2082
  */
2013
2083
  static get_default(): Language | null
2014
- static lookup(language_code: string | null): Language | null
2084
+ static lookup(language_code: string): Language | null
2015
2085
  }
2016
2086
 
2017
2087
  export interface LanguageChooserButtonClass {
@@ -2065,9 +2135,9 @@ export interface NavigatorInterface {
2065
2135
  // Own fields of Gspell-1.Gspell.NavigatorInterface
2066
2136
 
2067
2137
  parent_interface: GObject.TypeInterface
2068
- goto_next: (navigator: Navigator) => [ /* returnType */ boolean, /* word */ string | null, /* spell_checker */ Checker ]
2069
- change: (navigator: Navigator, word: string | null, change_to: string | null) => void
2070
- change_all: (navigator: Navigator, word: string | null, change_to: string | null) => void
2138
+ goto_next: (navigator: Navigator) => [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
2139
+ change: (navigator: Navigator, word: string, change_to: string) => void
2140
+ change_all: (navigator: Navigator, word: string, change_to: string) => void
2071
2141
  }
2072
2142
 
2073
2143
  export abstract class NavigatorInterface {
package/gspell-1.d.ts CHANGED
@@ -49,7 +49,7 @@ function language_get_available(): Language[]
49
49
  * @returns the default #GspellLanguage, or %NULL if no dictionaries are available.
50
50
  */
51
51
  function language_get_default(): Language | null
52
- function language_lookup(language_code: string | null): Language | null
52
+ function language_lookup(language_code: string): Language | null
53
53
  module LanguageChooser {
54
54
 
55
55
  // Constructor properties interface
@@ -68,6 +68,12 @@ module LanguageChooser {
68
68
  * or if the selection has changed.
69
69
  */
70
70
  language_code?: string | null
71
+ /**
72
+ * The empty string if the default language was set and the selection
73
+ * hasn't changed. Or the language code if an explicit language was set
74
+ * or if the selection has changed.
75
+ */
76
+ languageCode?: string | null
71
77
  }
72
78
 
73
79
  }
@@ -86,11 +92,17 @@ interface LanguageChooser {
86
92
  * or if the selection has changed.
87
93
  */
88
94
  language_code: string | null
95
+ /**
96
+ * The empty string if the default language was set and the selection
97
+ * hasn't changed. Or the language code if an explicit language was set
98
+ * or if the selection has changed.
99
+ */
100
+ languageCode: string | null
89
101
 
90
102
  // Owm methods of Gspell-1.Gspell.LanguageChooser
91
103
 
92
104
  get_language(): Language | null
93
- get_language_code(): string | null
105
+ get_language_code(): string
94
106
  /**
95
107
  * Sets the selected language.
96
108
  * @param language a #GspellLanguage or %NULL to pick the default language.
@@ -158,7 +170,7 @@ interface Navigator extends GObject.InitiallyUnowned {
158
170
  * @param word the word to change.
159
171
  * @param change_to the replacement.
160
172
  */
161
- change(word: string | null, change_to: string | null): void
173
+ change(word: string, change_to: string): void
162
174
  /**
163
175
  * Changes all occurrences of `word` by `change_to` in the text.
164
176
  *
@@ -168,13 +180,13 @@ interface Navigator extends GObject.InitiallyUnowned {
168
180
  * @param word the word to change.
169
181
  * @param change_to the replacement.
170
182
  */
171
- change_all(word: string | null, change_to: string | null): void
183
+ change_all(word: string, change_to: string): void
172
184
  /**
173
185
  * Goes to the next misspelled word. When called the first time, goes to the
174
186
  * first misspelled word.
175
187
  * @returns %TRUE if a next misspelled word has been found, %FALSE if the spell checking is finished or if an error occurred.
176
188
  */
177
- goto_next(): [ /* returnType */ boolean, /* word */ string | null, /* spell_checker */ Checker ]
189
+ goto_next(): [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
178
190
 
179
191
  // Own virtual methods of Gspell-1.Gspell.Navigator
180
192
 
@@ -189,7 +201,7 @@ interface Navigator extends GObject.InitiallyUnowned {
189
201
  * @param word the word to change.
190
202
  * @param change_to the replacement.
191
203
  */
192
- vfunc_change(word: string | null, change_to: string | null): void
204
+ vfunc_change(word: string, change_to: string): void
193
205
  /**
194
206
  * Changes all occurrences of `word` by `change_to` in the text.
195
207
  *
@@ -200,14 +212,14 @@ interface Navigator extends GObject.InitiallyUnowned {
200
212
  * @param word the word to change.
201
213
  * @param change_to the replacement.
202
214
  */
203
- vfunc_change_all(word: string | null, change_to: string | null): void
215
+ vfunc_change_all(word: string, change_to: string): void
204
216
  /**
205
217
  * Goes to the next misspelled word. When called the first time, goes to the
206
218
  * first misspelled word.
207
219
  * @virtual
208
220
  * @returns %TRUE if a next misspelled word has been found, %FALSE if the spell checking is finished or if an error occurred.
209
221
  */
210
- vfunc_goto_next(): [ /* returnType */ boolean, /* word */ string | null, /* spell_checker */ Checker ]
222
+ vfunc_goto_next(): [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
211
223
 
212
224
  // Class property signals of Gspell-1.Gspell.Navigator
213
225
 
@@ -291,7 +303,7 @@ interface Checker {
291
303
  * @param word a word.
292
304
  * @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
293
305
  */
294
- add_word_to_personal(word: string | null, word_length: number): void
306
+ add_word_to_personal(word: string, word_length: number): void
295
307
  /**
296
308
  * Adds a word to the session dictionary. Each #GspellChecker instance has a
297
309
  * different session dictionary. The session dictionary is lost when the
@@ -302,7 +314,7 @@ interface Checker {
302
314
  * @param word a word.
303
315
  * @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
304
316
  */
305
- add_word_to_session(word: string | null, word_length: number): void
317
+ add_word_to_session(word: string, word_length: number): void
306
318
  /**
307
319
  * If the #GspellChecker:language is %NULL, i.e. when no dictonaries are
308
320
  * available, this function returns %TRUE to limit the damage.
@@ -310,7 +322,7 @@ interface Checker {
310
322
  * @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
311
323
  * @returns %TRUE if @word is correctly spelled, %FALSE otherwise.
312
324
  */
313
- check_word(word: string | null, word_length: number): boolean
325
+ check_word(word: string, word_length: number): boolean
314
326
  /**
315
327
  * Clears the session dictionary.
316
328
  */
@@ -323,7 +335,7 @@ interface Checker {
323
335
  * @param word_length the byte length of `word,` or -1 if `word` is nul-terminated.
324
336
  * @returns the list of suggestions.
325
337
  */
326
- get_suggestions(word: string | null, word_length: number): string[]
338
+ get_suggestions(word: string, word_length: number): string[]
327
339
  /**
328
340
  * Informs the spell checker that `word` is replaced/corrected by `replacement`.
329
341
  * @param word a word.
@@ -331,7 +343,7 @@ interface Checker {
331
343
  * @param replacement the replacement word.
332
344
  * @param replacement_length the byte length of `replacement,` or -1 if `replacement` is nul-terminated.
333
345
  */
334
- set_correction(word: string | null, word_length: number, replacement: string | null, replacement_length: number): void
346
+ set_correction(word: string, word_length: number, replacement: string, replacement_length: number): void
335
347
  /**
336
348
  * Sets the language to use for the spell checking. If `language` is %NULL, the
337
349
  * default language is picked with gspell_language_get_default().
@@ -342,8 +354,8 @@ interface Checker {
342
354
  // Own virtual methods of Gspell-1.Gspell.Checker
343
355
 
344
356
  vfunc_session_cleared(): void
345
- vfunc_word_added_to_personal(word: string | null): void
346
- vfunc_word_added_to_session(word: string | null): void
357
+ vfunc_word_added_to_personal(word: string): void
358
+ vfunc_word_added_to_session(word: string): void
347
359
 
348
360
  // Own signals of Gspell-1.Gspell.Checker
349
361
 
@@ -409,6 +421,10 @@ module CheckerDialog {
409
421
  * The #GspellNavigator to use.
410
422
  */
411
423
  spell_navigator?: Navigator | null
424
+ /**
425
+ * The #GspellNavigator to use.
426
+ */
427
+ spellNavigator?: Navigator | null
412
428
  }
413
429
 
414
430
  }
@@ -421,6 +437,10 @@ interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
421
437
  * The #GspellNavigator to use.
422
438
  */
423
439
  readonly spell_navigator: Navigator
440
+ /**
441
+ * The #GspellNavigator to use.
442
+ */
443
+ readonly spellNavigator: Navigator
424
444
 
425
445
  // Conflicting properties
426
446
 
@@ -469,7 +489,7 @@ interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
469
489
  * @param child the child widget
470
490
  * @param child_property the name of a child property installed on the class of `container`
471
491
  */
472
- child_notify(child: Gtk.Widget, child_property: string | null): void
492
+ child_notify(child: Gtk.Widget, child_property: string): void
473
493
 
474
494
  // Overloads of child_notify
475
495
 
@@ -483,7 +503,7 @@ interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
483
503
  * Also see gtk_container_child_notify().
484
504
  * @param child_property the name of a child property installed on the class of `widget’`s parent
485
505
  */
486
- child_notify(child_property: string | null): void
506
+ child_notify(child_property: string): void
487
507
  /**
488
508
  * Emits a #GtkWidget::child-notify signal for the
489
509
  * [child property][child-properties] `child_property`
@@ -494,7 +514,7 @@ interface CheckerDialog extends Atk.ImplementorIface, Gtk.Buildable {
494
514
  * Also see gtk_container_child_notify().
495
515
  * @param child_property the name of a child property installed on the class of `widget’`s parent
496
516
  */
497
- child_notify(child_property: string | null): void
517
+ child_notify(child_property: string): void
498
518
 
499
519
  // Class property signals of Gspell-1.Gspell.CheckerDialog
500
520
 
@@ -808,6 +828,14 @@ module Entry {
808
828
  * %FALSE.
809
829
  */
810
830
  inline_spell_checking?: boolean | null
831
+ /**
832
+ * Whether the inline spell checking is enabled.
833
+ *
834
+ * Even if this property is %TRUE, #GspellEntry disables internally the
835
+ * inline spell checking in case the #GtkEntry:visibility property is
836
+ * %FALSE.
837
+ */
838
+ inlineSpellChecking?: boolean | null
811
839
  }
812
840
 
813
841
  }
@@ -828,6 +856,14 @@ interface Entry {
828
856
  * %FALSE.
829
857
  */
830
858
  inline_spell_checking: boolean
859
+ /**
860
+ * Whether the inline spell checking is enabled.
861
+ *
862
+ * Even if this property is %TRUE, #GspellEntry disables internally the
863
+ * inline spell checking in case the #GtkEntry:visibility property is
864
+ * %FALSE.
865
+ */
866
+ inlineSpellChecking: boolean
831
867
 
832
868
  // Owm methods of Gspell-1.Gspell.Entry
833
869
 
@@ -927,6 +963,10 @@ module EntryBuffer {
927
963
  * The #GspellChecker.
928
964
  */
929
965
  spell_checker?: Checker | null
966
+ /**
967
+ * The #GspellChecker.
968
+ */
969
+ spellChecker?: Checker | null
930
970
  }
931
971
 
932
972
  }
@@ -943,6 +983,10 @@ interface EntryBuffer {
943
983
  * The #GspellChecker.
944
984
  */
945
985
  spell_checker: Checker
986
+ /**
987
+ * The #GspellChecker.
988
+ */
989
+ spellChecker: Checker
946
990
 
947
991
  // Owm methods of Gspell-1.Gspell.EntryBuffer
948
992
 
@@ -1017,7 +1061,7 @@ interface LanguageChooserButton extends Atk.ImplementorIface, LanguageChooser, G
1017
1061
  * Also see gtk_container_child_notify().
1018
1062
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1019
1063
  */
1020
- child_notify(child_property: string | null): void
1064
+ child_notify(child_property: string): void
1021
1065
  /**
1022
1066
  * Emits a #GtkWidget::child-notify signal for the
1023
1067
  * [child property][child-properties]
@@ -1029,7 +1073,7 @@ interface LanguageChooserButton extends Atk.ImplementorIface, LanguageChooser, G
1029
1073
  * @param child the child widget
1030
1074
  * @param child_property the name of a child property installed on the class of `container`
1031
1075
  */
1032
- child_notify(child: Gtk.Widget, child_property: string | null): void
1076
+ child_notify(child: Gtk.Widget, child_property: string): void
1033
1077
 
1034
1078
  // Overloads of child_notify
1035
1079
 
@@ -1043,7 +1087,7 @@ interface LanguageChooserButton extends Atk.ImplementorIface, LanguageChooser, G
1043
1087
  * Also see gtk_container_child_notify().
1044
1088
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1045
1089
  */
1046
- child_notify(child_property: string | null): void
1090
+ child_notify(child_property: string): void
1047
1091
 
1048
1092
  // Class property signals of Gspell-1.Gspell.LanguageChooserButton
1049
1093
 
@@ -1303,7 +1347,7 @@ interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageChooser, G
1303
1347
  * @param child the child widget
1304
1348
  * @param child_property the name of a child property installed on the class of `container`
1305
1349
  */
1306
- child_notify(child: Gtk.Widget, child_property: string | null): void
1350
+ child_notify(child: Gtk.Widget, child_property: string): void
1307
1351
 
1308
1352
  // Overloads of child_notify
1309
1353
 
@@ -1317,7 +1361,7 @@ interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageChooser, G
1317
1361
  * Also see gtk_container_child_notify().
1318
1362
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1319
1363
  */
1320
- child_notify(child_property: string | null): void
1364
+ child_notify(child_property: string): void
1321
1365
  /**
1322
1366
  * Emits a #GtkWidget::child-notify signal for the
1323
1367
  * [child property][child-properties] `child_property`
@@ -1328,7 +1372,7 @@ interface LanguageChooserDialog extends Atk.ImplementorIface, LanguageChooser, G
1328
1372
  * Also see gtk_container_child_notify().
1329
1373
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1330
1374
  */
1331
- child_notify(child_property: string | null): void
1375
+ child_notify(child_property: string): void
1332
1376
 
1333
1377
  // Class property signals of Gspell-1.Gspell.LanguageChooserDialog
1334
1378
 
@@ -1701,6 +1745,10 @@ module TextBuffer {
1701
1745
  * The #GspellChecker.
1702
1746
  */
1703
1747
  spell_checker?: Checker | null
1748
+ /**
1749
+ * The #GspellChecker.
1750
+ */
1751
+ spellChecker?: Checker | null
1704
1752
  }
1705
1753
 
1706
1754
  }
@@ -1717,6 +1765,10 @@ interface TextBuffer {
1717
1765
  * The #GspellChecker.
1718
1766
  */
1719
1767
  spell_checker: Checker
1768
+ /**
1769
+ * The #GspellChecker.
1770
+ */
1771
+ spellChecker: Checker
1720
1772
 
1721
1773
  // Owm methods of Gspell-1.Gspell.TextBuffer
1722
1774
 
@@ -1785,6 +1837,15 @@ module TextView {
1785
1837
  * The #GtkTextView.
1786
1838
  */
1787
1839
  view?: Gtk.TextView | null
1840
+ /**
1841
+ * When the context menu is shown, whether to add a sub-menu to select
1842
+ * the language for the spell checking.
1843
+ */
1844
+ enableLanguageMenu?: boolean | null
1845
+ /**
1846
+ * Whether the inline spell checking is enabled.
1847
+ */
1848
+ inlineSpellChecking?: boolean | null
1788
1849
  }
1789
1850
 
1790
1851
  }
@@ -1798,10 +1859,19 @@ interface TextView {
1798
1859
  * the language for the spell checking.
1799
1860
  */
1800
1861
  enable_language_menu: boolean
1862
+ /**
1863
+ * When the context menu is shown, whether to add a sub-menu to select
1864
+ * the language for the spell checking.
1865
+ */
1866
+ enableLanguageMenu: boolean
1801
1867
  /**
1802
1868
  * Whether the inline spell checking is enabled.
1803
1869
  */
1804
1870
  inline_spell_checking: boolean
1871
+ /**
1872
+ * Whether the inline spell checking is enabled.
1873
+ */
1874
+ inlineSpellChecking: boolean
1805
1875
  /**
1806
1876
  * The #GtkTextView.
1807
1877
  */
@@ -1913,8 +1983,8 @@ interface CheckerClass {
1913
1983
  // Own fields of Gspell-1.Gspell.CheckerClass
1914
1984
 
1915
1985
  parent_class: GObject.ObjectClass
1916
- word_added_to_personal: (checker: Checker, word: string | null) => void
1917
- word_added_to_session: (checker: Checker, word: string | null) => void
1986
+ word_added_to_personal: (checker: Checker, word: string) => void
1987
+ word_added_to_session: (checker: Checker, word: string) => void
1918
1988
  session_cleared: (checker: Checker) => void
1919
1989
  padding: any[]
1920
1990
  }
@@ -1989,14 +2059,14 @@ interface Language {
1989
2059
  * Used by language bindings.
1990
2060
  */
1991
2061
  free(): void
1992
- get_code(): string | null
2062
+ get_code(): string
1993
2063
  /**
1994
2064
  * Returns the `language` name translated to the current locale. For example
1995
2065
  * "French (Belgium)" is returned if the current locale is in English and the
1996
2066
  * `language` code is fr_BE.
1997
2067
  * @returns the @language name.
1998
2068
  */
1999
- get_name(): string | null
2069
+ get_name(): string
2000
2070
  }
2001
2071
 
2002
2072
  class Language {
@@ -2013,7 +2083,7 @@ class Language {
2013
2083
  * @returns the default #GspellLanguage, or %NULL if no dictionaries are available.
2014
2084
  */
2015
2085
  static get_default(): Language | null
2016
- static lookup(language_code: string | null): Language | null
2086
+ static lookup(language_code: string): Language | null
2017
2087
  }
2018
2088
 
2019
2089
  interface LanguageChooserButtonClass {
@@ -2067,9 +2137,9 @@ interface NavigatorInterface {
2067
2137
  // Own fields of Gspell-1.Gspell.NavigatorInterface
2068
2138
 
2069
2139
  parent_interface: GObject.TypeInterface
2070
- goto_next: (navigator: Navigator) => [ /* returnType */ boolean, /* word */ string | null, /* spell_checker */ Checker ]
2071
- change: (navigator: Navigator, word: string | null, change_to: string | null) => void
2072
- change_all: (navigator: Navigator, word: string | null, change_to: string | null) => void
2140
+ goto_next: (navigator: Navigator) => [ /* returnType */ boolean, /* word */ string, /* spell_checker */ Checker ]
2141
+ change: (navigator: Navigator, word: string, change_to: string) => void
2142
+ change_all: (navigator: Navigator, word: string, change_to: string) => void
2073
2143
  }
2074
2144
 
2075
2145
  abstract class NavigatorInterface {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/gspell-1",
3
- "version": "1.0.0-3.2.5",
3
+ "version": "1.0.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for Gspell-1, generated from library version 1.0.0",
5
5
  "type": "module",
6
6
  "module": "gspell-1.js",
@@ -25,20 +25,20 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit gspell-1.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/harfbuzz-0.0": "^8.2.1-3.2.5",
40
- "@girs/pango-1.0": "^1.51.0-3.2.5",
41
- "@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/harfbuzz-0.0": "^8.2.1-3.2.7",
40
+ "@girs/pango-1.0": "^1.51.0-3.2.7",
41
+ "@girs/xlib-2.0": "^2.0.0-3.2.7"
42
42
  },
43
43
  "devDependencies": {
44
44
  "typescript": "*"