[gtkada] existence of a Gtkada object
Thomas De Contes
d.l.tDeContes at free.fr
Thu Feb 10 18:58:12 CET 2005
Le jeudi, 10 fév 2005, à 14:46 Europe/Paris, André Laurens a écrit :
> Hello,
>
> Is there a way to know, from inside a Gtkada application, whether a
> widget, known only by an access value, exists or not?
>
> I'm looking for something like :
> function exists (w : widget_access_type) return boolean;
>
> In my mind "exists" means "has been created" by some gtk_new.
>
> On the opposite, "does not exist" means either :
>
> "has never been created", something I can know by testing access_value
> = null (even if I don't like such a low level operation)
>
> "has been destroyed", something I don't know how to test, since the
> associated pointer is not freed by destroy
btw,
when a widget is destroyed,
is it properly deallocated from the memory ?
or have i to do sth more, to not be too wasteful, when i create/destroy
widgets frequently ?
and, if i add some Controlled types to a widget, are they properly
finalized when the widget is destroyed ?
More information about the gtkada
mailing list