src/Palete/Gtk.vala
authorAlan Knowles <alan@roojs.com>
Sat, 29 Oct 2022 09:18:57 +0000 (17:18 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 29 Oct 2022 09:18:57 +0000 (17:18 +0800)
src/Palete/Gtk.vala

index 60443f4..c6477c8 100644 (file)
@@ -856,6 +856,14 @@ namespace Palete {
                                
                        
                        }
+                       // is child a Event
+                        
+                       
+                       var is_event = childcls.inherits.contains("Gtk.EventController") || childcls.implements.contains("Gtk.EventController");
+                       if (is_event) {
+                           child.set_prop(new JsRender.NodeProp.special("pack", "add_controller"));
+                       }       
+                       
                        // any other combo?
                        switch(parent.fqn()) {
                                case "Gtk.Dialog":