Re: [LIP] issues with glade_xml_new()
"Naba Kumar" <[email protected]>
| Newsgroups | gmane.user-groups.linux.india.programmers |
|---|---|
| Message-ID | <[email protected]> |
Hi,
> When I use glade_xml_new() to create a set of widgets from an XML
> description, it automatically does a gtk_widget_show_all() for the
> root widget after creating the widgets. So as soon as the widgets are
> created, they are drawn on the screen. How can I inhibit this action?
> I want the widgets to be created and be hidden unless I explicitly do
> gtk_widget_show_all() when required.
>
Set 'Visible' property of the widgets to False in Glade. By default they are
true, so they are displayed when they are created.
> Further, consider a window with an hbox. This hbox contains a vbox
> named "xyz vbox". The description for all this is contained in a file
> named filename.glade. Now if I do glade_xml_new("filename.glade",
> "xyz vbox"), it creates the whole window and displays it on the
> screen. It is supposed to create only the tree of widgets starting
> >from "xyz vbox".
>
IIRC, the second paramenter should be a top-level widget (eg. GtkWindow) --
If it is not, libglade will determine the top-level widget and then use it. I
believe, it is mainly to select one top-level widget from many in that
filename.glade.
Hope that helps.
Regards,
-Naba
--
NEU FÃR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-GruÃ, GMX FotoService
Jetzt kostenlos anmelden unter http://www.gmx.net
+++ GMX - die erste Adresse für Mail, Message, More! +++
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/