To: discussions about usage and development of dia <dia-list gnome org>
Subject: Re: How to use PROP_TYPE_BUTTON?
Date: Mon, 18 Oct 2004 10:23:25 +0200
(Lars pinged me; I'm having finger-keyboard connectivity problems these
days -- not medical, just that I can't move keys 520km away from my
fingertips. Oh, and time availability: if someone knows how to stretch 24
hours into 36 without bouncing into Einstein's theory issues, I'm all ears)
Le Fri, Oct 15, 2004, Ã 01:14:06AM +1000, Le phan Anh a écrit:
> Hi all,
>
> Have anyone got experience using this type when creating a PropDialog? I
> am using it to open up a new window ( I do my own things on that window
> and update the Dia object later on)
>
> The hard thing is that just a copy of Dia object is passed to the event
> handler of PROP_TYPE_BUTTON, so the question is how to update the
> original one correctly
You should not update the original one; if you did, you'd slip under the
undo mechanism (which, for stdprop objects, works using lists of property
values).
If your object's state can be completely described using a list of property
values (which, as a stdprop object, should be the case), then it should not
matter that the specific object instance changed. What are you trying to do
exactly?
-- Cyrille
--