Martin Vermeer a écrit : [bug report]
A (hopefully) possible fix would be to let the icon have the same trigger as the menu-item.
I think this is not possible because menu-items and tool-bar buttons use completely separated back-ends. Now I see that there is another dynamic menu-item. Is there a list of these somewhere? UI wise, IMHO, menu-item like this one should not appear and disappear, they should be grayed out.
Index: text3.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text3.C,v retrieving revision 1.323 diff -u -p -r1.323 text3.C --- text3.C 31 Dec 2005 11:40:32 -0000 1.323 +++ text3.C 18 Jan 2006 10:42:10 -0000 @@ -1543,8 +1555,10 @@ void LyXText::dispatch(LCursor & cur, Fu && !sel && !cur.selection()) cur.noUpdate(); - else + else { + bv->owner()->updateToolbars();
This is an interesting fix: Why do we need this but not that: bv->owner()->updateMenubar(); IMHO, this is a good case in favor of "Lyx Action Unification" ;-) Abdel.
cur.needsUpdate(); + } }