Re: default - value in ext_attributes
- From: Michael Tiemann <tiemann redhat com>
- To: discussions about usage and development of dia <dia-list gnome org>
- Subject: Re: default - value in ext_attributes
- Date: Mon, 06 Jun 2005 10:21:18 -0400
I'm just guessing here, but the way you put a value into a custom
property attribute is by encoding it in the description.
M
On Mon, 2005-06-06 at 09:59, Denny Beyer wrote:
hey,
as i need the functionality to read in default values with my own
created shapesets containing ext_attributes, I altered the file
custom_object.c as recommended by lars. as follows
300 str = xmlGetProp(node, "val");
if (!str)
{
g_free (pname);
continue;
}
pval = g_strdup(str);
xmlFree(str);
/* we got here, then fill an entry */
312 info->props[i].val = pval;
I also altered the structure for Property and PropDescription to hold
the value.
I still get the error message,
custom_object.c:312: error: structure has no member named `val'
custom_object.c:336: error: structure has no member named `val'
but can find the place, where else i have to add this.
Any Idea, where some bit of code is missing? I discovered to add the
funcionality as not as straight forward as i thought.
Thanks for your help.
Denny
_______________________________________________
Dia-list mailing list
Dia-list gnome org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.gnome.org/projects/dia/faq.html
Main page at http://www.gnome.org/projects/dia
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]