[Glade-users] Parsing glade xml files
Tristan Van Berkom
tristan.van.berkom at gmail.com
Fri Jul 22 16:20:06 EDT 2005
Francis Brosnan Blazquez wrote:
[...]
> This is the same for signals, we can only get one signal reference
> (GladeSignalInfo) knowing that it could be several of those. In fact,
> this problem applies to all elements inside the GladeWidgetInfo
> structure that have an attribute with a "n_" preffix.
This is just a standard C proceedure; since the glade-parser interface
is not really public (more of an internal thing) it isnt really documented
anywhere AFAIK.
Basicly, The pointers coupled with integers prefixed "n_" are pointers
to the first "element" in an array that is "n_element"s long.
in other words:
for (i = 0; i < winfo->n_properties; i++) {
Property *prop = &(winfo->properties[i]);
/* iterate over properties in widget_info */
}
Cheers,
-Tristan
More information about the Glade-users
mailing list