Re: PropertyType_Load
- From: Lars Clausen <lrclause cs uiuc edu>
- To: dia-list gnome org
- Subject: Re: PropertyType_Load
- Date: Thu, 03 Jul 2003 03:42:05 -0500
On 03 Jul 2003, Philippe Faes wrote:
The file properties.h contains this definition:
typedef void (*PropertyType_Load)(Property *prop, AttributeNode attr,
DataNode data);
However, it seems that the load funtions don't use "attr", but only
"data". I didn't check the load funtions of ALL properties, obviously...
The pointarrayprop load function uses attr.
find . -name \*.c | xargs grep --after-context=6 prop_load\( | less
is your friend:)
Why are there two Nodes being passed to the load functions? Is this for
historical reasons only? Is it safe for me to use only "data", and
ignore "attr"?
It's XML. Remember it's <tag attr="value">data</tag>. Functions must have
access to both, it's just that most don't use any attributes.
-Lars
--
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| HÃrdgrim of Numenor
"I do not agree with a word that you say, but I |----------------------------
will defend to the death your right to say it." | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire | what's with the handbasket?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]