@girs/nma-1.0 1.10.7-3.2.6 → 1.10.7-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/nma-1.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for NMA-1.0, generated from library version 1.10.7 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for NMA-1.0, generated from library version 1.10.7 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
 
11
11
  ## Install
package/nma-1.0.d.cts CHANGED
@@ -68,9 +68,9 @@ export enum MobileFamily {
68
68
  */
69
69
  CDMA,
70
70
  }
71
- export const BAR_CODE_SIZE: string | null
72
- export const BAR_CODE_TEXT: string | null
73
- export const BAR_CODE_WIDGET_CONNECTION: string | null
71
+ export const BAR_CODE_SIZE: string
72
+ export const BAR_CODE_TEXT: string
73
+ export const BAR_CODE_WIDGET_CONNECTION: string
74
74
  /**
75
75
  * Evaluates to the major version number of NetworkManager which this source
76
76
  * is compiled against.
@@ -91,7 +91,7 @@ export const MINOR_VERSION: number
91
91
  * @param mccmnc input MCCMNC string.
92
92
  * @returns %TRUE if correctly split and @mcc and @mnc are set; %FALSE otherwise.
93
93
  */
94
- export function mobile_providers_split_3gpp_mcc_mnc(mccmnc: string | null): [ /* returnType */ boolean, /* mcc */ string | null, /* mnc */ string | null ]
94
+ export function mobile_providers_split_3gpp_mcc_mnc(mccmnc: string): [ /* returnType */ boolean, /* mcc */ string | null, /* mnc */ string | null ]
95
95
  /**
96
96
  * Returns secret flags corresponding to the selected password storage menu
97
97
  * in the attached icon
@@ -112,7 +112,7 @@ export function utils_menu_to_secret_flags(passwd_entry: Gtk.Widget): NM.Setting
112
112
  * @param with_not_required whether to include "Not required" menu item
113
113
  * @param ask_mode %TRUE if the entry is shown in ASK mode. That means, while prompting for a password, contrary to being inside the editor mode. If %TRUE, the entry should be sensivive on selected "always-ask" icon (this is e.f. for nm-applet asking for password), otherwise not. If %FALSE, it shall not be possible to select a different storage, because we only prompt for a password, we cannot change the password location.
114
114
  */
115
- export function utils_setup_password_storage(passwd_entry: Gtk.Widget, initial_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string | null, with_not_required: boolean, ask_mode: boolean): void
115
+ export function utils_setup_password_storage(passwd_entry: Gtk.Widget, initial_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string, with_not_required: boolean, ask_mode: boolean): void
116
116
  /**
117
117
  * Updates secret flags in the password storage popup menu and also
118
118
  * in the `setting` (if `setting` and `password_flags_name` are not NULL).
@@ -121,7 +121,7 @@ export function utils_setup_password_storage(passwd_entry: Gtk.Widget, initial_f
121
121
  * @param setting #NMSetting containing the password, or NULL
122
122
  * @param password_flags_name name of the secret flags (like psk-flags), or NULL
123
123
  */
124
- export function utils_update_password_storage(passwd_entry: Gtk.Widget, secret_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string | null): void
124
+ export function utils_update_password_storage(passwd_entry: Gtk.Widget, secret_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string): void
125
125
  export interface MobileWizardCallback {
126
126
  (self: MobileWizard, canceled: boolean, method: MobileWizardAccessMethod): void
127
127
  }
