From 9e32cd4b61b7a22554d1ac046d685a916a926f3f Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 16 Jan 2025 22:29:13 +1100 Subject: updates: make popup window --- src/utils/widgets.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/utils/widgets.ts') diff --git a/src/utils/widgets.ts b/src/utils/widgets.ts index 08f9740..64325a0 100644 --- a/src/utils/widgets.ts +++ b/src/utils/widgets.ts @@ -1,5 +1,5 @@ -import { Binding } from "astal"; -import { Astal, Widget } from "astal/gtk3"; +import { Binding, register } from "astal"; +import { Astal, astalify, Gtk, Widget, type ConstructProps } from "astal/gtk3"; import AstalHyprland from "gi://AstalHyprland"; export const setupCustomTooltip = (self: any, text: string | Binding) => { @@ -43,3 +43,10 @@ export const setupCustomTooltip = (self: any, text: string | Binding) => export const setupChildClickthrough = (self: any) => self.connect("size-allocate", () => self.get_window()?.set_child_input_shapes()); + +@register() +export class MenuItem extends astalify(Gtk.MenuItem) { + constructor(props: ConstructProps) { + super(props as any); + } +} -- cgit v1.2.3-freya