summaryrefslogtreecommitdiff
path: root/lang/gjs/src/gtk3/widget.ts
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-12-20 22:27:25 +0100
committerAylur <[email protected]>2024-12-20 22:27:25 +0100
commit53bfc0929d62263547c1282b388040b9616a377e (patch)
tree2b2c776ecc57209179203eb7b8638ee7502a286e /lang/gjs/src/gtk3/widget.ts
parent2f09ed83386b334f0dfb7f376b99739b15e49fc9 (diff)
parentd7d11b341db85ce9768fa06b6f225d713621ec56 (diff)
Merge branch 'main' into feat/jsx-gtk4
Diffstat (limited to 'lang/gjs/src/gtk3/widget.ts')
-rw-r--r--lang/gjs/src/gtk3/widget.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/lang/gjs/src/gtk3/widget.ts b/lang/gjs/src/gtk3/widget.ts
index 759a4b1..10e4842 100644
--- a/lang/gjs/src/gtk3/widget.ts
+++ b/lang/gjs/src/gtk3/widget.ts
@@ -116,6 +116,15 @@ export class LevelBar extends astalify(Astal.LevelBar) {
// TODO: ListBox
+
+// MenuButton
+export type MenuButtonProps = ConstructProps<MenuButton, Gtk.MenuButton.ConstructorProps>
+export class MenuButton extends astalify(Gtk.MenuButton) {
+ static { GObject.registerClass({ GTypeName: "MenuButton" }, this) }
+ constructor(props?: MenuButtonProps, child?: BindableChild) { super({ child, ...props } as any) }
+}
+
+
// Overlay
Object.defineProperty(Astal.Overlay.prototype, "overlays", {
get() { return this.get_overlays() },