@girs/amtk-5 5.0.0-3.2.5 → 5.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 +1 -1
- package/amtk-5.d.cts +50 -26
- package/amtk-5.d.ts +50 -26
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
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.
|
|
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.7.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
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
|
|
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
|
|
146
|
-
export function shortcuts_section_new(title: string
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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().
|
|
@@ -398,6 +398,10 @@ export module ApplicationWindow {
|
|
|
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
|
|
401
405
|
}
|
|
402
406
|
|
|
403
407
|
}
|
|
@@ -410,6 +414,10 @@ export interface ApplicationWindow {
|
|
|
410
414
|
* The #GtkApplicationWindow.
|
|
411
415
|
*/
|
|
412
416
|
readonly application_window: Gtk.ApplicationWindow
|
|
417
|
+
/**
|
|
418
|
+
* The #GtkApplicationWindow.
|
|
419
|
+
*/
|
|
420
|
+
readonly applicationWindow: Gtk.ApplicationWindow
|
|
413
421
|
/**
|
|
414
422
|
* The #GtkStatusbar. %NULL by default.
|
|
415
423
|
*/
|
|
@@ -534,6 +542,10 @@ export module Factory {
|
|
|
534
542
|
* The default #AmtkFactoryFlags.
|
|
535
543
|
*/
|
|
536
544
|
default_flags?: FactoryFlags | null
|
|
545
|
+
/**
|
|
546
|
+
* The default #AmtkFactoryFlags.
|
|
547
|
+
*/
|
|
548
|
+
defaultFlags?: FactoryFlags | null
|
|
537
549
|
}
|
|
538
550
|
|
|
539
551
|
}
|
|
@@ -551,6 +563,10 @@ export interface Factory {
|
|
|
551
563
|
* The default #AmtkFactoryFlags.
|
|
552
564
|
*/
|
|
553
565
|
default_flags: FactoryFlags
|
|
566
|
+
/**
|
|
567
|
+
* The default #AmtkFactoryFlags.
|
|
568
|
+
*/
|
|
569
|
+
defaultFlags: FactoryFlags
|
|
554
570
|
|
|
555
571
|
// Own fields of Amtk-5.Amtk.Factory
|
|
556
572
|
|
|
@@ -568,7 +584,7 @@ export interface Factory {
|
|
|
568
584
|
* @param action_name an action name.
|
|
569
585
|
* @returns a new #GtkCheckMenuItem for @action_name.
|
|
570
586
|
*/
|
|
571
|
-
create_check_menu_item(action_name: string
|
|
587
|
+
create_check_menu_item(action_name: string): Gtk.Widget
|
|
572
588
|
/**
|
|
573
589
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
574
590
|
* `flags` argument instead.
|
|
@@ -582,14 +598,14 @@ export interface Factory {
|
|
|
582
598
|
* @param flags #AmtkFactoryFlags.
|
|
583
599
|
* @returns a new #GtkCheckMenuItem for @action_name.
|
|
584
600
|
*/
|
|
585
|
-
create_check_menu_item_full(action_name: string
|
|
601
|
+
create_check_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget
|
|
586
602
|
/**
|
|
587
603
|
* Calls amtk_factory_create_gmenu_item_full() with the
|
|
588
604
|
* #AmtkFactory:default-flags.
|
|
589
605
|
* @param action_name an action name.
|
|
590
606
|
* @returns a new #GMenuItem for @action_name.
|
|
591
607
|
*/
|
|
592
|
-
create_gmenu_item(action_name: string
|
|
608
|
+
create_gmenu_item(action_name: string): Gio.MenuItem
|
|
593
609
|
/**
|
|
594
610
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
595
611
|
* `flags` argument instead.
|
|
@@ -600,14 +616,14 @@ export interface Factory {
|
|
|
600
616
|
* @param flags #AmtkFactoryFlags.
|
|
601
617
|
* @returns a new #GMenuItem for @action_name.
|
|
602
618
|
*/
|
|
603
|
-
create_gmenu_item_full(action_name: string
|
|
619
|
+
create_gmenu_item_full(action_name: string, flags: FactoryFlags): Gio.MenuItem
|
|
604
620
|
/**
|
|
605
621
|
* Creates a new #GtkMenuItem for `action_name` with the
|
|
606
622
|
* #AmtkFactory:default-flags.
|
|
607
623
|
* @param action_name an action name.
|
|
608
624
|
* @returns a new #GtkMenuItem for @action_name.
|
|
609
625
|
*/
|
|
610
|
-
create_menu_item(action_name: string
|
|
626
|
+
create_menu_item(action_name: string): Gtk.Widget
|
|
611
627
|
/**
|
|
612
628
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
613
629
|
* `flags` argument instead.
|
|
@@ -615,7 +631,7 @@ export interface Factory {
|
|
|
615
631
|
* @param flags #AmtkFactoryFlags.
|
|
616
632
|
* @returns a new #GtkMenuItem for @action_name.
|
|
617
633
|
*/
|
|
618
|
-
create_menu_item_full(action_name: string
|
|
634
|
+
create_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget
|
|
619
635
|
/**
|
|
620
636
|
* Creates a new #GtkMenuToolButton for `action_name` with the
|
|
621
637
|
* #AmtkFactory:default-flags.
|
|
@@ -625,7 +641,7 @@ export interface Factory {
|
|
|
625
641
|
* @param action_name an action name.
|
|
626
642
|
* @returns a new #GtkMenuToolButton for @action_name.
|
|
627
643
|
*/
|
|
628
|
-
create_menu_tool_button(action_name: string
|
|
644
|
+
create_menu_tool_button(action_name: string): Gtk.MenuToolButton
|
|
629
645
|
/**
|
|
630
646
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
631
647
|
* `flags` argument instead.
|
|
@@ -636,14 +652,14 @@ export interface Factory {
|
|
|
636
652
|
* @param flags #AmtkFactoryFlags.
|
|
637
653
|
* @returns a new #GtkMenuToolButton for @action_name.
|
|
638
654
|
*/
|
|
639
|
-
create_menu_tool_button_full(action_name: string
|
|
655
|
+
create_menu_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.MenuToolButton
|
|
640
656
|
/**
|
|
641
657
|
* Calls amtk_factory_create_shortcut_full() with the
|
|
642
658
|
* #AmtkFactory:default-flags.
|
|
643
659
|
* @param action_name an action name.
|
|
644
660
|
* @returns a new #GtkShortcutsShortcut for @action_name.
|
|
645
661
|
*/
|
|
646
|
-
create_shortcut(action_name: string
|
|
662
|
+
create_shortcut(action_name: string): Gtk.Widget
|
|
647
663
|
/**
|
|
648
664
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
649
665
|
* `flags` argument instead.
|
|
@@ -670,7 +686,7 @@ export interface Factory {
|
|
|
670
686
|
* @param flags #AmtkFactoryFlags.
|
|
671
687
|
* @returns a new #GtkShortcutsShortcut for @action_name.
|
|
672
688
|
*/
|
|
673
|
-
create_shortcut_full(action_name: string
|
|
689
|
+
create_shortcut_full(action_name: string, flags: FactoryFlags): Gtk.Widget
|
|
674
690
|
/**
|
|
675
691
|
* Calls amtk_factory_create_simple_menu_full() with the
|
|
676
692
|
* #AmtkFactory:default-flags.
|
|
@@ -702,7 +718,7 @@ export interface Factory {
|
|
|
702
718
|
* @param action_name an action name.
|
|
703
719
|
* @returns a new #GtkToolButton for @action_name.
|
|
704
720
|
*/
|
|
705
|
-
create_tool_button(action_name: string
|
|
721
|
+
create_tool_button(action_name: string): Gtk.ToolItem
|
|
706
722
|
/**
|
|
707
723
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
708
724
|
* `flags` argument instead.
|
|
@@ -710,7 +726,7 @@ export interface Factory {
|
|
|
710
726
|
* @param flags #AmtkFactoryFlags.
|
|
711
727
|
* @returns a new #GtkToolButton for @action_name.
|
|
712
728
|
*/
|
|
713
|
-
create_tool_button_full(action_name: string
|
|
729
|
+
create_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.ToolItem
|
|
714
730
|
get_application(): Gtk.Application | null
|
|
715
731
|
get_default_flags(): FactoryFlags
|
|
716
732
|
/**
|
|
@@ -798,6 +814,10 @@ export module MenuShell {
|
|
|
798
814
|
* The #GtkMenuShell.
|
|
799
815
|
*/
|
|
800
816
|
menu_shell?: Gtk.MenuShell | null
|
|
817
|
+
/**
|
|
818
|
+
* The #GtkMenuShell.
|
|
819
|
+
*/
|
|
820
|
+
menuShell?: Gtk.MenuShell | null
|
|
801
821
|
}
|
|
802
822
|
|
|
803
823
|
}
|
|
@@ -810,6 +830,10 @@ export interface MenuShell {
|
|
|
810
830
|
* The #GtkMenuShell.
|
|
811
831
|
*/
|
|
812
832
|
readonly menu_shell: Gtk.MenuShell
|
|
833
|
+
/**
|
|
834
|
+
* The #GtkMenuShell.
|
|
835
|
+
*/
|
|
836
|
+
readonly menuShell: Gtk.MenuShell
|
|
813
837
|
|
|
814
838
|
// Own fields of Amtk-5.Amtk.MenuShell
|
|
815
839
|
|
|
@@ -915,7 +939,7 @@ export interface ActionInfo {
|
|
|
915
939
|
* name, see g_action_parse_detailed_name().
|
|
916
940
|
* @param action_name the action name.
|
|
917
941
|
*/
|
|
918
|
-
set_action_name(action_name: string
|
|
942
|
+
set_action_name(action_name: string): void
|
|
919
943
|
set_icon_name(icon_name: string | null): void
|
|
920
944
|
/**
|
|
921
945
|
* Sets the label with a mnemonic. To know how to encode the mnemonic, see the
|
|
@@ -988,28 +1012,28 @@ export interface ActionInfoEntry {
|
|
|
988
1012
|
* g_action_parse_detailed_name().
|
|
989
1013
|
* @field
|
|
990
1014
|
*/
|
|
991
|
-
action_name: string
|
|
1015
|
+
action_name: string
|
|
992
1016
|
/**
|
|
993
1017
|
* the icon name, or %NULL.
|
|
994
1018
|
* @field
|
|
995
1019
|
*/
|
|
996
|
-
icon_name: string
|
|
1020
|
+
icon_name: string
|
|
997
1021
|
/**
|
|
998
1022
|
* the label (i.e. a short description) with a mnemonic, or %NULL.
|
|
999
1023
|
* @field
|
|
1000
1024
|
*/
|
|
1001
|
-
label: string
|
|
1025
|
+
label: string
|
|
1002
1026
|
/**
|
|
1003
1027
|
* the accelerator, in the format understood by gtk_accelerator_parse().
|
|
1004
1028
|
* Or %NULL.
|
|
1005
1029
|
* @field
|
|
1006
1030
|
*/
|
|
1007
|
-
accel: string
|
|
1031
|
+
accel: string
|
|
1008
1032
|
/**
|
|
1009
1033
|
* the tooltip (i.e. a long description), or %NULL.
|
|
1010
1034
|
* @field
|
|
1011
1035
|
*/
|
|
1012
|
-
tooltip: string
|
|
1036
|
+
tooltip: string
|
|
1013
1037
|
}
|
|
1014
1038
|
|
|
1015
1039
|
/**
|
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
|
|
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
|
|
148
|
-
function shortcuts_section_new(title: string
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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().
|
|
@@ -400,6 +400,10 @@ module ApplicationWindow {
|
|
|
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
|
|
403
407
|
}
|
|
404
408
|
|
|
405
409
|
}
|
|
@@ -412,6 +416,10 @@ interface ApplicationWindow {
|
|
|
412
416
|
* The #GtkApplicationWindow.
|
|
413
417
|
*/
|
|
414
418
|
readonly application_window: Gtk.ApplicationWindow
|
|
419
|
+
/**
|
|
420
|
+
* The #GtkApplicationWindow.
|
|
421
|
+
*/
|
|
422
|
+
readonly applicationWindow: Gtk.ApplicationWindow
|
|
415
423
|
/**
|
|
416
424
|
* The #GtkStatusbar. %NULL by default.
|
|
417
425
|
*/
|
|
@@ -536,6 +544,10 @@ module Factory {
|
|
|
536
544
|
* The default #AmtkFactoryFlags.
|
|
537
545
|
*/
|
|
538
546
|
default_flags?: FactoryFlags | null
|
|
547
|
+
/**
|
|
548
|
+
* The default #AmtkFactoryFlags.
|
|
549
|
+
*/
|
|
550
|
+
defaultFlags?: FactoryFlags | null
|
|
539
551
|
}
|
|
540
552
|
|
|
541
553
|
}
|
|
@@ -553,6 +565,10 @@ interface Factory {
|
|
|
553
565
|
* The default #AmtkFactoryFlags.
|
|
554
566
|
*/
|
|
555
567
|
default_flags: FactoryFlags
|
|
568
|
+
/**
|
|
569
|
+
* The default #AmtkFactoryFlags.
|
|
570
|
+
*/
|
|
571
|
+
defaultFlags: FactoryFlags
|
|
556
572
|
|
|
557
573
|
// Own fields of Amtk-5.Amtk.Factory
|
|
558
574
|
|
|
@@ -570,7 +586,7 @@ interface Factory {
|
|
|
570
586
|
* @param action_name an action name.
|
|
571
587
|
* @returns a new #GtkCheckMenuItem for @action_name.
|
|
572
588
|
*/
|
|
573
|
-
create_check_menu_item(action_name: string
|
|
589
|
+
create_check_menu_item(action_name: string): Gtk.Widget
|
|
574
590
|
/**
|
|
575
591
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
576
592
|
* `flags` argument instead.
|
|
@@ -584,14 +600,14 @@ interface Factory {
|
|
|
584
600
|
* @param flags #AmtkFactoryFlags.
|
|
585
601
|
* @returns a new #GtkCheckMenuItem for @action_name.
|
|
586
602
|
*/
|
|
587
|
-
create_check_menu_item_full(action_name: string
|
|
603
|
+
create_check_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget
|
|
588
604
|
/**
|
|
589
605
|
* Calls amtk_factory_create_gmenu_item_full() with the
|
|
590
606
|
* #AmtkFactory:default-flags.
|
|
591
607
|
* @param action_name an action name.
|
|
592
608
|
* @returns a new #GMenuItem for @action_name.
|
|
593
609
|
*/
|
|
594
|
-
create_gmenu_item(action_name: string
|
|
610
|
+
create_gmenu_item(action_name: string): Gio.MenuItem
|
|
595
611
|
/**
|
|
596
612
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
597
613
|
* `flags` argument instead.
|
|
@@ -602,14 +618,14 @@ interface Factory {
|
|
|
602
618
|
* @param flags #AmtkFactoryFlags.
|
|
603
619
|
* @returns a new #GMenuItem for @action_name.
|
|
604
620
|
*/
|
|
605
|
-
create_gmenu_item_full(action_name: string
|
|
621
|
+
create_gmenu_item_full(action_name: string, flags: FactoryFlags): Gio.MenuItem
|
|
606
622
|
/**
|
|
607
623
|
* Creates a new #GtkMenuItem for `action_name` with the
|
|
608
624
|
* #AmtkFactory:default-flags.
|
|
609
625
|
* @param action_name an action name.
|
|
610
626
|
* @returns a new #GtkMenuItem for @action_name.
|
|
611
627
|
*/
|
|
612
|
-
create_menu_item(action_name: string
|
|
628
|
+
create_menu_item(action_name: string): Gtk.Widget
|
|
613
629
|
/**
|
|
614
630
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
615
631
|
* `flags` argument instead.
|
|
@@ -617,7 +633,7 @@ interface Factory {
|
|
|
617
633
|
* @param flags #AmtkFactoryFlags.
|
|
618
634
|
* @returns a new #GtkMenuItem for @action_name.
|
|
619
635
|
*/
|
|
620
|
-
create_menu_item_full(action_name: string
|
|
636
|
+
create_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget
|
|
621
637
|
/**
|
|
622
638
|
* Creates a new #GtkMenuToolButton for `action_name` with the
|
|
623
639
|
* #AmtkFactory:default-flags.
|
|
@@ -627,7 +643,7 @@ interface Factory {
|
|
|
627
643
|
* @param action_name an action name.
|
|
628
644
|
* @returns a new #GtkMenuToolButton for @action_name.
|
|
629
645
|
*/
|
|
630
|
-
create_menu_tool_button(action_name: string
|
|
646
|
+
create_menu_tool_button(action_name: string): Gtk.MenuToolButton
|
|
631
647
|
/**
|
|
632
648
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
633
649
|
* `flags` argument instead.
|
|
@@ -638,14 +654,14 @@ interface Factory {
|
|
|
638
654
|
* @param flags #AmtkFactoryFlags.
|
|
639
655
|
* @returns a new #GtkMenuToolButton for @action_name.
|
|
640
656
|
*/
|
|
641
|
-
create_menu_tool_button_full(action_name: string
|
|
657
|
+
create_menu_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.MenuToolButton
|
|
642
658
|
/**
|
|
643
659
|
* Calls amtk_factory_create_shortcut_full() with the
|
|
644
660
|
* #AmtkFactory:default-flags.
|
|
645
661
|
* @param action_name an action name.
|
|
646
662
|
* @returns a new #GtkShortcutsShortcut for @action_name.
|
|
647
663
|
*/
|
|
648
|
-
create_shortcut(action_name: string
|
|
664
|
+
create_shortcut(action_name: string): Gtk.Widget
|
|
649
665
|
/**
|
|
650
666
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
651
667
|
* `flags` argument instead.
|
|
@@ -672,7 +688,7 @@ interface Factory {
|
|
|
672
688
|
* @param flags #AmtkFactoryFlags.
|
|
673
689
|
* @returns a new #GtkShortcutsShortcut for @action_name.
|
|
674
690
|
*/
|
|
675
|
-
create_shortcut_full(action_name: string
|
|
691
|
+
create_shortcut_full(action_name: string, flags: FactoryFlags): Gtk.Widget
|
|
676
692
|
/**
|
|
677
693
|
* Calls amtk_factory_create_simple_menu_full() with the
|
|
678
694
|
* #AmtkFactory:default-flags.
|
|
@@ -704,7 +720,7 @@ interface Factory {
|
|
|
704
720
|
* @param action_name an action name.
|
|
705
721
|
* @returns a new #GtkToolButton for @action_name.
|
|
706
722
|
*/
|
|
707
|
-
create_tool_button(action_name: string
|
|
723
|
+
create_tool_button(action_name: string): Gtk.ToolItem
|
|
708
724
|
/**
|
|
709
725
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
710
726
|
* `flags` argument instead.
|
|
@@ -712,7 +728,7 @@ interface Factory {
|
|
|
712
728
|
* @param flags #AmtkFactoryFlags.
|
|
713
729
|
* @returns a new #GtkToolButton for @action_name.
|
|
714
730
|
*/
|
|
715
|
-
create_tool_button_full(action_name: string
|
|
731
|
+
create_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.ToolItem
|
|
716
732
|
get_application(): Gtk.Application | null
|
|
717
733
|
get_default_flags(): FactoryFlags
|
|
718
734
|
/**
|
|
@@ -800,6 +816,10 @@ module MenuShell {
|
|
|
800
816
|
* The #GtkMenuShell.
|
|
801
817
|
*/
|
|
802
818
|
menu_shell?: Gtk.MenuShell | null
|
|
819
|
+
/**
|
|
820
|
+
* The #GtkMenuShell.
|
|
821
|
+
*/
|
|
822
|
+
menuShell?: Gtk.MenuShell | null
|
|
803
823
|
}
|
|
804
824
|
|
|
805
825
|
}
|
|
@@ -812,6 +832,10 @@ interface MenuShell {
|
|
|
812
832
|
* The #GtkMenuShell.
|
|
813
833
|
*/
|
|
814
834
|
readonly menu_shell: Gtk.MenuShell
|
|
835
|
+
/**
|
|
836
|
+
* The #GtkMenuShell.
|
|
837
|
+
*/
|
|
838
|
+
readonly menuShell: Gtk.MenuShell
|
|
815
839
|
|
|
816
840
|
// Own fields of Amtk-5.Amtk.MenuShell
|
|
817
841
|
|
|
@@ -917,7 +941,7 @@ interface ActionInfo {
|
|
|
917
941
|
* name, see g_action_parse_detailed_name().
|
|
918
942
|
* @param action_name the action name.
|
|
919
943
|
*/
|
|
920
|
-
set_action_name(action_name: string
|
|
944
|
+
set_action_name(action_name: string): void
|
|
921
945
|
set_icon_name(icon_name: string | null): void
|
|
922
946
|
/**
|
|
923
947
|
* Sets the label with a mnemonic. To know how to encode the mnemonic, see the
|
|
@@ -990,28 +1014,28 @@ interface ActionInfoEntry {
|
|
|
990
1014
|
* g_action_parse_detailed_name().
|
|
991
1015
|
* @field
|
|
992
1016
|
*/
|
|
993
|
-
action_name: string
|
|
1017
|
+
action_name: string
|
|
994
1018
|
/**
|
|
995
1019
|
* the icon name, or %NULL.
|
|
996
1020
|
* @field
|
|
997
1021
|
*/
|
|
998
|
-
icon_name: string
|
|
1022
|
+
icon_name: string
|
|
999
1023
|
/**
|
|
1000
1024
|
* the label (i.e. a short description) with a mnemonic, or %NULL.
|
|
1001
1025
|
* @field
|
|
1002
1026
|
*/
|
|
1003
|
-
label: string
|
|
1027
|
+
label: string
|
|
1004
1028
|
/**
|
|
1005
1029
|
* the accelerator, in the format understood by gtk_accelerator_parse().
|
|
1006
1030
|
* Or %NULL.
|
|
1007
1031
|
* @field
|
|
1008
1032
|
*/
|
|
1009
|
-
accel: string
|
|
1033
|
+
accel: string
|
|
1010
1034
|
/**
|
|
1011
1035
|
* the tooltip (i.e. a long description), or %NULL.
|
|
1012
1036
|
* @field
|
|
1013
1037
|
*/
|
|
1014
|
-
tooltip: string
|
|
1038
|
+
tooltip: string
|
|
1015
1039
|
}
|
|
1016
1040
|
|
|
1017
1041
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/amtk-5",
|
|
3
|
-
"version": "5.0.0-3.2.
|
|
3
|
+
"version": "5.0.0-3.2.7",
|
|
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",
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit amtk-5.d.cts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girs/atk-1.0": "^2.50.0-3.2.
|
|
29
|
-
"@girs/cairo-1.0": "^1.0.0-3.2.
|
|
30
|
-
"@girs/freetype2-2.0": "^2.0.0-3.2.
|
|
31
|
-
"@girs/gdk-3.0": "^3.24.38-3.2.
|
|
32
|
-
"@girs/gdkpixbuf-2.0": "^2.0.0-3.2.
|
|
33
|
-
"@girs/gio-2.0": "^2.78.0-3.2.
|
|
34
|
-
"@girs/gjs": "^3.2.
|
|
35
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
36
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
37
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
38
|
-
"@girs/gtk-3.0": "^3.24.38-3.2.
|
|
39
|
-
"@girs/harfbuzz-0.0": "^8.2.1-3.2.
|
|
40
|
-
"@girs/pango-1.0": "^1.51.0-3.2.
|
|
41
|
-
"@girs/xlib-2.0": "^2.0.0-3.2.
|
|
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": "*"
|