@girs/amtk-5 5.0.0-3.2.6 → 5.0.0-3.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/amtk-5)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Amtk-5, generated from library version 5.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for Amtk-5, generated from library version 5.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.8.
9
9
 
10
10
 
11
11
  ## Install
@@ -0,0 +1,2 @@
1
+ export {}
2
+
@@ -0,0 +1,3 @@
1
+ const gi = globalThis.imports?.gi || {};
2
+ export default gi;
3
+
package/amtk-5.d.cts CHANGED
@@ -134,7 +134,7 @@ export function menu_item_get_long_description(menu_item: Gtk.MenuItem): string
134
134
  * @param item a #GtkMenuItem.
135
135
  * @param icon_name an icon name.
136
136
  */
137
- export function menu_item_set_icon_name(item: Gtk.MenuItem, icon_name: string | null): void
137
+ export function menu_item_set_icon_name(item: Gtk.MenuItem, icon_name: string): void
138
138
  /**
139
139
  * Sets the long description of `menu_item`. A possible use-case is to display it
140
140
  * in a #GtkStatusbar, or as a tooltip.
@@ -142,8 +142,8 @@ export function menu_item_set_icon_name(item: Gtk.MenuItem, icon_name: string |
142
142
  * @param long_description the long description, or %NULL to unset it.
143
143
  */
144
144
  export function menu_item_set_long_description(menu_item: Gtk.MenuItem, long_description: string | null): void
145
- export function shortcuts_group_new(title: string | null): Gtk.Container
146
- export function shortcuts_section_new(title: string | null): Gtk.Container
145
+ export function shortcuts_group_new(title: string): Gtk.Container
146
+ export function shortcuts_section_new(title: string): Gtk.Container
147
147
  /**
148
148
  * Creates a new #GtkShortcutsWindow. The #GtkWindow:modal property is set to
149
149
  * %TRUE.
@@ -187,7 +187,7 @@ export function shortcuts_window_new(parent: Gtk.Window): Gtk.ShortcutsWindow
187
187
  * @param gtk_action_group a #GtkActionGroup.
188
188
  * @param gtk_action_name a #GtkAction name present in `gtk_action_group`.
189
189
  */
190
- export function utils_bind_g_action_to_gtk_action(g_action_map: Gio.ActionMap, detailed_g_action_name_without_prefix: string | null, gtk_action_group: Gtk.ActionGroup, gtk_action_name: string | null): void
190
+ export function utils_bind_g_action_to_gtk_action(g_action_map: Gio.ActionMap, detailed_g_action_name_without_prefix: string, gtk_action_group: Gtk.ActionGroup, gtk_action_name: string): void
191
191
  /**
192
192
  * Utility function to be able to port an application gradually to #GAction and
193
193
  * #AmtkActionInfo, when #GtkUIManager is still used. This function goes one
@@ -212,7 +212,7 @@ export function utils_bind_g_action_to_gtk_action(g_action_map: Gio.ActionMap, d
212
212
  * @param gtk_action_group a #GtkActionGroup.
213
213
  * @param gtk_action_name the name of the #GtkAction to create and add to `gtk_action_group`.
214
214
  */
215
- export function utils_create_gtk_action(g_action_map: Gio.ActionMap, detailed_g_action_name_with_prefix: string | null, gtk_action_group: Gtk.ActionGroup, gtk_action_name: string | null): void
215
+ export function utils_create_gtk_action(g_action_map: Gio.ActionMap, detailed_g_action_name_with_prefix: string, gtk_action_group: Gtk.ActionGroup, gtk_action_name: string): void
216
216
  /**
217
217
  * This function wraps `menubar` into a container, to allow the menubar to shrink
218
218
  * below its minimum width.
@@ -241,7 +241,7 @@ export function utils_recent_chooser_menu_get_item_uri(menu: Gtk.RecentChooserMe
241
241
  * @param str a string.
242
242
  * @returns the new string with the mnemonics removed. Free with g_free() when no longer needed.
243
243
  */
