On Fri, 7 Dec 2007 11:27:58 -0800, MenTaLguY <mental@...3...> wrote:
On Fri, 07 Dec 2007 19:32:00 +0100, Maximilian Albert <Anhalter42@...173...> wrote:
- Call requestDisplayUpdate() for each of the sides. This is obviously
wrong since it triggers an update while another one is being processed. Consequently, Inkscape issues a corresponding warning on the command line. But at least with this approach the box is correctly updated on screen.
This is basically the correct approach. The main thing is not to call it from the update handlers (you risk an infinite loop).
(Without looking carefully at the code I can't say offhand what the appropriate place to call it from is -- potentially the knot/UI handlers.)
Thanks for this pointer! But does that mean that I can't/shouldn't update the sides from the update method of the parent group at all? Instead, I need to call the update method for each side separately from the knot handlers? This kind of "dis-encapsulation" seems a bit strange. And I still don't understand why the children are not updated automatically when the box's update method is called (after all, I thought that's what an SPGroup does with its children). Anyway, I'll give this a try and ask for further advice when I get stuck.
Thanks a bunch, Max