If you have a reference to the toplevel, you can just call its destroy()
method. This will remove it from screen and destroy it. Any references
to the widget you still have will still be valid, as GtkWidgets are
reference counted objects. Of course, if you have connected a handler to
the destroy event that calls mainquit(), you may have to either change the
way the application quits, or block that signal handler.
Currently libglade does not support the default width/height tags in glade
files. I will be releasing a new version of libglade soon, which should
do this.
I don't know about the third problem. If you call get_widget again, you
should get a pointer to the same widget. If you have destroyed the widget
since creating the interface, it may cause problems. If you want another
copy of the interface, you will have to create another GladeXML object
(note that this does not entail reparsing the XML file -- libglade will
use a cached version provided the interface file has not changed on disk).
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Tue, 9 Nov 1999, Deirdre Saoirse wrote:
> 1) I'm having difficulty figuring out what to do in a button callback
> so that the parent dialog is deleted (note, I don't want to *quit*,
> just delete that one window). I know which window it is, so I'm not
> worried about knowing that.
>
> 2) I'm using libglade and have set it up so that my window with a clist
> is a specific size, but the window comes out smaller and ickier
> (that's a technical term). I'd *rather* not have to do this in code.
> I gave it a default width and height in the widget panel.
>
> 3) Can I reget a dialog using get_widget? (I seem to get errors when I
> try, am I doing something wrong?)
>
> I know there's more, but that's all for now. The code I'm working on at
> the moment is up at http://www.baypiggies.org/helldesk/ -- very much in
> flux at the moment but hey. Once I get over this hump I'm going to get
> everything in order pretty darn fast. :)
>
> --
> _Deirdre * http://www.linuxcabal.net * http://www.deirdre.net
> "Mars has been a tough target" -- Peter G. Neumann, Risks Digest Moderator
> "That's because the Martians keep shooting things down." -- Harlan Rosenthal
> <[EMAIL PROTECTED]>, retorting in Risks Digest 20.60
>
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
>
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]