Re: newbie directions?
- From: Gabriel de Perthuis <Gabriel de-Perthuis laPoste net>
- To: Yiannis Gatsoulis <menig leeds ac uk>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: newbie directions?
- Date: Thu, 22 Jul 2004 16:29:41 +0200
Yiannis Gatsoulis wrote:
1. is there a way that glade_get_widget_tree or smth similar to read
the widget tree from the xml file by passing as an argument the
filename instead of a GtkWidget so i can retrieve a particular widget?
You use glade_xml_new to create a widget from a glade file; the root arg
allows you to retrieve only part of the hierarchy. See glade_xml_new in
devhelp:
glade_xml_new ()GladeXML* glade_xml_new (const char
*fname,
const char *root,
const char *domain);
Creates a new GladeXML object (and the corresponding widgets) from the
XML file fname. Optionally it will only build the interface from the
widget node root (if it is not NULL). This feature is useful if you only
want to build say a toolbar or menu from the XML file, but not the
window it is embedded in. Note also that the XML parse tree is cached to
speed up creating another GladeXML object for the same filefname :the
XML file name. root :the widget node in fname to start building from (or
NULL) domain :the translation domain for the XML file (or NULL for
default) Returns :the newly created GladeXML object, or NULL on failure.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]