I just checked in a big patch for the menus in dia.  This patch does a
number of things.  The most prominant is to allow tearoff menus to work
correctly.

The way the right click menu was handled before was that each diagram
display window would have its own version of the right click menu, and the
callbacks would know which diagram to change with some weird code to find
out what display to use.

I have changed this so that there is only a single right click menu, and
the active display is now the last one to receive and mouse or keyboard
button presses.  With this design, the accelerators on the right click
menu are same in different windows, and it is safe to tear off the right
click menu.

I also added code to change the selected diagram in the layers dialog when
the active diagram changes (this is causing the warnings at the moment --
I will fix this soon).

I also added a feature so that you can click on the square in the upper
left of the diagram display to pop up the right click menu, as you can in
the gimp.

There are still a few bugs to be fixed (I haven't tested the GTK version
very thoroughly yet, and haven't fixed up a little breakage in the bonobo
embeddable component), but it is an improvement over the previous
behaviour.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


Reply via email to