Pike v8.0 release 1738

Method GTK1.GladeXML()->new()


Method new

GTK1.GladeXML new(string filename, string|void root, string|void domain)

Description

Creates a new GladeXML object (and the corresponding widgets) from the XML file filename. Optionally it will only build the interface from the widget node root. 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 file. The third optional argument is used to specify a different translation domain from the default to be used.