apply properties to all selected objects



I really wanted this feature in dia so I got it working, sort of.  It
alters the properties dialog to affect all selected objects instead of
just the current one.  I'm looking for feedback about my patch, because
I don't really know what I am doing (for instance what does add_updates
do?).  It will crash in the dia-gnome excutable (or did I just not
compile it right?).  I am really surprised that undo appears to work
correctly.

Also, I'm not sure if it is correct to allow changing objects of
different types.  Currently the property dialog comes up for the current
object, but applies changes to all selected objects.  It works great for
flowchart lines and rectangles, which both have a line color, for
instance to change both line colors at once.  But does changing the text
color on a box write into some invalid memory in the line, which doesn't
have text color, or is dia's object system advanced enough to handle
that?

Here is the patch attached to dia 0.88.1.

-- 
Tril 0. Byte <tril tunes org> http://tril.tunes.org/
This message is placed in the public domain.

Attachment: dia-tril.diff
Description: Text document



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]