summaryrefslogtreecommitdiff
path: root/src/utils/widgets.ts
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-16 22:29:13 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-16 22:29:13 +1100
commit9e32cd4b61b7a22554d1ac046d685a916a926f3f (patch)
tree628a57f8375630c35b4002831a3fa61534913ea4 /src/utils/widgets.ts
parentnotifications: empty text (diff)
downloadcaelestia-shell-9e32cd4b61b7a22554d1ac046d685a916a926f3f.tar.gz
caelestia-shell-9e32cd4b61b7a22554d1ac046d685a916a926f3f.tar.bz2
caelestia-shell-9e32cd4b61b7a22554d1ac046d685a916a926f3f.zip
updates: make popup window
Diffstat (limited to 'src/utils/widgets.ts')
-rw-r--r--src/utils/widgets.ts11
1 files changed, 9 insertions, 2 deletions
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<string>) => {
@@ -43,3 +43,10 @@ export const setupCustomTooltip = (self: any, text: string | Binding<string>) =>
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<MenuItem, Gtk.MenuItem.ConstructorProps, { onActivate: [] }>) {
+ super(props as any);
+ }
+}