From ca74fb7ad016f9ceee3756a973baa2d87a8aa1d6 Mon Sep 17 00:00:00 2001 From: Aylur Date: Tue, 4 Jun 2024 23:05:41 +0200 Subject: small fixes * export Gdk * flatten jsx children --- python/astal/widget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/astal/widget.py') diff --git a/python/astal/widget.py b/python/astal/widget.py index 7070e8f..7a458bf 100644 --- a/python/astal/widget.py +++ b/python/astal/widget.py @@ -1,5 +1,5 @@ from gi.repository import Astal, Gtk -from .binding import Binding +from .binding import Binding, kebabify def set_child(self, child): @@ -46,7 +46,7 @@ def astalify(ctor): self.connect("destroy", lambda _: unsub()) for key, value in handlers.items(): - self.connect(key.replace("on_", ""), value) + self.connect(kebabify(key.replace("on_", "")), value) if setup: setup(self) -- cgit v1.2.3