19 Mar
2008
19 Mar
'08
9:01 a.m.
On Wed, Mar 19, 2008 at 5:50 AM, Aubanel MONNIER
repr->_setParent(father);
I think you need to use
parent->appendChild(child);
instead of this
"change" value and reset the combo to no preset... So unless I mark somewhere (e.g. an ugly static flag) the change comes from the preset combo and check when I come back and do nothing in this case, I need to find another way.
Well, all the controls in the bar have their callbacks - so you can just add a call like update_presets_list to each such callback.
By the way, please make sure that presets store not only numeric params but also the boolean state of the buttons such as use pressure sensitivity and trace background. It's an important part of the tool behavior as well.
--
bulia byak
Inkscape. Draw Freely.
http://www.inkscape.org