diff options
author | kotontrion <[email protected]> | 2024-12-20 09:49:58 +0100 |
---|---|---|
committer | kotontrion <[email protected]> | 2024-12-20 09:49:58 +0100 |
commit | fcef5cea5ca84fa06a74e69de34e84b4d0842fcc (patch) | |
tree | 798de065ecce20a6f5892bc729ef73455abe209c /lang/gjs/src/gtk3/widget.ts | |
parent | 5ed7a1416c2532188a7e01fead3842602fdb670f (diff) | |
parent | d7d11b341db85ce9768fa06b6f225d713621ec56 (diff) |
Merge branch 'main' into feat/wayland-glib
Diffstat (limited to 'lang/gjs/src/gtk3/widget.ts')
-rw-r--r-- | lang/gjs/src/gtk3/widget.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lang/gjs/src/gtk3/widget.ts b/lang/gjs/src/gtk3/widget.ts index b4e8497..b3c4a4d 100644 --- a/lang/gjs/src/gtk3/widget.ts +++ b/lang/gjs/src/gtk3/widget.ts @@ -102,6 +102,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() }, |