244
- export function utils_remove_mnemonic(str: string | null): string | null
244
+ export function utils_remove_mnemonic(str: string): string | null
245
245
  export module ActionInfoCentralStore {
246
246
 
247
247
  // Constructor properties interface
@@ -260,7 +260,7 @@ export interface ActionInfoCentralStore {
260
260
 
261
261
  // Owm methods of Amtk-5.Amtk.ActionInfoCentralStore
262
262
 
263
- lookup(action_name: string | null): ActionInfo
263
+ lookup(action_name: string): ActionInfo
264
264
 
265
265
  // Class property signals of Amtk-5.Amtk.ActionInfoCentralStore
266
266
 
@@ -331,7 +331,7 @@ export interface ActionInfoStore {
331
331
  * by a library, to easily see which actions are not used by the application.
332
332
  */
333
333
  check_all_used(): void
334
- lookup(action_name: string | null): ActionInfo
334
+ lookup(action_name: string): ActionInfo
335
335
  /**
336
336
  * Calls gtk_application_set_accels_for_action() for all #AmtkActionInfo's part
337
337
  * of `store` with the accelerators returned by amtk_action_info_get_accels().
@@ -393,15 +393,11 @@ export module ApplicationWindow {
393
393
  /**
394
394
  * The #GtkApplicationWindow.
395
395
  */
396
- application_window?: Gtk.ApplicationWindow | null
396
+ applicationWindow?: Gtk.ApplicationWindow | null
397
397
  /**
398
398
  * The #GtkStatusbar. %NULL by default.
399
399
  */
400
400
  statusbar?: Gtk.Statusbar | null
401
- /**
402
- * The #GtkApplicationWindow.
403
- */
404
- applicationWindow?: Gtk.ApplicationWindow | null
405
401
  }
406
402
 
407
403
  }
@@ -410,10 +406,6 @@ export interface ApplicationWindow {
410
406
 
411
407
  // Own properties of Amtk-5.Amtk.ApplicationWindow
412
408
 
413
- /**
414
- * The #GtkApplicationWindow.
415
- */
416
- readonly application_window: Gtk.ApplicationWindow
417
409
  /**
418
410
  * The #GtkApplicationWindow.
419
411
  */
@@ -538,10 +530,6 @@ export module Factory {
538
530
  * #AmtkFactory has a weak reference to the #GtkApplication.
539
531
  */
540
532
  application?: Gtk.Application | null
541
- /**
542
- * The default #AmtkFactoryFlags.
543
- */
544
- default_flags?: FactoryFlags | null
545
533
  /**
546
534
  * The default #AmtkFactoryFlags.
547
535
  */
@@ -559,10 +547,6 @@ export interface Factory {
559
547
  * #AmtkFactory has a weak reference to the #GtkApplication.
560
548
  */
561
549
  readonly application: Gtk.Application
562
- /**
563
- * The default #AmtkFactoryFlags.
564
- */
565
- default_flags: FactoryFlags
566
550
  /**
567
551
  * The default #AmtkFactoryFlags.
568
552
  */
@@ -584,7 +568,7 @@ export interface Factory {
584
568
  * @param action_name an action name.
585
569
  * @returns a new #GtkCheckMenuItem for @action_name.
586
570
  */
587
- create_check_menu_item(action_name: string | null): Gtk.Widget
571
+ create_check_menu_item(action_name: string): Gtk.Widget
588
572
  /**
589
573
  * This function ignores the #AmtkFactory:default-flags property and takes the
590
574
  * `flags` argument instead.
@@ -598,14 +582,14 @@ export interface Factory {
598
582
  * @param flags #AmtkFactoryFlags.
599
583
  * @returns a new #GtkCheckMenuItem for @action_name.
600
584
  */
601
- create_check_menu_item_full(action_name: string | null, flags: FactoryFlags): Gtk.Widget
585
+ create_check_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget
602
586
  /**
603
587
  * Calls amtk_factory_create_gmenu_item_full() with the
604
588
  * #AmtkFactory:default-flags.
605
589
  * @param action_name an action name.
606
590
  * @returns a new #GMenuItem for @action_name.
607
591
  */
608
- create_gmenu_item(action_name: string | null): Gio.MenuItem
592
+ create_gmenu_item(action_name: string): Gio.MenuItem
609
593
  /**
610
594
  * This function ignores the #AmtkFactory:default-flags property and takes the
611
595
  * `flags` argument instead.
@@ -616,14 +600,14 @@ export interface Factory {
616
600
  * @param flags #AmtkFactoryFlags.
617
601
  * @returns a new #GMenuItem for @action_name.
618
602
  */
619
- create_gmenu_item_full(action_name: string | null, flags: FactoryFlags): Gio.MenuItem
603
+ create_gmenu_item_full(action_name: string, flags: FactoryFlags): Gio.MenuItem
620
604
  /**
621
605
  * Creates a new #GtkMenuItem for `action_name` with the
622
606
  * #AmtkFactory:default-flags.
623
607
  * @param action_name an action name.
624
608
  * @returns a new #GtkMenuItem for @action_name.
625
609
  */
626
- create_menu_item(action_name: string | null): Gtk.Widget
610
+ create_menu_item(action_name: string): Gtk.Widget
627
611
  /**
628
612
  * This function ignores the #AmtkFactory:default-flags property and takes the
629
613
  * `flags` argument instead.
@@ -631,7 +615,7 @@ export interface Factory {
631
615
  * @param flags #AmtkFactoryFlags.
632
616
  * @returns a new #GtkMenuItem for @action_name.
633
617
  */
634
- create_menu_item_full(action_name: string | null, flags: FactoryFlags): Gtk.Widget
618
+ create_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget
635
619
  /**
636
620
  * Creates a new #GtkMenuToolButton for `action_name` with the
637
621
  * #AmtkFactory:default-flags.
@@ -641,7 +625,7 @@ export interface Factory {
641
625
  * @param action_name an action name.
642
626
  * @returns a new #GtkMenuToolButton for @action_name.
643
627
  */
644
- create_menu_tool_button(action_name: string | null): Gtk.MenuToolButton
628
+ create_menu_tool_button(action_name: string): Gtk.MenuToolButton
645
629
  /**
646
630
  * This function ignores the #AmtkFactory:default-flags property and takes the
647
631
  * `flags` argument instead.
@@ -652,14 +636,14 @@ export interface Factory {
652
636
  * @param flags #AmtkFactoryFlags.
653
637
  * @returns a new #GtkMenuToolButton for @action_name.
654
638
  */
655
- create_menu_tool_button_full(action_name: string | null, flags: FactoryFlags): Gtk.MenuToolButton
639
+ create_menu_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.MenuToolButton
656
640
  /**
657
641
  * Calls amtk_factory_create_shortcut_full() with the
658
642
  * #AmtkFactory:default-flags.
659
643
  * @param action_name an action name.
660
644
  * @returns a new #GtkShortcutsShortcut for @action_name.
661
645
  */
662
- create_shortcut(action_name: string | null): Gtk.Widget
646
+ create_shortcut(action_name: string): Gtk.Widget
663
647
  /**
664
648
  * This function ignores the #AmtkFactory:default-flags property and takes the
665
649
  * `flags` argument instead.
@@ -686,7 +670,7 @@ export interface Factory {
686
670
  * @param flags #AmtkFactoryFlags.
687
671
  * @returns a new #GtkShortcutsShortcut for @action_name.
688
672
  */
689
- create_shortcut_full(action_name: string | null, flags: FactoryFlags): Gtk.Widget
673
+ create_shortcut_full(action_name: string, flags: FactoryFlags): Gtk.Widget
690
674
  /**
691
675
  * Calls amtk_factory_create_simple_menu_full() with the
692
676
  * #AmtkFactory:default-flags.
@@ -718,7 +702,7 @@ export interface Factory {
718
702
  * @param action_name an action name.
719
703
  * @returns a new #GtkToolButton for @action_name.
720
704
  */
721
- create_tool_button(action_name: string | null): Gtk.ToolItem
705
+ create_tool_button(action_name: string): Gtk.ToolItem
722
706
  /**
723
707
  * This function ignores the #AmtkFactory:default-flags property and takes the
724
708
  * `flags` argument instead.
@@ -726,7 +710,7 @@ export interface Factory {
726
710
  * @param flags #AmtkFactoryFlags.
727
711
  * @returns a new #GtkToolButton for @action_name.
728
712
  */
729
- create_tool_button_full(action_name: string | null, flags: FactoryFlags): Gtk.ToolItem
713
+ create_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.ToolItem
730
714
  get_application(): Gtk.Application | null
731
715
  get_default_flags(): FactoryFlags
732
716
  /**
@@ -810,10 +794,6 @@ export module MenuShell {
810
794
 
811
795
  // Own constructor properties of Amtk-5.Amtk.MenuShell
812
796
 
813
- /**
814
- * The #GtkMenuShell.
815
- */
816
- menu_shell?: Gtk.MenuShell | null
817
797
  /**
818
798
  * The #GtkMenuShell.
819
799
  */
@@ -826,10 +806,6 @@ export interface MenuShell {
826
806
 
827
807
  // Own properties of Amtk-5.Amtk.MenuShell
828
808
 
829
- /**
830
- * The #GtkMenuShell.
831
- */
832
- readonly menu_shell: Gtk.MenuShell
833
809
  /**
834
810
  * The #GtkMenuShell.
835
811
  */
@@ -939,7 +915,7 @@ export interface ActionInfo {
939
915
  * name, see g_action_parse_detailed_name().
940
916
  * @param action_name the action name.
941
917
  */
942
- set_action_name(action_name: string | null): void
918
+ set_action_name(action_name: string): void
943
919
  set_icon_name(icon_name: string | null): void
944
920
  /**
945
921
  * Sets the label with a mnemonic. To know how to encode the mnemonic, see the
@@ -1012,28 +988,28 @@ export interface ActionInfoEntry {
1012
988
  * g_action_parse_detailed_name().
1013
989
  * @field
1014
990
  */
1015
- action_name: string | null
991
+ action_name: string
1016
992
  /**
1017
993
  * the icon name, or %NULL.
1018
994
  * @field
1019
995
  */
1020
- icon_name: string | null
996
+ icon_name: string
1021
997
  /**
1022
998
  * the label (i.e. a short description) with a mnemonic, or %NULL.
1023
999
  * @field
1024
1000
  */
1025
- label: string | null
1001
+ label: string
1026
1002
  /**
1027
1003
  * the accelerator, in the format understood by gtk_accelerator_parse().
1028
1004
  * Or %NULL.
1029
1005
  * @field
1030
1006
  */
1031
- accel: string | null
1007
+ accel: string
1032
1008
  /**
1033
1009
  * the tooltip (i.e. a long description), or %NULL.
1034
1010
  * @field
1035
1011
  */
1036
- tooltip: string | null
1012
+ tooltip: string
1037
1013
  }
1038
1014
 
1039
1015
  /**
package/amtk-5.d.ts CHANGED
@@ -136,7 +136,7 @@ function menu_item_get_long_description(menu_item: Gtk.MenuItem): string | null
136
136
  * @param item a #GtkMenuItem.
137
137
  * @param icon_name an icon name.
138
138
  */
139
- function menu_item_set_icon_name(item: Gtk.MenuItem, icon_name: string | null): void
139
+ function menu_item_set_icon_name(item: Gtk.MenuItem, icon_name: string): void
140
140
  /**
141
141
  * Sets the long description of `menu_item`. A possible use-case is to display it
142
142
  * in a #GtkStatusbar, or as a tooltip.
@@ -144,8 +144,8 @@ function menu_item_set_icon_name(item: Gtk.MenuItem, icon_name: string | null):
144
144
  * @param long_description the long description, or %NULL to unset it.
145
145
  */
146
146
  function menu_item_set_long_description(menu_item: Gtk.MenuItem, long_description: string | null): void
147
- function shortcuts_group_new(title: string | null): Gtk.Container
148
- function shortcuts_section_new(title: string | null): Gtk.Container
147
+ function shortcuts_group_new(title: string): Gtk.Container
148
+ function shortcuts_section_new(title: string): Gtk.Container
149
149
  /**
150
150
  * Creates a new #GtkShortcutsWindow. The #GtkWindow:modal property is set to
151
151
  * %TRUE.
@@ -189,7 +189,7 @@ function shortcuts_window_new(parent: Gtk.Window): Gtk.ShortcutsWindow
189
189
  * @param gtk_action_group a #GtkActionGroup.
190
190
  * @param gtk_action_name a #GtkAction name present in `gtk_action_group`.
191
191
  */
192
- function utils_bind_g_action_to_gtk_action(g_action_map: Gio.ActionMap, detailed_g_action_name_without_prefix: string | null, gtk_action_group: Gtk.ActionGroup, gtk_action_name: string | null): void
192
+ function utils_bind_g_action_to_gtk_action(g_action_map: Gio.ActionMap, detailed_g_action_name_without_prefix: string, gtk_action_group: Gtk.ActionGroup, gtk_action_name: string): void
193
193
  /**
194
194
  * Utility function to be able to port an application gradually to #GAction and
195
195
  * #AmtkActionInfo, when #GtkUIManager is still used. This function goes one
@@ -214,7 +214,7 @@ function utils_bind_g_action_to_gtk_action(g_action_map: Gio.ActionMap, detailed
214
214
  * @param gtk_action_group a #GtkActionGroup.
215
215
  * @param gtk_action_name the name of the #GtkAction to create and add to `gtk_action_group`.
216
216
  */
217
- function utils_create_gtk_action(g_action_map: Gio.ActionMap, detailed_g_action_name_with_prefix: string | null, gtk_action_group: Gtk.ActionGroup, gtk_action_name: string | null): void
217
+ function utils_create_gtk_action(g_action_map: Gio.ActionMap, detailed_g_action_name_with_prefix: string, gtk_action_group: Gtk.ActionGroup, gtk_action_name: string): void
218
218
  /**
219
219
  * This function wraps `menubar` into a container, to allow the menubar to shrink
220
220
  * below its minimum width.
@@ -243,7 +243,7 @@ function utils_recent_chooser_menu_get_item_uri(menu: Gtk.RecentChooserMenu, ite
243
243
  * @param str a string.
244
244
  * @returns the new string with the mnemonics removed. Free with g_free() when no longer needed.
245
245
  */
246
- function utils_remove_mnemonic(str: string | null): string | null
246
+ function utils_remove_mnemonic(str: string): string | null
247
247
  module ActionInfoCentralStore {
248
248
 
249
249
  // Constructor properties interface
@@ -262,7 +262,7 @@ interface ActionInfoCentralStore {
262
262
 
263
263
  // Owm methods of Amtk-5.Amtk.ActionInfoCentralStore
264
264
 
265
- lookup(action_name: string | null): ActionInfo
265
+ lookup(action_name: string): ActionInfo
266
266
 
267
267
  // Class property signals of Amtk-5.Amtk.ActionInfoCentralStore
268
268
 
@@ -333,7 +333,7 @@ interface ActionInfoStore {
333
333
  * by a library, to easily see which actions are not used by the application.
334
334
  */
335
335
  check_all_used(): void
336
- lookup(action_name: string | null): ActionInfo
336
+ lookup(action_name: string): ActionInfo
337
337
  /**
338
338
  * Calls gtk_application_set_accels_for_action() for all #AmtkActionInfo's part
339
339
  * of `store` with the accelerators returned by amtk_action_info_get_accels().
@@ -395,15 +395,11 @@ module ApplicationWindow {
395
395
  /**
396
396
  * The #GtkApplicationWindow.
397
397
  */
398
- application_window?: Gtk.ApplicationWindow | null
398
+ applicationWindow?: Gtk.ApplicationWindow | null
399
399
  /**
400
400
  * The #GtkStatusbar. %NULL by default.
401
401
  */
402
402
  statusbar?: Gtk.Statusbar | null
403
- /**
404
- * The #GtkApplicationWindow.
405
- */
406
- applicationWindow?: Gtk.ApplicationWindow | null
407
403
  }
408
404
 
409
405
  }
@@ -412,10 +408,6 @@ interface ApplicationWindow {
412
408
 
413
409
  // Own properties of Amtk-5.Amtk.ApplicationWindow
414
410
 
415
- /**
416
- * The #GtkApplicationWindow.
417
- */
418
- readonly application_window: Gtk.ApplicationWindow
419
411
  /**
420
412
  * The #GtkApplicationWindow.
421
413
  */
@@ -540,10 +532,6 @@ module Factory {
540
532
  * #AmtkFactory has a weak reference to the #GtkApplication.
541
533
  */
542
534
  application?: Gtk.Application | null
543
- /**
544
- * The default #AmtkFactoryFlags.
545
- */
546
- default_flags?: FactoryFlags | null
547
535
  /**
548
536
  * The default #AmtkFactoryFlags.
549
537
  */
@@ -561,10 +549,6 @@ interface Factory {
561
549
  * #AmtkFactory has a weak reference to the #GtkApplication.
562
550
  */
563
551
  readonly application: Gtk.Application
564
- /**
565
- * The default #AmtkFactoryFlags.
566
- */
567
- default_flags: FactoryFlags
568
552
  /**
569
553
  * The default #AmtkFactoryFlags.
570
554
  */
@@ -586,7 +570,7 @@ interface Factory {
586
570
  * @param action_name an action name.
587
571
  * @returns a new #GtkCheckMenuItem for @action_name.
588
572
  */
589
- create_check_menu_item(action_name: string | null): Gtk.Widget
573
+ create_check_menu_item(action_name: string): Gtk.Widget
590
574
  /**
591
575
  * This function ignores the #AmtkFactory:default-flags property and takes the
592
576
  * `flags` argument instead.
@@ -600,14 +584,14 @@ interface Factory {
600
584
  * @param flags #AmtkFactoryFlags.
601
585
  * @returns a new #GtkCheckMenuItem for @action_name.
602
586
  */
603
- create_check_menu_item_full(action_name: string | null, flags: FactoryFlags): Gtk.Widget
587
+ create_check_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget
604
588
  /**
605
589
  * Calls amtk_factory_create_gmenu_item_full() with the
606
590
  * #AmtkFactory:default-flags.
607
591
  * @param action_name an action name.
608
592
  * @returns a new #GMenuItem for @action_name.
609
593
  */
610
- create_gmenu_item(action_name: string | null): Gio.MenuItem
594
+ create_gmenu_item(action_name: string): Gio.MenuItem
611
595
  /**
612
596
  * This function ignores the #AmtkFactory:default-flags property and takes the
613
597
  * `flags` argument instead.
@@ -618,14 +602,14 @@ interface Factory {
618
602
  * @param flags #AmtkFactoryFlags.
619
603
  * @returns a new #GMenuItem for @action_name.
620
604
  */
621
- create_gmenu_item_full(action_name: string | null, flags: FactoryFlags): Gio.MenuItem
605
+ create_gmenu_item_full(action_name: string, flags: FactoryFlags): Gio.MenuItem
622
606
  /**
623
607
  * Creates a new #GtkMenuItem for `action_name` with the
624
608
  * #AmtkFactory:default-flags.
625
609
  * @param action_name an action name.
626
610
  * @returns a new #GtkMenuItem for @action_name.
627
611
  */
628
- create_menu_item(action_name: string | null): Gtk.Widget
612
+ create_menu_item(action_name: string): Gtk.Widget
629
613
  /**
630
614
  * This function ignores the #AmtkFactory:default-flags property and takes the
631
615
  * `flags` argument instead.
@@ -633,7 +617,7 @@ interface Factory {
633
617
  * @param flags #AmtkFactoryFlags.
634
618
  * @returns a new #GtkMenuItem for @action_name.
635
619
  */
636
- create_menu_item_full(action_name: string | null, flags: FactoryFlags): Gtk.Widget
620
+ create_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget
637
621
  /**
638
622
  * Creates a new #GtkMenuToolButton for `action_name` with the
639
623
  * #AmtkFactory:default-flags.
@@ -643,7 +627,7 @@ interface Factory {
643
627
  * @param action_name an action name.
644
628
  * @returns a new #GtkMenuToolButton for @action_name.
645
629
  */
646
- create_menu_tool_button(action_name: string | null): Gtk.MenuToolButton
630
+ create_menu_tool_button(action_name: string): Gtk.MenuToolButton
647
631
  /**
648
632
  * This function ignores the #AmtkFactory:default-flags property and takes the
649
633
  * `flags` argument instead.
@@ -654,14 +638,14 @@ interface Factory {
654
638
  * @param flags #AmtkFactoryFlags.
655
639
  * @returns a new #GtkMenuToolButton for @action_name.
656
640
  */
657
- create_menu_tool_button_full(action_name: string | null, flags: FactoryFlags): Gtk.MenuToolButton
641
+ create_menu_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.MenuToolButton
658
642
  /**
659
643
  * Calls amtk_factory_create_shortcut_full() with the
660
644
  * #AmtkFactory:default-flags.
661
645
  * @param action_name an action name.
662
646
  * @returns a new #GtkShortcutsShortcut for @action_name.
663
647
  */
664
- create_shortcut(action_name: string | null): Gtk.Widget
648
+ create_shortcut(action_name: string): Gtk.Widget
665
649
  /**
666
650
  * This function ignores the #AmtkFactory:default-flags property and takes the
667
651
  * `flags` argument instead.
@@ -688,7 +672,7 @@ interface Factory {
688
672
  * @param flags #AmtkFactoryFlags.
689
673
  * @returns a new #GtkShortcutsShortcut for @action_name.
690
674
  */
691
- create_shortcut_full(action_name: string | null, flags: FactoryFlags): Gtk.Widget
675
+ create_shortcut_full(action_name: string, flags: FactoryFlags): Gtk.Widget
692
676
  /**
693
677
  * Calls amtk_factory_create_simple_menu_full() with the
694
678
  * #AmtkFactory:default-flags.
@@ -720,7 +704,7 @@ interface Factory {
720
704
  * @param action_name an action name.
721
705
  * @returns a new #GtkToolButton for @action_name.
722
706
  */
723
- create_tool_button(action_name: string | null): Gtk.ToolItem
707
+ create_tool_button(action_name: string): Gtk.ToolItem
724
708
  /**
725
709
  * This function ignores the #AmtkFactory:default-flags property and takes the
726
710
  * `flags` argument instead.
@@ -728,7 +712,7 @@ interface Factory {
728
712
  * @param flags #AmtkFactoryFlags.
729
713
  * @returns a new #GtkToolButton for @action_name.
730
714
  */
731
- create_tool_button_full(action_name: string | null, flags: FactoryFlags): Gtk.ToolItem
715
+ create_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.ToolItem
732
716
  get_application(): Gtk.Application | null
733
717
  get_default_flags(): FactoryFlags
734
718
  /**
@@ -812,10 +796,6 @@ module MenuShell {
812
796
 
813
797
  // Own constructor properties of Amtk-5.Amtk.MenuShell
814
798
 
815
- /**
816
- * The #GtkMenuShell.
817
- */
818
- menu_shell?: Gtk.MenuShell | null
819
799
  /**
820
800
  * The #GtkMenuShell.
821
801
  */
@@ -828,10 +808,6 @@ interface MenuShell {
828
808
 
829
809
  // Own properties of Amtk-5.Amtk.MenuShell
830
810
 
831
- /**
832
- * The #GtkMenuShell.
833
- */
834
- readonly menu_shell: Gtk.MenuShell
835
811
  /**
836
812
  * The #GtkMenuShell.
837
813
  */
@@ -941,7 +917,7 @@ interface ActionInfo {
941
917
  * name, see g_action_parse_detailed_name().
942
918
  * @param action_name the action name.
943
919
  */
944
- set_action_name(action_name: string | null): void
920
+ set_action_name(action_name: string): void
945
921
  set_icon_name(icon_name: string | null): void
946
922
  /**
947
923
  * Sets the label with a mnemonic. To know how to encode the mnemonic, see the
@@ -1014,28 +990,28 @@ interface ActionInfoEntry {
1014
990
  * g_action_parse_detailed_name().
1015
991
  * @field
1016
992
  */
1017
- action_name: string | null
993
+ action_name: string
1018
994
  /**
1019
995
  * the icon name, or %NULL.
1020
996
  * @field
1021
997
  */
1022
- icon_name: string | null
998
+ icon_name: string
1023
999
  /**
1024
1000
  * the label (i.e. a short description) with a mnemonic, or %NULL.
1025
1001
  * @field
1026
1002
  */
1027
- label: string | null
1003
+ label: string
1028
1004
  /**
1029
1005
  * the accelerator, in the format understood by gtk_accelerator_parse().
1030
1006
  * Or %NULL.
1031
1007
  * @field
1032
1008
  */
1033
- accel: string | null
1009
+ accel: string
1034
1010
  /**
1035
1011
  * the tooltip (i.e. a long description), or %NULL.
1036
1012
  * @field
1037
1013
  */
1038
- tooltip: string | null
1014
+ tooltip: string
1039
1015
  }
1040
1016
 
1041
1017
  /**
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@girs/amtk-5",
3
- "version": "5.0.0-3.2.6",
3
+ "version": "5.0.0-3.2.8",
4
4
  "description": "GJS TypeScript type definitions for Amtk-5, generated from library version 5.0.0",
5
5
  "type": "module",
6
6
  "module": "amtk-5.js",
7
7
  "main": "amtk-5.js",
8
8
  "exports": {
9
- "./ambient": "./amtk-5-ambient.d.ts",
10
- "./import": "./amtk-5-import.d.ts",
9
+ "./ambient": {
10
+ "types": "./amtk-5-ambient.d.ts",
11
+ "default": "./amtk-5-ambient.js"
12
+ },
13
+ "./import": {
14
+ "types": "./amtk-5-import.d.ts",
15
+ "default": "./amtk-5-import.js"
16
+ },
11
17
  ".": {
12
18
  "import": {
13
19
  "types": "./amtk-5.d.ts",
@@ -25,20 +31,20 @@
25
31
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit amtk-5.d.cts"
26
32
  },
27
33
  "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/pango-1.0": "^1.51.0-3.2.6",
41
- "@girs/xlib-2.0": "^2.0.0-3.2.6"
34
+ "@girs/atk-1.0": "^2.45.1-3.2.8",
35
+ "@girs/cairo-1.0": "^1.0.0-3.2.8",
36
+ "@girs/freetype2-2.0": "^2.0.0-3.2.8",
37
+ "@girs/gdk-3.0": "^3.24.39-3.2.8",
38
+ "@girs/gdkpixbuf-2.0": "^2.0.0-3.2.8",
39
+ "@girs/gio-2.0": "^2.77.0-3.2.8",
40
+ "@girs/gjs": "^3.2.8",
41
+ "@girs/glib-2.0": "^2.77.0-3.2.8",
42
+ "@girs/gmodule-2.0": "^2.0.0-3.2.8",
43
+ "@girs/gobject-2.0": "^2.77.0-3.2.8",
44
+ "@girs/gtk-3.0": "^3.24.39-3.2.8",
45
+ "@girs/harfbuzz-0.0": "^8.1.1-3.2.8",
46
+ "@girs/pango-1.0": "^1.51.0-3.2.8",
47
+ "@girs/xlib-2.0": "^2.0.0-3.2.8"
42
48
  },
43
49
  "devDependencies": {
44
50
  "typescript": "*"
@@ -55,7 +61,7 @@
55
61
  "license": "MIT",
56
62
  "repository": {
57
63
  "type": "git",
58
- "url": "git+https://github.com/gjsify/types.git"
64
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
59
65
  },
60
66
  "bugs": {
61
67
  "url": "https://github.com/gjsify/ts-for-gir/issues"