@@ -157,7 +157,7 @@ export interface BarCode {
157
157
  * Regenerates the QR code for a different text.
158
158
  * @param text new bar code text
159
159
  */
160
- set_text(text: string | null): void
160
+ set_text(text: string): void
161
161
 
162
162
  // Class property signals of NMA-1.0.NMA.BarCode
163
163
 
@@ -183,8 +183,8 @@ export class BarCode extends GObject.Object {
183
183
  // Constructors of NMA-1.0.NMA.BarCode
184
184
 
185
185
  constructor(config?: BarCode.ConstructorProperties)
186
- constructor(text: string | null)
187
- static new(text: string | null): BarCode
186
+ constructor(text: string)
187
+ static new(text: string): BarCode
188
188
  _init(config?: BarCode.ConstructorProperties): void
189
189
  }
190
190
 
@@ -220,7 +220,7 @@ export interface BarCodeWidget extends Atk.ImplementorIface, Gtk.Buildable, Gtk.
220
220
  * @param child the child widget
221
221
  * @param child_property the name of a child property installed on the class of `container`
222
222
  */
223
- child_notify(child: Gtk.Widget, child_property: string | null): void
223
+ child_notify(child: Gtk.Widget, child_property: string): void
224
224
 
225
225
  // Overloads of child_notify
226
226
 
@@ -234,7 +234,7 @@ export interface BarCodeWidget extends Atk.ImplementorIface, Gtk.Buildable, Gtk.
234
234
  * Also see gtk_container_child_notify().
235
235
  * @param child_property the name of a child property installed on the class of `widget’`s parent
236
236
  */
237
- child_notify(child_property: string | null): void
237
+ child_notify(child_property: string): void
238
238
  /**
239
239
  * Emits a #GtkWidget::child-notify signal for the
240
240
  * [child property][child-properties] `child_property`
@@ -245,7 +245,7 @@ export interface BarCodeWidget extends Atk.ImplementorIface, Gtk.Buildable, Gtk.
245
245
  * Also see gtk_container_child_notify().
246
246
  * @param child_property the name of a child property installed on the class of `widget’`s parent
247
247
  */
248
- child_notify(child_property: string | null): void
248
+ child_notify(child_property: string): void
249
249
 
250
250
  // Class property signals of NMA-1.0.NMA.BarCodeWidget
251
251
 
@@ -488,7 +488,7 @@ export interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Or
488
488
  * Obtains the password or a PIN that was be required to access the certificate.
489
489
  * @returns the certificate PIN or password
490
490
  */
491
- get_cert_password(): string | null
491
+ get_cert_password(): string
492
492
  /**
493
493
  * Returns secret flags corresponding to the certificate password
494
494
  * if one is present. The chooser would typically call into
@@ -511,7 +511,7 @@ export interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Or
511
511
  * Obtains the password or a PIN that was be required to access the key.
512
512
  * @returns the key PIN or password
513
513
  */
514
- get_key_password(): string | null
514
+ get_key_password(): string
515
515
  /**
516
516
  * Returns secret flags corresponding to the key password
517
517
  * if one is present. The chooser would typically call into
@@ -530,33 +530,33 @@ export interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Or
530
530
  * @param value the path or URI of a certificate
531
531
  * @param scheme the scheme of the certificate path
532
532
  */
533
- set_cert(value: string | null, scheme: NM.Setting8021xCKScheme): void
533
+ set_cert(value: string, scheme: NM.Setting8021xCKScheme): void
534
534
  /**
535
535
  * Sets the password or a PIN that might be required to access the certificate.
536
536
  * @param password the certificate PIN or password
537
537
  */
538
- set_cert_password(password: string | null): void
538
+ set_cert_password(password: string): void
539
539
  /**
540
540
  * Sets the certificate URI for the chooser button.
541
541
  * @param uri the path or URI of a certificate
542
542
  */
543
- set_cert_uri(uri: string | null): void
543
+ set_cert_uri(uri: string): void
544
544
  /**
545
545
  * Sets the key location for the chooser button.
546
546
  * @param value the path or URI of a key
547
547
  * @param scheme the scheme of the key path
548
548
  */
549
- set_key(value: string | null, scheme: NM.Setting8021xCKScheme): void
549
+ set_key(value: string, scheme: NM.Setting8021xCKScheme): void
550
550
  /**
551
551
  * Sets the password or a PIN that might be required to access the key.
552
552
  * @param password the key PIN or password
553
553
  */
554
- set_key_password(password: string | null): void
554
+ set_key_password(password: string): void
555
555
  /**
556
556
  * Sets the key URI for the chooser button.
557
557
  * @param uri the URI of a key
558
558
  */
559
- set_key_uri(uri: string | null): void
559
+ set_key_uri(uri: string): void
560
560
  /**
561
561
  * This method basically calls nma_utils_setup_password_storage()
562
562
  * on the certificate password entry, in case one is present.
@@ -566,7 +566,7 @@ export interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Or
566
566
  * @param with_not_required whether to include "Not required" menu item
567
567
  * @param ask_mode %TRUE if the entry is shown in ASK mode
568
568
  */
569
- setup_cert_password_storage(initial_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string | null, with_not_required: boolean, ask_mode: boolean): void
569
+ setup_cert_password_storage(initial_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string, with_not_required: boolean, ask_mode: boolean): void
570
570
  /**
571
571
  * This method basically calls nma_utils_setup_password_storage()
572
572
  * on the key password entry, in case one is present.
@@ -576,7 +576,7 @@ export interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Or
576
576
  * @param with_not_required whether to include "Not required" menu item
577
577
  * @param ask_mode %TRUE if the entry is shown in ASK mode
578
578
  */
579
- setup_key_password_storage(initial_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string | null, with_not_required: boolean, ask_mode: boolean): void
579
+ setup_key_password_storage(initial_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string, with_not_required: boolean, ask_mode: boolean): void
580
580
  /**
581
581
  * This method basically calls nma_utils_update_password_storage()
582
582
  * on the certificate password entry, in case one is present.
@@ -584,7 +584,7 @@ export interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Or
584
584
  * @param setting #NMSetting containing the password, or NULL
585
585
  * @param password_flags_name name of the secret flags (like psk-flags), or NULL
586
586
  */
587
- update_cert_password_storage(secret_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string | null): void
587
+ update_cert_password_storage(secret_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string): void
588
588
  /**
589
589
  * This method basically calls nma_utils_update_password_storage()
590
590
  * on the key password entry, in case one is present.
@@ -592,7 +592,7 @@ export interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Or
592
592
  * @param setting #NMSetting containing the password, or NULL
593
593
  * @param password_flags_name name of the secret flags (like psk-flags), or NULL
594
594
  */
595
- update_key_password_storage(secret_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string | null): void
595
+ update_key_password_storage(secret_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string): void
596
596
  /**
597
597
  * Validates whether the chosen values make sense. The users can do further
598
598
  * validation by subscribing to the "*-changed" signals and returning an
@@ -614,7 +614,7 @@ export interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Or
614
614
  * @param child the child widget
615
615
  * @param child_property the name of a child property installed on the class of `container`
616
616
  */
617
- child_notify(child: Gtk.Widget, child_property: string | null): void
617
+ child_notify(child: Gtk.Widget, child_property: string): void
618
618
 
619
619
  // Overloads of child_notify
620
620
 
@@ -628,7 +628,7 @@ export interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Or
628
628
  * Also see gtk_container_child_notify().
629
629
  * @param child_property the name of a child property installed on the class of `widget’`s parent
630
630
  */
631
- child_notify(child_property: string | null): void
631
+ child_notify(child_property: string): void
632
632
  /**
633
633
  * Emits a #GtkWidget::child-notify signal for the
634
634
  * [child property][child-properties] `child_property`
@@ -639,7 +639,7 @@ export interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Or
639
639
  * Also see gtk_container_child_notify().
640
640
  * @param child_property the name of a child property installed on the class of `widget’`s parent
641
641
  */
642
- child_notify(child_property: string | null): void
642
+ child_notify(child_property: string): void
643
643
 
644
644
  // Own signals of NMA-1.0.NMA.CertChooser
645
645
 
@@ -835,7 +835,7 @@ export class CertChooser extends Gtk.Grid {
835
835
  * @param flags the flags that configure the capabilities of the button
836
836
  * @returns the certificate chooser button instance
837
837
  */
838
- constructor(title: string | null, flags: CertChooserFlags)
838
+ constructor(title: string, flags: CertChooserFlags)
839
839
  /**
840
840
  * Constructs the button that is capable of selecting a certificate
841
841
  * and a key.
@@ -844,7 +844,7 @@ export class CertChooser extends Gtk.Grid {
844
844
  * @param flags the flags that configure the capabilities of the button
845
845
  * @returns the certificate chooser button instance
846
846
  */
847
- static new(title: string | null, flags: CertChooserFlags): CertChooser
847
+ static new(title: string, flags: CertChooserFlags): CertChooser
848
848
 
849
849
  // Overloads of new
850
850
 
@@ -891,9 +891,9 @@ export interface MobileProvidersDatabase extends Gio.AsyncInitable, Gio.Initable
891
891
 
892
892
  dump(): void
893
893
  get_countries(): GLib.HashTable
894
- lookup_3gpp_mcc_mnc(mccmnc: string | null): MobileProvider
894
+ lookup_3gpp_mcc_mnc(mccmnc: string): MobileProvider
895
895
  lookup_cdma_sid(sid: number): MobileProvider
896
- lookup_country(country_code: string | null): CountryInfo
896
+ lookup_country(country_code: string): CountryInfo
897
897
 
898
898
  // Class property signals of NMA-1.0.NMA.MobileProvidersDatabase
899
899
 
@@ -986,16 +986,16 @@ export interface VpnPasswordDialog extends Atk.ImplementorIface, Gtk.Buildable {
986
986
  focus_password(): void
987
987
  focus_password_secondary(): void
988
988
  focus_password_ternary(): void
989
- get_password(): string | null
990
- get_password_secondary(): string | null
991
- get_password_ternary(): string | null
989
+ get_password(): string
990
+ get_password_secondary(): string
991
+ get_password_ternary(): string
992
992
  run_and_block(): boolean
993
- set_password(password: string | null): void
994
- set_password_label(label: string | null): void
995
- set_password_secondary(password_secondary: string | null): void
996
- set_password_secondary_label(label: string | null): void
997
- set_password_ternary(password_ternary: string | null): void
998
- set_password_ternary_label(label: string | null): void
993
+ set_password(password: string): void
994
+ set_password_label(label: string): void
995
+ set_password_secondary(password_secondary: string): void
996
+ set_password_secondary_label(label: string): void
997
+ set_password_ternary(password_ternary: string): void
998
+ set_password_ternary_label(label: string): void
999
999
  set_show_password(show: boolean): void
1000
1000
  set_show_password_secondary(show: boolean): void
1001
1001
  set_show_password_ternary(show: boolean): void
@@ -1035,7 +1035,7 @@ export interface VpnPasswordDialog extends Atk.ImplementorIface, Gtk.Buildable {
1035
1035
  * @param child the child widget
1036
1036
  * @param child_property the name of a child property installed on the class of `container`
1037
1037
  */
1038
- child_notify(child: Gtk.Widget, child_property: string | null): void
1038
+ child_notify(child: Gtk.Widget, child_property: string): void
1039
1039
 
1040
1040
  // Overloads of child_notify
1041
1041
 
@@ -1049,7 +1049,7 @@ export interface VpnPasswordDialog extends Atk.ImplementorIface, Gtk.Buildable {
1049
1049
  * Also see gtk_container_child_notify().
1050
1050
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1051
1051
  */
1052
- child_notify(child_property: string | null): void
1052
+ child_notify(child_property: string): void
1053
1053
  /**
1054
1054
  * Emits a #GtkWidget::child-notify signal for the
1055
1055
  * [child property][child-properties] `child_property`
@@ -1060,7 +1060,7 @@ export interface VpnPasswordDialog extends Atk.ImplementorIface, Gtk.Buildable {
1060
1060
  * Also see gtk_container_child_notify().
1061
1061
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1062
1062
  */
1063
- child_notify(child_property: string | null): void
1063
+ child_notify(child_property: string): void
1064
1064
 
1065
1065
  // Class property signals of NMA-1.0.NMA.VpnPasswordDialog
1066
1066
 
@@ -1308,8 +1308,8 @@ export class VpnPasswordDialog extends Gtk.Dialog {
1308
1308
  // Constructors of NMA-1.0.NMA.VpnPasswordDialog
1309
1309
 
1310
1310
  constructor(config?: VpnPasswordDialog.ConstructorProperties)
1311
- constructor(title: string | null, message: string | null, password: string | null)
1312
- static new(title: string | null, message: string | null, password: string | null): VpnPasswordDialog
1311
+ constructor(title: string, message: string, password: string)
1312
+ static new(title: string, message: string, password: string): VpnPasswordDialog
1313
1313
 
1314
1314
  // Overloads of new
1315
1315
 
@@ -1412,7 +1412,7 @@ export interface WifiDialog extends Atk.ImplementorIface, Gtk.Buildable {
1412
1412
  * @param child the child widget
1413
1413
  * @param child_property the name of a child property installed on the class of `container`
1414
1414
  */
1415
- child_notify(child: Gtk.Widget, child_property: string | null): void
1415
+ child_notify(child: Gtk.Widget, child_property: string): void
1416
1416
 
1417
1417
  // Overloads of child_notify
1418
1418
 
@@ -1426,7 +1426,7 @@ export interface WifiDialog extends Atk.ImplementorIface, Gtk.Buildable {
1426
1426
  * Also see gtk_container_child_notify().
1427
1427
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1428
1428
  */
1429
- child_notify(child_property: string | null): void
1429
+ child_notify(child_property: string): void
1430
1430
  /**
1431
1431
  * Emits a #GtkWidget::child-notify signal for the
1432
1432
  * [child property][child-properties] `child_property`
@@ -1437,7 +1437,7 @@ export interface WifiDialog extends Atk.ImplementorIface, Gtk.Buildable {
1437
1437
  * Also see gtk_container_child_notify().
1438
1438
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1439
1439
  */
1440
- child_notify(child_property: string | null): void
1440
+ child_notify(child_property: string): void
1441
1441
 
1442
1442
  // Class property signals of NMA-1.0.NMA.WifiDialog
1443
1443
 
@@ -1778,7 +1778,7 @@ export class WifiDialog extends Gtk.Dialog {
1778
1778
  * @param secrets_hints array of setting key names within the setting given in `secrets_setting_name` which are requested or %NULL
1779
1779
  * @returns the dialog widget or %NULL in case of error
1780
1780
  */
1781
- static new_for_secrets(client: NM.Client, connection: NM.Connection, secrets_setting_name: string | null, secrets_hints: string | null): WifiDialog
1781
+ static new_for_secrets(client: NM.Client, connection: NM.Connection, secrets_setting_name: string, secrets_hints: string): WifiDialog
1782
1782
  _init(config?: WifiDialog.ConstructorProperties): void
1783
1783
  }
1784
1784
 
@@ -1816,8 +1816,8 @@ export interface CountryInfo {
1816
1816
 
1817
1817
  // Owm methods of NMA-1.0.NMA.CountryInfo
1818
1818
 
1819
- get_country_code(): string | null
1820
- get_country_name(): string | null
1819
+ get_country_code(): string
1820
+ get_country_name(): string
1821
1821
  get_providers(): MobileProvider[]
1822
1822
  ref(): CountryInfo
1823
1823
  unref(): void
@@ -1834,13 +1834,13 @@ export interface MobileAccessMethod {
1834
1834
 
1835
1835
  // Owm methods of NMA-1.0.NMA.MobileAccessMethod
1836
1836
 
1837
- get_3gpp_apn(): string | null
1837
+ get_3gpp_apn(): string
1838
1838
  get_dns(): string[]
1839
1839
  get_family(): MobileFamily
1840
- get_gateway(): string | null
1841
- get_name(): string | null
1842
- get_password(): string | null
1843
- get_username(): string | null
1840
+ get_gateway(): string
1841
+ get_name(): string
1842
+ get_password(): string
1843
+ get_username(): string
1844
1844
  ref(): MobileAccessMethod
1845
1845
  unref(): void
1846
1846
  }
@@ -1859,7 +1859,7 @@ export interface MobileProvider {
1859
1859
  get_3gpp_mcc_mnc(): string[]
1860
1860
  get_cdma_sid(): number[]
1861
1861
  get_methods(): MobileAccessMethod[]
1862
- get_name(): string | null
1862
+ get_name(): string
1863
1863
  ref(): MobileProvider
1864
1864
  unref(): void
1865
1865
  }
package/nma-1.0.d.ts CHANGED
@@ -70,9 +70,9 @@ enum MobileFamily {
70
70
  */
71
71
  CDMA,
72
72
  }
73
- const BAR_CODE_SIZE: string | null
74
- const BAR_CODE_TEXT: string | null
75
- const BAR_CODE_WIDGET_CONNECTION: string | null
73
+ const BAR_CODE_SIZE: string
74
+ const BAR_CODE_TEXT: string
75
+ const BAR_CODE_WIDGET_CONNECTION: string
76
76
  /**
77
77
  * Evaluates to the major version number of NetworkManager which this source
78
78
  * is compiled against.
@@ -93,7 +93,7 @@ const MINOR_VERSION: number
93
93
  * @param mccmnc input MCCMNC string.
94
94
  * @returns %TRUE if correctly split and @mcc and @mnc are set; %FALSE otherwise.
95
95
  */
96
- function mobile_providers_split_3gpp_mcc_mnc(mccmnc: string | null): [ /* returnType */ boolean, /* mcc */ string | null, /* mnc */ string | null ]
96
+ function mobile_providers_split_3gpp_mcc_mnc(mccmnc: string): [ /* returnType */ boolean, /* mcc */ string | null, /* mnc */ string | null ]
97
97
  /**
98
98
  * Returns secret flags corresponding to the selected password storage menu
99
99
  * in the attached icon
@@ -114,7 +114,7 @@ function utils_menu_to_secret_flags(passwd_entry: Gtk.Widget): NM.SettingSecretF
114
114
  * @param with_not_required whether to include "Not required" menu item
115
115
  * @param ask_mode %TRUE if the entry is shown in ASK mode. That means, while prompting for a password, contrary to being inside the editor mode. If %TRUE, the entry should be sensivive on selected "always-ask" icon (this is e.f. for nm-applet asking for password), otherwise not. If %FALSE, it shall not be possible to select a different storage, because we only prompt for a password, we cannot change the password location.
116
116
  */
117
- function utils_setup_password_storage(passwd_entry: Gtk.Widget, initial_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string | null, with_not_required: boolean, ask_mode: boolean): void
117
+ function utils_setup_password_storage(passwd_entry: Gtk.Widget, initial_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string, with_not_required: boolean, ask_mode: boolean): void
118
118
  /**
119
119
  * Updates secret flags in the password storage popup menu and also
120
120
  * in the `setting` (if `setting` and `password_flags_name` are not NULL).
@@ -123,7 +123,7 @@ function utils_setup_password_storage(passwd_entry: Gtk.Widget, initial_flags: N
123
123
  * @param setting #NMSetting containing the password, or NULL
124
124
  * @param password_flags_name name of the secret flags (like psk-flags), or NULL
125
125
  */
126
- function utils_update_password_storage(passwd_entry: Gtk.Widget, secret_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string | null): void
126
+ function utils_update_password_storage(passwd_entry: Gtk.Widget, secret_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string): void
127
127
  interface MobileWizardCallback {
128
128
  (self: MobileWizard, canceled: boolean, method: MobileWizardAccessMethod): void
129
129
  }
@@ -159,7 +159,7 @@ interface BarCode {
159
159
  * Regenerates the QR code for a different text.
160
160
  * @param text new bar code text
161
161
  */
162
- set_text(text: string | null): void
162
+ set_text(text: string): void
163
163
 
164
164
  // Class property signals of NMA-1.0.NMA.BarCode
165
165
 
@@ -185,8 +185,8 @@ class BarCode extends GObject.Object {
185
185
  // Constructors of NMA-1.0.NMA.BarCode
186
186
 
187
187
  constructor(config?: BarCode.ConstructorProperties)
188
- constructor(text: string | null)
189
- static new(text: string | null): BarCode
188
+ constructor(text: string)
189
+ static new(text: string): BarCode
190
190
  _init(config?: BarCode.ConstructorProperties): void
191
191
  }
192
192
 
@@ -222,7 +222,7 @@ interface BarCodeWidget extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orienta
222
222
  * @param child the child widget
223
223
  * @param child_property the name of a child property installed on the class of `container`
224
224
  */
225
- child_notify(child: Gtk.Widget, child_property: string | null): void
225
+ child_notify(child: Gtk.Widget, child_property: string): void
226
226
 
227
227
  // Overloads of child_notify
228
228
 
@@ -236,7 +236,7 @@ interface BarCodeWidget extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orienta
236
236
  * Also see gtk_container_child_notify().
237
237
  * @param child_property the name of a child property installed on the class of `widget’`s parent
238
238
  */
239
- child_notify(child_property: string | null): void
239
+ child_notify(child_property: string): void
240
240
  /**
241
241
  * Emits a #GtkWidget::child-notify signal for the
242
242
  * [child property][child-properties] `child_property`
@@ -247,7 +247,7 @@ interface BarCodeWidget extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orienta
247
247
  * Also see gtk_container_child_notify().
248
248
  * @param child_property the name of a child property installed on the class of `widget’`s parent
249
249
  */
250
- child_notify(child_property: string | null): void
250
+ child_notify(child_property: string): void
251
251
 
252
252
  // Class property signals of NMA-1.0.NMA.BarCodeWidget
253
253
 
@@ -490,7 +490,7 @@ interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientabl
490
490
  * Obtains the password or a PIN that was be required to access the certificate.
491
491
  * @returns the certificate PIN or password
492
492
  */
493
- get_cert_password(): string | null
493
+ get_cert_password(): string
494
494
  /**
495
495
  * Returns secret flags corresponding to the certificate password
496
496
  * if one is present. The chooser would typically call into
@@ -513,7 +513,7 @@ interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientabl
513
513
  * Obtains the password or a PIN that was be required to access the key.
514
514
  * @returns the key PIN or password
515
515
  */
516
- get_key_password(): string | null
516
+ get_key_password(): string
517
517
  /**
518
518
  * Returns secret flags corresponding to the key password
519
519
  * if one is present. The chooser would typically call into
@@ -532,33 +532,33 @@ interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientabl
532
532
  * @param value the path or URI of a certificate
533
533
  * @param scheme the scheme of the certificate path
534
534
  */
535
- set_cert(value: string | null, scheme: NM.Setting8021xCKScheme): void
535
+ set_cert(value: string, scheme: NM.Setting8021xCKScheme): void
536
536
  /**
537
537
  * Sets the password or a PIN that might be required to access the certificate.
538
538
  * @param password the certificate PIN or password
539
539
  */
540
- set_cert_password(password: string | null): void
540
+ set_cert_password(password: string): void
541
541
  /**
542
542
  * Sets the certificate URI for the chooser button.
543
543
  * @param uri the path or URI of a certificate
544
544
  */
545
- set_cert_uri(uri: string | null): void
545
+ set_cert_uri(uri: string): void
546
546
  /**
547
547
  * Sets the key location for the chooser button.
548
548
  * @param value the path or URI of a key
549
549
  * @param scheme the scheme of the key path
550
550
  */
551
- set_key(value: string | null, scheme: NM.Setting8021xCKScheme): void
551
+ set_key(value: string, scheme: NM.Setting8021xCKScheme): void
552
552
  /**
553
553
  * Sets the password or a PIN that might be required to access the key.
554
554
  * @param password the key PIN or password
555
555
  */
556
- set_key_password(password: string | null): void
556
+ set_key_password(password: string): void
557
557
  /**
558
558
  * Sets the key URI for the chooser button.
559
559
  * @param uri the URI of a key
560
560
  */
561
- set_key_uri(uri: string | null): void
561
+ set_key_uri(uri: string): void
562
562
  /**
563
563
  * This method basically calls nma_utils_setup_password_storage()
564
564
  * on the certificate password entry, in case one is present.
@@ -568,7 +568,7 @@ interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientabl
568
568
  * @param with_not_required whether to include "Not required" menu item
569
569
  * @param ask_mode %TRUE if the entry is shown in ASK mode
570
570
  */
571
- setup_cert_password_storage(initial_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string | null, with_not_required: boolean, ask_mode: boolean): void
571
+ setup_cert_password_storage(initial_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string, with_not_required: boolean, ask_mode: boolean): void
572
572
  /**
573
573
  * This method basically calls nma_utils_setup_password_storage()
574
574
  * on the key password entry, in case one is present.
@@ -578,7 +578,7 @@ interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientabl
578
578
  * @param with_not_required whether to include "Not required" menu item
579
579
  * @param ask_mode %TRUE if the entry is shown in ASK mode
580
580
  */
581
- setup_key_password_storage(initial_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string | null, with_not_required: boolean, ask_mode: boolean): void
581
+ setup_key_password_storage(initial_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string, with_not_required: boolean, ask_mode: boolean): void
582
582
  /**
583
583
  * This method basically calls nma_utils_update_password_storage()
584
584
  * on the certificate password entry, in case one is present.
@@ -586,7 +586,7 @@ interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientabl
586
586
  * @param setting #NMSetting containing the password, or NULL
587
587
  * @param password_flags_name name of the secret flags (like psk-flags), or NULL
588
588
  */
589
- update_cert_password_storage(secret_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string | null): void
589
+ update_cert_password_storage(secret_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string): void
590
590
  /**
591
591
  * This method basically calls nma_utils_update_password_storage()
592
592
  * on the key password entry, in case one is present.
@@ -594,7 +594,7 @@ interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientabl
594
594
  * @param setting #NMSetting containing the password, or NULL
595
595
  * @param password_flags_name name of the secret flags (like psk-flags), or NULL
596
596
  */
597
- update_key_password_storage(secret_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string | null): void
597
+ update_key_password_storage(secret_flags: NM.SettingSecretFlags, setting: NM.Setting, password_flags_name: string): void
598
598
  /**
599
599
  * Validates whether the chosen values make sense. The users can do further
600
600
  * validation by subscribing to the "*-changed" signals and returning an
@@ -616,7 +616,7 @@ interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientabl
616
616
  * @param child the child widget
617
617
  * @param child_property the name of a child property installed on the class of `container`
618
618
  */
619
- child_notify(child: Gtk.Widget, child_property: string | null): void
619
+ child_notify(child: Gtk.Widget, child_property: string): void
620
620
 
621
621
  // Overloads of child_notify
622
622
 
@@ -630,7 +630,7 @@ interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientabl
630
630
  * Also see gtk_container_child_notify().
631
631
  * @param child_property the name of a child property installed on the class of `widget’`s parent
632
632
  */
633
- child_notify(child_property: string | null): void
633
+ child_notify(child_property: string): void
634
634
  /**
635
635
  * Emits a #GtkWidget::child-notify signal for the
636
636
  * [child property][child-properties] `child_property`
@@ -641,7 +641,7 @@ interface CertChooser extends Atk.ImplementorIface, Gtk.Buildable, Gtk.Orientabl
641
641
  * Also see gtk_container_child_notify().
642
642
  * @param child_property the name of a child property installed on the class of `widget’`s parent
643
643
  */
644
- child_notify(child_property: string | null): void
644
+ child_notify(child_property: string): void
645
645
 
646
646
  // Own signals of NMA-1.0.NMA.CertChooser
647
647
 
@@ -837,7 +837,7 @@ class CertChooser extends Gtk.Grid {
837
837
  * @param flags the flags that configure the capabilities of the button
838
838
  * @returns the certificate chooser button instance
839
839
  */
840
- constructor(title: string | null, flags: CertChooserFlags)
840
+ constructor(title: string, flags: CertChooserFlags)
841
841
  /**
842
842
  * Constructs the button that is capable of selecting a certificate
843
843
  * and a key.
@@ -846,7 +846,7 @@ class CertChooser extends Gtk.Grid {
846
846
  * @param flags the flags that configure the capabilities of the button
847
847
  * @returns the certificate chooser button instance
848
848
  */
849
- static new(title: string | null, flags: CertChooserFlags): CertChooser
849
+ static new(title: string, flags: CertChooserFlags): CertChooser
850
850
 
851
851
  // Overloads of new
852
852
 
@@ -893,9 +893,9 @@ interface MobileProvidersDatabase extends Gio.AsyncInitable, Gio.Initable {
893
893
 
894
894
  dump(): void
895
895
  get_countries(): GLib.HashTable
896
- lookup_3gpp_mcc_mnc(mccmnc: string | null): MobileProvider
896
+ lookup_3gpp_mcc_mnc(mccmnc: string): MobileProvider
897
897
  lookup_cdma_sid(sid: number): MobileProvider
898
- lookup_country(country_code: string | null): CountryInfo
898
+ lookup_country(country_code: string): CountryInfo
899
899
 
900
900
  // Class property signals of NMA-1.0.NMA.MobileProvidersDatabase
901
901
 
@@ -988,16 +988,16 @@ interface VpnPasswordDialog extends Atk.ImplementorIface, Gtk.Buildable {
988
988
  focus_password(): void
989
989
  focus_password_secondary(): void
990
990
  focus_password_ternary(): void
991
- get_password(): string | null
992
- get_password_secondary(): string | null
993
- get_password_ternary(): string | null
991
+ get_password(): string
992
+ get_password_secondary(): string
993
+ get_password_ternary(): string
994
994
  run_and_block(): boolean
995
- set_password(password: string | null): void
996
- set_password_label(label: string | null): void
997
- set_password_secondary(password_secondary: string | null): void
998
- set_password_secondary_label(label: string | null): void
999
- set_password_ternary(password_ternary: string | null): void
1000
- set_password_ternary_label(label: string | null): void
995
+ set_password(password: string): void
996
+ set_password_label(label: string): void
997
+ set_password_secondary(password_secondary: string): void
998
+ set_password_secondary_label(label: string): void
999
+ set_password_ternary(password_ternary: string): void
1000
+ set_password_ternary_label(label: string): void
1001
1001
  set_show_password(show: boolean): void
1002
1002
  set_show_password_secondary(show: boolean): void
1003
1003
  set_show_password_ternary(show: boolean): void
@@ -1037,7 +1037,7 @@ interface VpnPasswordDialog extends Atk.ImplementorIface, Gtk.Buildable {
1037
1037
  * @param child the child widget
1038
1038
  * @param child_property the name of a child property installed on the class of `container`
1039
1039
  */
1040
- child_notify(child: Gtk.Widget, child_property: string | null): void
1040
+ child_notify(child: Gtk.Widget, child_property: string): void
1041
1041
 
1042
1042
  // Overloads of child_notify
1043
1043
 
@@ -1051,7 +1051,7 @@ interface VpnPasswordDialog extends Atk.ImplementorIface, Gtk.Buildable {
1051
1051
  * Also see gtk_container_child_notify().
1052
1052
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1053
1053
  */
1054
- child_notify(child_property: string | null): void
1054
+ child_notify(child_property: string): void
1055
1055
  /**
1056
1056
  * Emits a #GtkWidget::child-notify signal for the
1057
1057
  * [child property][child-properties] `child_property`
@@ -1062,7 +1062,7 @@ interface VpnPasswordDialog extends Atk.ImplementorIface, Gtk.Buildable {
1062
1062
  * Also see gtk_container_child_notify().
1063
1063
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1064
1064
  */
1065
- child_notify(child_property: string | null): void
1065
+ child_notify(child_property: string): void
1066
1066
 
1067
1067
  // Class property signals of NMA-1.0.NMA.VpnPasswordDialog
1068
1068
 
@@ -1310,8 +1310,8 @@ class VpnPasswordDialog extends Gtk.Dialog {
1310
1310
  // Constructors of NMA-1.0.NMA.VpnPasswordDialog
1311
1311
 
1312
1312
  constructor(config?: VpnPasswordDialog.ConstructorProperties)
1313
- constructor(title: string | null, message: string | null, password: string | null)
1314
- static new(title: string | null, message: string | null, password: string | null): VpnPasswordDialog
1313
+ constructor(title: string, message: string, password: string)
1314
+ static new(title: string, message: string, password: string): VpnPasswordDialog
1315
1315
 
1316
1316
  // Overloads of new
1317
1317
 
@@ -1414,7 +1414,7 @@ interface WifiDialog extends Atk.ImplementorIface, Gtk.Buildable {
1414
1414
  * @param child the child widget
1415
1415
  * @param child_property the name of a child property installed on the class of `container`
1416
1416
  */
1417
- child_notify(child: Gtk.Widget, child_property: string | null): void
1417
+ child_notify(child: Gtk.Widget, child_property: string): void
1418
1418
 
1419
1419
  // Overloads of child_notify
1420
1420
 
@@ -1428,7 +1428,7 @@ interface WifiDialog extends Atk.ImplementorIface, Gtk.Buildable {
1428
1428
  * Also see gtk_container_child_notify().
1429
1429
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1430
1430
  */
1431
- child_notify(child_property: string | null): void
1431
+ child_notify(child_property: string): void
1432
1432
  /**
1433
1433
  * Emits a #GtkWidget::child-notify signal for the
1434
1434
  * [child property][child-properties] `child_property`
@@ -1439,7 +1439,7 @@ interface WifiDialog extends Atk.ImplementorIface, Gtk.Buildable {
1439
1439
  * Also see gtk_container_child_notify().
1440
1440
  * @param child_property the name of a child property installed on the class of `widget’`s parent
1441
1441
  */
1442
- child_notify(child_property: string | null): void
1442
+ child_notify(child_property: string): void
1443
1443
 
1444
1444
  // Class property signals of NMA-1.0.NMA.WifiDialog
1445
1445
 
@@ -1780,7 +1780,7 @@ class WifiDialog extends Gtk.Dialog {
1780
1780
  * @param secrets_hints array of setting key names within the setting given in `secrets_setting_name` which are requested or %NULL
1781
1781
  * @returns the dialog widget or %NULL in case of error
1782
1782
  */
1783
- static new_for_secrets(client: NM.Client, connection: NM.Connection, secrets_setting_name: string | null, secrets_hints: string | null): WifiDialog
1783
+ static new_for_secrets(client: NM.Client, connection: NM.Connection, secrets_setting_name: string, secrets_hints: string): WifiDialog
1784
1784
  _init(config?: WifiDialog.ConstructorProperties): void
1785
1785
  }
1786
1786
 
@@ -1818,8 +1818,8 @@ interface CountryInfo {
1818
1818
 
1819
1819
  // Owm methods of NMA-1.0.NMA.CountryInfo
1820
1820
 
1821
- get_country_code(): string | null
1822
- get_country_name(): string | null
1821
+ get_country_code(): string
1822
+ get_country_name(): string
1823
1823
  get_providers(): MobileProvider[]
1824
1824
  ref(): CountryInfo
1825
1825
  unref(): void
@@ -1836,13 +1836,13 @@ interface MobileAccessMethod {
1836
1836
 
1837
1837
  // Owm methods of NMA-1.0.NMA.MobileAccessMethod
1838
1838
 
1839
- get_3gpp_apn(): string | null
1839
+ get_3gpp_apn(): string
1840
1840
  get_dns(): string[]
1841
1841
  get_family(): MobileFamily
1842
- get_gateway(): string | null
1843
- get_name(): string | null
1844
- get_password(): string | null
1845
- get_username(): string | null
1842
+ get_gateway(): string
1843
+ get_name(): string
1844
+ get_password(): string
1845
+ get_username(): string
1846
1846
  ref(): MobileAccessMethod
1847
1847
  unref(): void
1848
1848
  }
@@ -1861,7 +1861,7 @@ interface MobileProvider {
1861
1861
  get_3gpp_mcc_mnc(): string[]
1862
1862
  get_cdma_sid(): number[]
1863
1863
  get_methods(): MobileAccessMethod[]
1864
- get_name(): string | null
1864
+ get_name(): string
1865
1865
  ref(): MobileProvider
1866
1866
  unref(): void
1867
1867
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/nma-1.0",
3
- "version": "1.10.7-3.2.6",
3
+ "version": "1.10.7-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for NMA-1.0, generated from library version 1.10.7",
5
5
  "type": "module",
6
6
  "module": "nma-1.0.js",
@@ -25,21 +25,21 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit nma-1.0.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/atk-1.0": "^2.50.0-3.2.6",
29
- "@girs/cairo-1.0": "^1.0.0-3.2.6",
30
- "@girs/freetype2-2.0": "^2.0.0-3.2.6",
31
- "@girs/gdk-3.0": "^3.24.38-3.2.6",
32
- "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.6",
33
- "@girs/gio-2.0": "^2.78.0-3.2.6",
34
- "@girs/gjs": "^3.2.6",
35
- "@girs/glib-2.0": "^2.78.0-3.2.6",
36
- "@girs/gmodule-2.0": "^2.0.0-3.2.6",
37
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
38
- "@girs/gtk-3.0": "^3.24.38-3.2.6",
39
- "@girs/harfbuzz-0.0": "^8.2.1-3.2.6",
40
- "@girs/nm-1.0": "^1.45.1-3.2.6",
41
- "@girs/pango-1.0": "^1.51.0-3.2.6",
42
- "@girs/xlib-2.0": "^2.0.0-3.2.6"
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/nm-1.0": "^1.45.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": "*"