diff options
author | Aylur <[email protected]> | 2024-12-20 22:27:25 +0100 |
---|---|---|
committer | Aylur <[email protected]> | 2024-12-20 22:27:25 +0100 |
commit | 53bfc0929d62263547c1282b388040b9616a377e (patch) | |
tree | 2b2c776ecc57209179203eb7b8638ee7502a286e /lang/gjs/src/gtk3/astalify.ts | |
parent | 2f09ed83386b334f0dfb7f376b99739b15e49fc9 (diff) | |
parent | d7d11b341db85ce9768fa06b6f225d713621ec56 (diff) |
Merge branch 'main' into feat/jsx-gtk4
Diffstat (limited to 'lang/gjs/src/gtk3/astalify.ts')
-rw-r--r-- | lang/gjs/src/gtk3/astalify.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lang/gjs/src/gtk3/astalify.ts b/lang/gjs/src/gtk3/astalify.ts index 92ffb6f..9cab5b2 100644 --- a/lang/gjs/src/gtk3/astalify.ts +++ b/lang/gjs/src/gtk3/astalify.ts @@ -35,6 +35,9 @@ export default function astalify< get noImplicitDestroy(): boolean { return this[noImplicitDestroy] } set noImplicitDestroy(value: boolean) { this[noImplicitDestroy] = value } + set actionGroup([prefix, group]: ActionGroup) { this.insert_action_group(prefix, group) } + set_action_group(actionGroup: ActionGroup) { this.actionGroup = actionGroup } + protected getChildren(): Array<Gtk.Widget> { if (this instanceof Gtk.Bin) { return this.get_child() ? [this.get_child()!] : [] @@ -192,3 +195,5 @@ type Cursor = | "nwse-resize" | "zoom-in" | "zoom-out" + +type ActionGroup = [prefix: string, actionGroup: Gtk.ActionGroup] |