Re: stringlist

2006-08-11 Thread ludovic mercier
e, edit in widget and save all data. :) Hum you can see the widget in the last article of my blog http://www.coriolys.org/ ... I wait your feedback I think that i must suppress the title columns and now the label of each stringlist element is hard-coded. Lidiriel __

stringlist

2006-08-11 Thread lidiriel
Hello Lars, before send you my prop_text file i try to create a widget for this type. A table with two columns. It works for the view but when the windows widget is close i have bug. The pointer list in the "draw function object" is null but the list in the function : stringlistprop_set_from_widge

Re: bug in stringlist ?

2006-08-10 Thread Lars Clausen
On Thu, 2006-08-10 at 15:55 +0200, ludovic mercier wrote: > Thanks Lars, > > i don't know valgrind it's excellent. I have debugged my code it's > work :). Isn't it just great? It has ridden Dia of some of its most confusing bugs. > I save liststring and loading succesfully from a dia-file. Goo

Re: bug in stringlist ?

2006-08-10 Thread ludovic mercier
Thanks Lars, i don't know valgrind it's excellent. I have debugged my code it's work :). I save liststring and loading succesfully from a dia-file. Do you have interesting for a patch of prop_text.c ? Lidiriel. ___ Dia-list mailing list Dia-list@gnome

Re: bug in stringlist ?

2006-08-10 Thread ludovic mercier
On Thu, 2006-08-10 at 22:20 +0200, Lars Clausen wrote: > > Given that diagram_tree_add_object has no relevance to the stringlist > properties, I'm thinking corrupted memory has happened. As I mentioned > earlier, stringlist is not used anywhere else -- this means there's

Re: bug in stringlist ?

2006-08-10 Thread lidiriel
On Thu, 2006-08-10 at 22:20 +0200, Lars Clausen wrote: > Given that diagram_tree_add_object has no relevance to the stringlist > properties, I'm thinking corrupted memory has happened. As I mentioned > earlier, stringlist is not used anywhere else -- this means there's lik

Re: bug in stringlist ?

2006-08-10 Thread Lars Clausen
lidiriel sagde: > Hello, > > I try to use stringlist (prop_text.c .h) with a new simple object. > For a attribut GList * foo, if foo has a minimum of one element a bug > appear when the object is draw (if foo is null no bug). > After analysis i think that dia failed on diagr

bug in stringlist ?

2006-08-09 Thread lidiriel
Hello, I try to use stringlist (prop_text.c .h) with a new simple object. For a attribut GList * foo, if foo has a minimum of one element a bug appear when the object is draw (if foo is null no bug). After analysis i think that dia failed on diagram_tree_add_object ... ... diagram_add_object

Re: stringlist

2006-08-09 Thread lidiriel
On Tue, 2006-08-08 at 17:36 +0200, ludovic mercier wrote: > Le vendredi 04 août 2006 à 17:51 +0200, Lars Clausen a écrit : > > On Fri, 2006-08-04 at 17:25 +0200, lidiriel wrote: > > > They should be fairly easy. Check out pointarrayprop_load and _save in > > prop_geomtypes.c, which are similar.

Re: stringlist

2006-08-08 Thread ludovic mercier
: typedef struct _Baygoto { Element element; ConnectionPoint connections[BAY_BAYGOTO_NUM_CNX]; /* baygoto identifiant */ gchar *id; /* Custom inner color */ Color fill_color; /* Font text */ DiaFont *font; GList *lst; } Baygoto; The element lst is the stringlist... ok now i use th

Re: stringlist

2006-08-04 Thread Lars Clausen
On Fri, 2006-08-04 at 17:25 +0200, lidiriel wrote: > Hello, > > for my current plugin i use dia 0.95 and i would use the property > PROP_TYPE_STRINGLIST for saving a list of string (from a GList*). > I have checked the file prop_text.c and the 2 method : > stringlistprop_load & _save are not imple

stringlist

2006-08-04 Thread lidiriel
Hello, for my current plugin i use dia 0.95 and i would use the property PROP_TYPE_STRINGLIST for saving a list of string (from a GList*). I have checked the file prop_text.c and the 2 method : stringlistprop_load & _save are not implemented ! Are they written in cvs repository ? If not, is compli