summaryrefslogtreecommitdiff
path: root/python/astal/widget.py
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-06-04 23:05:41 +0200
committerAylur <[email protected]>2024-06-04 23:05:41 +0200
commitca74fb7ad016f9ceee3756a973baa2d87a8aa1d6 (patch)
treed935caa5959c1344ce9e99ae3ca9be699426ad2a /python/astal/widget.py
parentcfe3244e61207d4d761f2522546cb2bfb1c539f3 (diff)
small fixes
* export Gdk * flatten jsx children
Diffstat (limited to 'python/astal/widget.py')
-rw-r--r--python/astal/widget.py4
1 files changed, 2 insertions, 2 deletions
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)