lib/glimmer/libui/group_proxy.rb in glimmer-dsl-libui-0.0.10 vs lib/glimmer/libui/group_proxy.rb in glimmer-dsl-libui-0.0.11
- old
+ new
@@ -29,9 +29,14 @@
class GroupProxy < ControlProxy
def post_initialize_child(child)
::LibUI.group_set_child(@libui, child.libui)
end
+ def destroy_child(child)
+ ::LibUI.send("group_set_child", @libui, nil)
+ super
+ end
+
private
def build_control
super.tap do
self.margined = true