[Y-devel] [PATCH] destroy widgets

Scott Beck sbeck at gossamer-threads.com
Sat Feb 28 20:40:41 GMT 2004


Hi,

This patch adds a destroyWidget to the public methods of
Y/widget/widget.c in the server. This method destroys all children of
the widget and finally the widget. To do this I made it mandatory for
classes to store any children that need to be destroyed in
self->widget.children. Another way to do this is to have a new virtual
method in all widgets that implement what needs to happen to destroy (in
a UI since and a memory since) it's self and all it's children.

Thoughts, comments?

Cheers,

Scott
-- 
Scott Beck <sbeck at gossamer-threads.com>
Gossamer Threads
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Y--devel--0.2--patch-25-destroy_widget_patch.tar.bz2
Type: application/x-bzip
Size: 4400 bytes
Desc: not available
Url : https://www.y-windows.org/pipermail/y-devel/attachments/20040228/2be84de0/Y--devel--0.2--patch-25-destroy_widget_patch.tar.bin


More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved