@girs/amtk-4 4.0.0-3.2.6 → 4.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-4.d.cts +19 -19
- package/amtk-4.d.ts +19 -19
- 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-4, generated from library version 4.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.
|
|
8
|
+
GJS TypeScript type definitions for Amtk-4, generated from library version 4.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-4.d.cts
CHANGED
|
@@ -118,7 +118,7 @@ export function menu_item_get_long_description(menu_item: Gtk.MenuItem): string
|
|
|
118
118
|
* @param item a #GtkMenuItem.
|
|
119
119
|
* @param icon_name an icon name.
|
|
120
120
|
*/
|
|
121
|
-
export function menu_item_set_icon_name(item: Gtk.MenuItem, icon_name: string
|
|
121
|
+
export function menu_item_set_icon_name(item: Gtk.MenuItem, icon_name: string): void
|
|
122
122
|
/**
|
|
123
123
|
* Sets the long description of `menu_item`. A possible use-case is to display it
|
|
124
124
|
* in a #GtkStatusbar, or as a tooltip.
|
|
@@ -157,7 +157,7 @@ export function menu_item_set_long_description(menu_item: Gtk.MenuItem, long_des
|
|
|
157
157
|
* @param gtk_action_group a #GtkActionGroup.
|
|
158
158
|
* @param gtk_action_name a #GtkAction name present in `gtk_action_group`.
|
|
159
159
|
*/
|
|
160
|
-
export function utils_bind_g_action_to_gtk_action(g_action_map: Gio.ActionMap, detailed_g_action_name_without_prefix: string
|
|
160
|
+
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
|
|
161
161
|
/**
|
|
162
162
|
* Utility function to be able to port an application gradually to #GAction and
|
|
163
163
|
* #AmtkActionInfo, when #GtkUIManager is still used. This function goes one
|
|
@@ -182,7 +182,7 @@ export function utils_bind_g_action_to_gtk_action(g_action_map: Gio.ActionMap, d
|
|
|
182
182
|
* @param gtk_action_group a #GtkActionGroup.
|
|
183
183
|
* @param gtk_action_name the name of the #GtkAction to create and add to `gtk_action_group`.
|
|
184
184
|
*/
|
|
185
|
-
export function utils_create_gtk_action(g_action_map: Gio.ActionMap, detailed_g_action_name_with_prefix: string
|
|
185
|
+
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
|
|
186
186
|
/**
|
|
187
187
|
* Gets the URI of `item`. `item` must be a child of `menu`. `menu` must be a
|
|
188
188
|
* #GtkRecentChooserMenu.
|
|
@@ -213,7 +213,7 @@ export interface ActionInfoCentralStore {
|
|
|
213
213
|
|
|
214
214
|
// Owm methods of Amtk-4.Amtk.ActionInfoCentralStore
|
|
215
215
|
|
|
216
|
-
lookup(action_name: string
|
|
216
|
+
lookup(action_name: string): ActionInfo
|
|
217
217
|
|
|
218
218
|
// Class property signals of Amtk-4.Amtk.ActionInfoCentralStore
|
|
219
219
|
|
|
@@ -284,7 +284,7 @@ export interface ActionInfoStore {
|
|
|
284
284
|
* by a library, to easily see which actions are not used by the application.
|
|
285
285
|
*/
|
|
286
286
|
check_all_used(): void
|
|
287
|
-
lookup(action_name: string
|
|
287
|
+
lookup(action_name: string): ActionInfo
|
|
288
288
|
|
|
289
289
|
// Class property signals of Amtk-4.Amtk.ActionInfoStore
|
|
290
290
|
|
|
@@ -504,7 +504,7 @@ export interface Factory {
|
|
|
504
504
|
* @param action_name an action name.
|
|
505
505
|
* @returns a new #GtkCheckMenuItem for @action_name.
|
|
506
506
|
*/
|
|
507
|
-
create_check_menu_item(action_name: string
|
|
507
|
+
create_check_menu_item(action_name: string): Gtk.Widget
|
|
508
508
|
/**
|
|
509
509
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
510
510
|
* `flags` argument instead.
|
|
@@ -518,14 +518,14 @@ export interface Factory {
|
|
|
518
518
|
* @param flags #AmtkFactoryFlags.
|
|
519
519
|
* @returns a new #GtkCheckMenuItem for @action_name.
|
|
520
520
|
*/
|
|
521
|
-
create_check_menu_item_full(action_name: string
|
|
521
|
+
create_check_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget
|
|
522
522
|
/**
|
|
523
523
|
* Creates a new #GtkMenuItem for `action_name` with the
|
|
524
524
|
* #AmtkFactory:default-flags.
|
|
525
525
|
* @param action_name an action name.
|
|
526
526
|
* @returns a new #GtkMenuItem for @action_name.
|
|
527
527
|
*/
|
|
528
|
-
create_menu_item(action_name: string
|
|
528
|
+
create_menu_item(action_name: string): Gtk.Widget
|
|
529
529
|
/**
|
|
530
530
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
531
531
|
* `flags` argument instead.
|
|
@@ -533,7 +533,7 @@ export interface Factory {
|
|
|
533
533
|
* @param flags #AmtkFactoryFlags.
|
|
534
534
|
* @returns a new #GtkMenuItem for @action_name.
|
|
535
535
|
*/
|
|
536
|
-
create_menu_item_full(action_name: string
|
|
536
|
+
create_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget
|
|
537
537
|
/**
|
|
538
538
|
* Creates a new #GtkMenuToolButton for `action_name` with the
|
|
539
539
|
* #AmtkFactory:default-flags.
|
|
@@ -543,7 +543,7 @@ export interface Factory {
|
|
|
543
543
|
* @param action_name an action name.
|
|
544
544
|
* @returns a new #GtkMenuToolButton for @action_name.
|
|
545
545
|
*/
|
|
546
|
-
create_menu_tool_button(action_name: string
|
|
546
|
+
create_menu_tool_button(action_name: string): Gtk.MenuToolButton
|
|
547
547
|
/**
|
|
548
548
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
549
549
|
* `flags` argument instead.
|
|
@@ -554,14 +554,14 @@ export interface Factory {
|
|
|
554
554
|
* @param flags #AmtkFactoryFlags.
|
|
555
555
|
* @returns a new #GtkMenuToolButton for @action_name.
|
|
556
556
|
*/
|
|
557
|
-
create_menu_tool_button_full(action_name: string
|
|
557
|
+
create_menu_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.MenuToolButton
|
|
558
558
|
/**
|
|
559
559
|
* Creates a new #GtkToolButton for `action_name` with the
|
|
560
560
|
* #AmtkFactory:default-flags.
|
|
561
561
|
* @param action_name an action name.
|
|
562
562
|
* @returns a new #GtkToolButton for @action_name.
|
|
563
563
|
*/
|
|
564
|
-
create_tool_button(action_name: string
|
|
564
|
+
create_tool_button(action_name: string): Gtk.ToolItem
|
|
565
565
|
/**
|
|
566
566
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
567
567
|
* `flags` argument instead.
|
|
@@ -569,7 +569,7 @@ export interface Factory {
|
|
|
569
569
|
* @param flags #AmtkFactoryFlags.
|
|
570
570
|
* @returns a new #GtkToolButton for @action_name.
|
|
571
571
|
*/
|
|
572
|
-
create_tool_button_full(action_name: string
|
|
572
|
+
create_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.ToolItem
|
|
573
573
|
get_application(): Gtk.Application | null
|
|
574
574
|
get_default_flags(): FactoryFlags
|
|
575
575
|
/**
|
|
@@ -780,7 +780,7 @@ export interface ActionInfo {
|
|
|
780
780
|
* Sets the action name, for example `"win.save"`.
|
|
781
781
|
* @param action_name the action name.
|
|
782
782
|
*/
|
|
783
|
-
set_action_name(action_name: string
|
|
783
|
+
set_action_name(action_name: string): void
|
|
784
784
|
set_icon_name(icon_name: string | null): void
|
|
785
785
|
/**
|
|
786
786
|
* Sets the label with a mnemonic.
|
|
@@ -851,28 +851,28 @@ export interface ActionInfoEntry {
|
|
|
851
851
|
* the action name.
|
|
852
852
|
* @field
|
|
853
853
|
*/
|
|
854
|
-
action_name: string
|
|
854
|
+
action_name: string
|
|
855
855
|
/**
|
|
856
856
|
* the icon name, or %NULL.
|
|
857
857
|
* @field
|
|
858
858
|
*/
|
|
859
|
-
icon_name: string
|
|
859
|
+
icon_name: string
|
|
860
860
|
/**
|
|
861
861
|
* the label (i.e. a short description) with a mnemonic, or %NULL.
|
|
862
862
|
* @field
|
|
863
863
|
*/
|
|
864
|
-
label: string
|
|
864
|
+
label: string
|
|
865
865
|
/**
|
|
866
866
|
* the accelerator, in the format understood by gtk_accelerator_parse().
|
|
867
867
|
* Or %NULL.
|
|
868
868
|
* @field
|
|
869
869
|
*/
|
|
870
|
-
accel: string
|
|
870
|
+
accel: string
|
|
871
871
|
/**
|
|
872
872
|
* the tooltip (i.e. a long description), or %NULL.
|
|
873
873
|
* @field
|
|
874
874
|
*/
|
|
875
|
-
tooltip: string
|
|
875
|
+
tooltip: string
|
|
876
876
|
}
|
|
877
877
|
|
|
878
878
|
/**
|
package/amtk-4.d.ts
CHANGED
|
@@ -120,7 +120,7 @@ function menu_item_get_long_description(menu_item: Gtk.MenuItem): string | null
|
|
|
120
120
|
* @param item a #GtkMenuItem.
|
|
121
121
|
* @param icon_name an icon name.
|
|
122
122
|
*/
|
|
123
|
-
function menu_item_set_icon_name(item: Gtk.MenuItem, icon_name: string
|
|
123
|
+
function menu_item_set_icon_name(item: Gtk.MenuItem, icon_name: string): void
|
|
124
124
|
/**
|
|
125
125
|
* Sets the long description of `menu_item`. A possible use-case is to display it
|
|
126
126
|
* in a #GtkStatusbar, or as a tooltip.
|
|
@@ -159,7 +159,7 @@ function menu_item_set_long_description(menu_item: Gtk.MenuItem, long_descriptio
|
|
|
159
159
|
* @param gtk_action_group a #GtkActionGroup.
|
|
160
160
|
* @param gtk_action_name a #GtkAction name present in `gtk_action_group`.
|
|
161
161
|
*/
|
|
162
|
-
function utils_bind_g_action_to_gtk_action(g_action_map: Gio.ActionMap, detailed_g_action_name_without_prefix: string
|
|
162
|
+
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
|
|
163
163
|
/**
|
|
164
164
|
* Utility function to be able to port an application gradually to #GAction and
|
|
165
165
|
* #AmtkActionInfo, when #GtkUIManager is still used. This function goes one
|
|
@@ -184,7 +184,7 @@ function utils_bind_g_action_to_gtk_action(g_action_map: Gio.ActionMap, detailed
|
|
|
184
184
|
* @param gtk_action_group a #GtkActionGroup.
|
|
185
185
|
* @param gtk_action_name the name of the #GtkAction to create and add to `gtk_action_group`.
|
|
186
186
|
*/
|
|
187
|
-
function utils_create_gtk_action(g_action_map: Gio.ActionMap, detailed_g_action_name_with_prefix: string
|
|
187
|
+
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
|
|
188
188
|
/**
|
|
189
189
|
* Gets the URI of `item`. `item` must be a child of `menu`. `menu` must be a
|
|
190
190
|
* #GtkRecentChooserMenu.
|
|
@@ -215,7 +215,7 @@ interface ActionInfoCentralStore {
|
|
|
215
215
|
|
|
216
216
|
// Owm methods of Amtk-4.Amtk.ActionInfoCentralStore
|
|
217
217
|
|
|
218
|
-
lookup(action_name: string
|
|
218
|
+
lookup(action_name: string): ActionInfo
|
|
219
219
|
|
|
220
220
|
// Class property signals of Amtk-4.Amtk.ActionInfoCentralStore
|
|
221
221
|
|
|
@@ -286,7 +286,7 @@ interface ActionInfoStore {
|
|
|
286
286
|
* by a library, to easily see which actions are not used by the application.
|
|
287
287
|
*/
|
|
288
288
|
check_all_used(): void
|
|
289
|
-
lookup(action_name: string
|
|
289
|
+
lookup(action_name: string): ActionInfo
|
|
290
290
|
|
|
291
291
|
// Class property signals of Amtk-4.Amtk.ActionInfoStore
|
|
292
292
|
|
|
@@ -506,7 +506,7 @@ interface Factory {
|
|
|
506
506
|
* @param action_name an action name.
|
|
507
507
|
* @returns a new #GtkCheckMenuItem for @action_name.
|
|
508
508
|
*/
|
|
509
|
-
create_check_menu_item(action_name: string
|
|
509
|
+
create_check_menu_item(action_name: string): Gtk.Widget
|
|
510
510
|
/**
|
|
511
511
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
512
512
|
* `flags` argument instead.
|
|
@@ -520,14 +520,14 @@ interface Factory {
|
|
|
520
520
|
* @param flags #AmtkFactoryFlags.
|
|
521
521
|
* @returns a new #GtkCheckMenuItem for @action_name.
|
|
522
522
|
*/
|
|
523
|
-
create_check_menu_item_full(action_name: string
|
|
523
|
+
create_check_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget
|
|
524
524
|
/**
|
|
525
525
|
* Creates a new #GtkMenuItem for `action_name` with the
|
|
526
526
|
* #AmtkFactory:default-flags.
|
|
527
527
|
* @param action_name an action name.
|
|
528
528
|
* @returns a new #GtkMenuItem for @action_name.
|
|
529
529
|
*/
|
|
530
|
-
create_menu_item(action_name: string
|
|
530
|
+
create_menu_item(action_name: string): Gtk.Widget
|
|
531
531
|
/**
|
|
532
532
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
533
533
|
* `flags` argument instead.
|
|
@@ -535,7 +535,7 @@ interface Factory {
|
|
|
535
535
|
* @param flags #AmtkFactoryFlags.
|
|
536
536
|
* @returns a new #GtkMenuItem for @action_name.
|
|
537
537
|
*/
|
|
538
|
-
create_menu_item_full(action_name: string
|
|
538
|
+
create_menu_item_full(action_name: string, flags: FactoryFlags): Gtk.Widget
|
|
539
539
|
/**
|
|
540
540
|
* Creates a new #GtkMenuToolButton for `action_name` with the
|
|
541
541
|
* #AmtkFactory:default-flags.
|
|
@@ -545,7 +545,7 @@ interface Factory {
|
|
|
545
545
|
* @param action_name an action name.
|
|
546
546
|
* @returns a new #GtkMenuToolButton for @action_name.
|
|
547
547
|
*/
|
|
548
|
-
create_menu_tool_button(action_name: string
|
|
548
|
+
create_menu_tool_button(action_name: string): Gtk.MenuToolButton
|
|
549
549
|
/**
|
|
550
550
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
551
551
|
* `flags` argument instead.
|
|
@@ -556,14 +556,14 @@ interface Factory {
|
|
|
556
556
|
* @param flags #AmtkFactoryFlags.
|
|
557
557
|
* @returns a new #GtkMenuToolButton for @action_name.
|
|
558
558
|
*/
|
|
559
|
-
create_menu_tool_button_full(action_name: string
|
|
559
|
+
create_menu_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.MenuToolButton
|
|
560
560
|
/**
|
|
561
561
|
* Creates a new #GtkToolButton for `action_name` with the
|
|
562
562
|
* #AmtkFactory:default-flags.
|
|
563
563
|
* @param action_name an action name.
|
|
564
564
|
* @returns a new #GtkToolButton for @action_name.
|
|
565
565
|
*/
|
|
566
|
-
create_tool_button(action_name: string
|
|
566
|
+
create_tool_button(action_name: string): Gtk.ToolItem
|
|
567
567
|
/**
|
|
568
568
|
* This function ignores the #AmtkFactory:default-flags property and takes the
|
|
569
569
|
* `flags` argument instead.
|
|
@@ -571,7 +571,7 @@ interface Factory {
|
|
|
571
571
|
* @param flags #AmtkFactoryFlags.
|
|
572
572
|
* @returns a new #GtkToolButton for @action_name.
|
|
573
573
|
*/
|
|
574
|
-
create_tool_button_full(action_name: string
|
|
574
|
+
create_tool_button_full(action_name: string, flags: FactoryFlags): Gtk.ToolItem
|
|
575
575
|
get_application(): Gtk.Application | null
|
|
576
576
|
get_default_flags(): FactoryFlags
|
|
577
577
|
/**
|
|
@@ -782,7 +782,7 @@ interface ActionInfo {
|
|
|
782
782
|
* Sets the action name, for example `"win.save"`.
|
|
783
783
|
* @param action_name the action name.
|
|
784
784
|
*/
|
|
785
|
-
set_action_name(action_name: string
|
|
785
|
+
set_action_name(action_name: string): void
|
|
786
786
|
set_icon_name(icon_name: string | null): void
|
|
787
787
|
/**
|
|
788
788
|
* Sets the label with a mnemonic.
|
|
@@ -853,28 +853,28 @@ interface ActionInfoEntry {
|
|
|
853
853
|
* the action name.
|
|
854
854
|
* @field
|
|
855
855
|
*/
|
|
856
|
-
action_name: string
|
|
856
|
+
action_name: string
|
|
857
857
|
/**
|
|
858
858
|
* the icon name, or %NULL.
|
|
859
859
|
* @field
|
|
860
860
|
*/
|
|
861
|
-
icon_name: string
|
|
861
|
+
icon_name: string
|
|
862
862
|
/**
|
|
863
863
|
* the label (i.e. a short description) with a mnemonic, or %NULL.
|
|
864
864
|
* @field
|
|
865
865
|
*/
|
|
866
|
-
label: string
|
|
866
|
+
label: string
|
|
867
867
|
/**
|
|
868
868
|
* the accelerator, in the format understood by gtk_accelerator_parse().
|
|
869
869
|
* Or %NULL.
|
|
870
870
|
* @field
|
|
871
871
|
*/
|
|
872
|
-
accel: string
|
|
872
|
+
accel: string
|
|
873
873
|
/**
|
|
874
874
|
* the tooltip (i.e. a long description), or %NULL.
|
|
875
875
|
* @field
|
|
876
876
|
*/
|
|
877
|
-
tooltip: string
|
|
877
|
+
tooltip: string
|
|
878
878
|
}
|
|
879
879
|
|
|
880
880
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/amtk-4",
|
|
3
|
-
"version": "4.0.0-3.2.
|
|
3
|
+
"version": "4.0.0-3.2.7",
|
|
4
4
|
"description": "GJS TypeScript type definitions for Amtk-4, generated from library version 4.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "amtk-4.js",
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit amtk-4.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": "*"
|