Re: destroying GladeXML
- From: James Henstridge <james daa com au>
- To: Yochai Shefi-Simchon <joch sgitlv telaviv sgi com>
- Cc: gnome-devel-list <gnome-devel-list gnome org>
- Subject: Re: destroying GladeXML
- Date: Thu, 28 Sep 2000 10:41:38 +0800 (WST)
On Wed, 27 Sep 2000, Yochai Shefi-Simchon wrote:
>
> hi
>
> i'd like to destroy a whole XML tree of widgets when i don't know the
> names of the widgets. this requires two operations:
> 1. destroying the widgets.
You will need to know the names of the toplevel widgets that were
created. Then call gtk_widget_destroy() on them. If you are using glade
or libglade, you will need to know at least some of the names assigned to
the widgets.
> 2. freeing the XML tree (GladeXML).
gtk_object_unref(GTK_OBJECT(xml));
>
> how can i do this ?
> if i can assume all the widgets belong to the same top level window, is
> that makes things easier ?
If this is the case, you will just need to know the name of the one
toplevel window. Then just destroy that window.
>
> thanx
> joch
James.
--
Email: james daa com au
WWW: http://www.daa.com.au/~james/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]