[Gambas-devel] About GB_VARIANT_VALUE

Benoit Minisini gambas at ...1...
Sat Jun 5 00:55:15 CEST 2004


On Saturday 05 June 2004 00:53, Daniel Campos wrote:
> Hi again:
>
>  Now I'm beginning to write the 'Delete' method for controls and
> trying to free all properly, as you know 'tag' property is
> stored in:
>
> GB_VARIANT_VALUE tag;
>
>  How can I free that? is GB.Free() OK or should I use any other
> function?
>
> Regards,

GB.StoreVariant(NULL, &tag);

I suggest you read the CWidget.cpp QT component source file. Everything is 
done after receiving a 'destroy' signal. I think you should have an 
equivalent signal in GTK+, and that you just have to copy and adapt the code 
from the QT component.

Regards,


-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the Devel mailing list