@girs/amtk-5 5.0.0-3.2.6 → 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 +26 -26
- package/amtk-5.d.ts +26 -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().
|
|
@@ -584,7 +584,7 @@ export interface Factory {
|
|
|
584
584
|
* @param action_name an action name.
|
|
585
585
|
* @returns a new #GtkCheckMenuItem for @action_name.
|
|
586
586
|
*/
|
|
587
|
-
create_check_menu_item(action_name: string
|
|
587
|
+
create_check_menu_item(action_name: string): Gtk.Widget
|
|
588
588
|
/**
|
|
589
589
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
590
590
|
* `flags` argument instead.
|
|
@@ -598,14 +598,14 @@ export interface Factory {
|
|
|
598
598
|
* @param flags #AmtkFactoryFlags.
|
|
599
599
|
* @returns a new #GtkCheckMenuItem for @action_name.
|
|
600
600
|
*/
|
|
601
|
-
create_check_menu_item_full(action_name: string
|
|
601
|
+
create_check_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget
|
|
602
602
|
/**
|
|
603
603
|
* Calls amtk_factory_create_gmenu_item_full() with the
|
|
604
604
|
* #AmtkFactory:default-flags.
|
|
605
605
|
* @param action_name an action name.
|
|
606
606
|
* @returns a new #GMenuItem for @action_name.
|
|
607
607
|
*/
|
|
608
|
-
create_gmenu_item(action_name: string
|
|
608
|
+
create_gmenu_item(action_name: string): Gio.MenuItem
|
|
609
609
|
/**
|
|
610
610
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
611
611
|
* `flags` argument instead.
|
|
@@ -616,14 +616,14 @@ export interface Factory {
|
|
|
616
616
|
* @param flags #AmtkFactoryFlags.
|
|
617
617
|
* @returns a new #GMenuItem for @action_name.
|
|
618
618
|
*/
|
|
619
|
-
create_gmenu_item_full(action_name: string
|
|
619
|
+
create_gmenu_item_full(action_name: string, flags: FactoryFlags): Gio.MenuItem
|
|
620
620
|
/**
|
|
621
621
|
* Creates a new #GtkMenuItem for `action_name` with the
|
|
622
622
|
* #AmtkFactory:default-flags.
|
|
623
623
|
* @param action_name an action name.
|
|
624
624
|
* @returns a new #GtkMenuItem for @action_name.
|
|
625
625
|
*/
|
|
626
|
-
create_menu_item(action_name: string
|
|
626
|
+
create_menu_item(action_name: string): Gtk.Widget
|
|
627
627
|
/**
|
|
628
628
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
629
629
|
* `flags` argument instead.
|
|
@@ -631,7 +631,7 @@ export interface Factory {
|
|
|
631
631
|
* @param flags #AmtkFactoryFlags.
|
|
632
632
|
* @returns a new #GtkMenuItem for @action_name.
|
|
633
633
|
*/
|
|
634
|
-
create_menu_item_full(action_name: string
|
|
634
|
+
create_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget
|
|
635
635
|
/**
|
|
636
636
|
* Creates a new #GtkMenuToolButton for `action_name` with the
|
|
637
637
|
* #AmtkFactory:default-flags.
|
|
@@ -641,7 +641,7 @@ export interface Factory {
|
|
|
641
641
|
* @param action_name an action name.
|
|
642
642
|
* @returns a new #GtkMenuToolButton for @action_name.
|
|
643
643
|
*/
|
|
644
|
-
create_menu_tool_button(action_name: string
|
|
644
|
+
create_menu_tool_button(action_name: string): Gtk.MenuToolButton
|
|
645
645
|
/**
|
|
646
646
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
647
647
|
* `flags` argument instead.
|
|
@@ -652,14 +652,14 @@ export interface Factory {
|
|
|
652
652
|
* @param flags #AmtkFactoryFlags.
|
|
653
653
|
* @returns a new #GtkMenuToolButton for @action_name.
|
|
654
654
|
*/
|
|
655
|
-
create_menu_tool_button_full(action_name: string
|
|
655
|
+
create_menu_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.MenuToolButton
|
|
656
656
|
/**
|
|
657
657
|
* Calls amtk_factory_create_shortcut_full() with the
|
|
658
658
|
* #AmtkFactory:default-flags.
|
|
659
659
|
* @param action_name an action name.
|
|
660
660
|
* @returns a new #GtkShortcutsShortcut for @action_name.
|
|
661
661
|
*/
|
|
662
|
-
create_shortcut(action_name: string
|
|
662
|
+
create_shortcut(action_name: string): Gtk.Widget
|
|
663
663
|
/**
|
|
664
664
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
665
665
|
* `flags` argument instead.
|
|
@@ -686,7 +686,7 @@ export interface Factory {
|
|
|
686
686
|
* @param flags #AmtkFactoryFlags.
|
|
687
687
|
* @returns a new #GtkShortcutsShortcut for @action_name.
|
|
688
688
|
*/
|
|
689
|
-
create_shortcut_full(action_name: string
|
|
689
|
+
create_shortcut_full(action_name: string, flags: FactoryFlags): Gtk.Widget
|
|
690
690
|
/**
|
|
691
691
|
* Calls amtk_factory_create_simple_menu_full() with the
|
|
692
692
|
* #AmtkFactory:default-flags.
|
|
@@ -718,7 +718,7 @@ export interface Factory {
|
|
|
718
718
|
* @param action_name an action name.
|
|
719
719
|
* @returns a new #GtkToolButton for @action_name.
|
|
720
720
|
*/
|
|
721
|
-
create_tool_button(action_name: string
|
|
721
|
+
create_tool_button(action_name: string): Gtk.ToolItem
|
|
722
722
|
/**
|
|
723
723
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
724
724
|
* `flags` argument instead.
|
|
@@ -726,7 +726,7 @@ export interface Factory {
|
|
|
726
726
|
* @param flags #AmtkFactoryFlags.
|
|
727
727
|
* @returns a new #GtkToolButton for @action_name.
|
|
728
728
|
*/
|
|
729
|
-
create_tool_button_full(action_name: string
|
|
729
|
+
create_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.ToolItem
|
|
730
730
|
get_application(): Gtk.Application | null
|
|
731
731
|
get_default_flags(): FactoryFlags
|
|
732
732
|
/**
|
|
@@ -939,7 +939,7 @@ export interface ActionInfo {
|
|
|
939
939
|
* name, see g_action_parse_detailed_name().
|
|
940
940
|
* @param action_name the action name.
|
|
941
941
|
*/
|
|
942
|
-
set_action_name(action_name: string
|
|
942
|
+
set_action_name(action_name: string): void
|
|
943
943
|
set_icon_name(icon_name: string | null): void
|
|
944
944
|
/**
|
|
945
945
|
* Sets the label with a mnemonic. To know how to encode the mnemonic, see the
|
|
@@ -1012,28 +1012,28 @@ export interface ActionInfoEntry {
|
|
|
1012
1012
|
* g_action_parse_detailed_name().
|
|
1013
1013
|
* @field
|
|
1014
1014
|
*/
|
|
1015
|
-
action_name: string
|
|
1015
|
+
action_name: string
|
|
1016
1016
|
/**
|
|
1017
1017
|
* the icon name, or %NULL.
|
|
1018
1018
|
* @field
|
|
1019
1019
|
*/
|
|
1020
|
-
icon_name: string
|
|
1020
|
+
icon_name: string
|
|
1021
1021
|
/**
|
|
1022
1022
|
* the label (i.e. a short description) with a mnemonic, or %NULL.
|
|
1023
1023
|
* @field
|
|
1024
1024
|
*/
|
|
1025
|
-
label: string
|
|
1025
|
+
label: string
|
|
1026
1026
|
/**
|
|
1027
1027
|
* the accelerator, in the format understood by gtk_accelerator_parse().
|
|
1028
1028
|
* Or %NULL.
|
|
1029
1029
|
* @field
|
|
1030
1030
|
*/
|
|
1031
|
-
accel: string
|
|
1031
|
+
accel: string
|
|
1032
1032
|
/**
|
|
1033
1033
|
* the tooltip (i.e. a long description), or %NULL.
|
|
1034
1034
|
* @field
|
|
1035
1035
|
*/
|
|
1036
|
-
tooltip: string
|
|
1036
|
+
tooltip: string
|
|
1037
1037
|
}
|
|
1038
1038
|
|
|
1039
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().
|
|
@@ -586,7 +586,7 @@ interface Factory {
|
|
|
586
586
|
* @param action_name an action name.
|
|
587
587
|
* @returns a new #GtkCheckMenuItem for @action_name.
|
|
588
588
|
*/
|
|
589
|
-
create_check_menu_item(action_name: string
|
|
589
|
+
create_check_menu_item(action_name: string): Gtk.Widget
|
|
590
590
|
/**
|
|
591
591
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
592
592
|
* `flags` argument instead.
|
|
@@ -600,14 +600,14 @@ interface Factory {
|
|
|
600
600
|
* @param flags #AmtkFactoryFlags.
|
|
601
601
|
* @returns a new #GtkCheckMenuItem for @action_name.
|
|
602
602
|
*/
|
|
603
|
-
create_check_menu_item_full(action_name: string
|
|
603
|
+
create_check_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget
|
|
604
604
|
/**
|
|
605
605
|
* Calls amtk_factory_create_gmenu_item_full() with the
|
|
606
606
|
* #AmtkFactory:default-flags.
|
|
607
607
|
* @param action_name an action name.
|
|
608
608
|
* @returns a new #GMenuItem for @action_name.
|
|
609
609
|
*/
|
|
610
|
-
create_gmenu_item(action_name: string
|
|
610
|
+
create_gmenu_item(action_name: string): Gio.MenuItem
|
|
611
611
|
/**
|
|
612
612
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
613
613
|
* `flags` argument instead.
|
|
@@ -618,14 +618,14 @@ interface Factory {
|
|
|
618
618
|
* @param flags #AmtkFactoryFlags.
|
|
619
619
|
* @returns a new #GMenuItem for @action_name.
|
|
620
620
|
*/
|
|
621
|
-
create_gmenu_item_full(action_name: string
|
|
621
|
+
create_gmenu_item_full(action_name: string, flags: FactoryFlags): Gio.MenuItem
|
|
622
622
|
/**
|
|
623
623
|
* Creates a new #GtkMenuItem for `action_name` with the
|
|
624
624
|
* #AmtkFactory:default-flags.
|
|
625
625
|
* @param action_name an action name.
|
|
626
626
|
* @returns a new #GtkMenuItem for @action_name.
|
|
627
627
|
*/
|
|
628
|
-
create_menu_item(action_name: string
|
|
628
|
+
create_menu_item(action_name: string): Gtk.Widget
|
|
629
629
|
/**
|
|
630
630
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
631
631
|
* `flags` argument instead.
|
|
@@ -633,7 +633,7 @@ interface Factory {
|
|
|
633
633
|
* @param flags #AmtkFactoryFlags.
|
|
634
634
|
* @returns a new #GtkMenuItem for @action_name.
|
|
635
635
|
*/
|
|
636
|
-
create_menu_item_full(action_name: string
|
|
636
|
+
create_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget
|
|
637
637
|
/**
|
|
638
638
|
* Creates a new #GtkMenuToolButton for `action_name` with the
|
|
639
639
|
* #AmtkFactory:default-flags.
|
|
@@ -643,7 +643,7 @@ interface Factory {
|
|
|
643
643
|
* @param action_name an action name.
|
|
644
644
|
* @returns a new #GtkMenuToolButton for @action_name.
|
|
645
645
|
*/
|
|
646
|
-
create_menu_tool_button(action_name: string
|
|
646
|
+
create_menu_tool_button(action_name: string): Gtk.MenuToolButton
|
|
647
647
|
/**
|
|
648
648
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
649
649
|
* `flags` argument instead.
|
|
@@ -654,14 +654,14 @@ interface Factory {
|
|
|
654
654
|
* @param flags #AmtkFactoryFlags.
|
|
655
655
|
* @returns a new #GtkMenuToolButton for @action_name.
|
|
656
656
|
*/
|
|
657
|
-
create_menu_tool_button_full(action_name: string
|
|
657
|
+
create_menu_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.MenuToolButton
|
|
658
658
|
/**
|
|
659
659
|
* Calls amtk_factory_create_shortcut_full() with the
|
|
660
660
|
* #AmtkFactory:default-flags.
|
|
661
661
|
* @param action_name an action name.
|
|
662
662
|
* @returns a new #GtkShortcutsShortcut for @action_name.
|
|
663
663
|
*/
|
|
664
|
-
create_shortcut(action_name: string
|
|
664
|
+
create_shortcut(action_name: string): Gtk.Widget
|
|
665
665
|
/**
|
|
666
666
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
667
667
|
* `flags` argument instead.
|
|
@@ -688,7 +688,7 @@ interface Factory {
|
|
|
688
688
|
* @param flags #AmtkFactoryFlags.
|
|
689
689
|
* @returns a new #GtkShortcutsShortcut for @action_name.
|
|
690
690
|
*/
|
|
691
|
-
create_shortcut_full(action_name: string
|
|
691
|
+
create_shortcut_full(action_name: string, flags: FactoryFlags): Gtk.Widget
|
|
692
692
|
/**
|
|
693
693
|
* Calls amtk_factory_create_simple_menu_full() with the
|
|
694
694
|
* #AmtkFactory:default-flags.
|
|
@@ -720,7 +720,7 @@ interface Factory {
|
|
|
720
720
|
* @param action_name an action name.
|
|
721
721
|
* @returns a new #GtkToolButton for @action_name.
|
|
722
722
|
*/
|
|
723
|
-
create_tool_button(action_name: string
|
|
723
|
+
create_tool_button(action_name: string): Gtk.ToolItem
|
|
724
724
|
/**
|
|
725
725
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
726
726
|
* `flags` argument instead.
|
|
@@ -728,7 +728,7 @@ interface Factory {
|
|
|
728
728
|
* @param flags #AmtkFactoryFlags.
|
|
729
729
|
* @returns a new #GtkToolButton for @action_name.
|
|
730
730
|
*/
|
|
731
|
-
create_tool_button_full(action_name: string
|
|
731
|
+
create_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.ToolItem
|
|
732
732
|
get_application(): Gtk.Application | null
|
|
733
733
|
get_default_flags(): FactoryFlags
|
|
734
734
|
/**
|
|
@@ -941,7 +941,7 @@ interface ActionInfo {
|
|
|
941
941
|
* name, see g_action_parse_detailed_name().
|
|
942
942
|
* @param action_name the action name.
|
|
943
943
|
*/
|
|
944
|
-
set_action_name(action_name: string
|
|
944
|
+
set_action_name(action_name: string): void
|
|
945
945
|
set_icon_name(icon_name: string | null): void
|
|
946
946
|
/**
|
|
947
947
|
* Sets the label with a mnemonic. To know how to encode the mnemonic, see the
|
|
@@ -1014,28 +1014,28 @@ interface ActionInfoEntry {
|
|
|
1014
1014
|
* g_action_parse_detailed_name().
|
|
1015
1015
|
* @field
|
|
1016
1016
|
*/
|
|
1017
|
-
action_name: string
|
|
1017
|
+
action_name: string
|
|
1018
1018
|
/**
|
|
1019
1019
|
* the icon name, or %NULL.
|
|
1020
1020
|
* @field
|
|
1021
1021
|
*/
|
|
1022
|
-
icon_name: string
|
|
1022
|
+
icon_name: string
|
|
1023
1023
|
/**
|
|
1024
1024
|
* the label (i.e. a short description) with a mnemonic, or %NULL.
|
|
1025
1025
|
* @field
|
|
1026
1026
|
*/
|
|
1027
|
-
label: string
|
|
1027
|
+
label: string
|
|
1028
1028
|
/**
|
|
1029
1029
|
* the accelerator, in the format understood by gtk_accelerator_parse().
|
|
1030
1030
|
* Or %NULL.
|
|
1031
1031
|
* @field
|
|
1032
1032
|
*/
|
|
1033
|
-
accel: string
|
|
1033
|
+
accel: string
|
|
1034
1034
|
/**
|
|
1035
1035
|
* the tooltip (i.e. a long description), or %NULL.
|
|
1036
1036
|
* @field
|
|
1037
1037
|
*/
|
|
1038
|
-
tooltip: string
|
|
1038
|
+
tooltip: string
|
|
1039
1039
|
}
|
|
1040
1040
|
|
|
1041
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": "*"
|