>>>>> "Hammer" == Hammer Armin <[EMAIL PROTECTED]> writes:
Hammer> On MacOsX the options doens'nt seems active. I got an "unknown Hammer> option" error. Forget about it, this is done by qt/x11. Hammer> QSessions seems quite easy. I will give it try. But It seems to me that they do not provide much that cannot be done by hand... It seems that I miss their point. >> It is a bug, and it annoys me a _lot_. I really thought I got this >> fixed last August. If you feel like trying to debug the problem, I >> can explain how the code works. It is not pretty :) Hammer> Yes. I have some spare time and could look into it. Basically, Qt/Mac tries to be very clever and it moves menu items with names like Preferences, Settings or Quit to the LyX menu (see code in src/widgets/qmenubar_mac.cpp in Qt source). However, there are big problems with that: - We have a Document->Settings item, and certainly do not want to see it move. - Our menus are generated on the fly (when the menu is open) and thus the menubar does not contain all interesting information. - we have our own notion of localization and it may cause qt to miss some entries (BTW what locale do you use?) So what we do is to make sure that one of the menus (File in general) contains the entries we want to see move to the LyX menu (this entries are defined at the end of lib/ui/stdmenu.ui). This is done in QLPopupMenu::showing. We feed these entries to Qt, and hope it will move them to the LyX menu. Then we have to make sure the entries are not also present in the normal menus. There is code in MenuBackend::expand (which is called to build the menu contents) that makes sure that the contents of the 'special' menu (here "LyX") is not duplicated in the other menus (the matching is done on function, not label). Finally we do not want entries like Document>Settings to get translated. Therefore we use some special hack in lyx_gui::parse_init that makes sure that this translation does not happen. I think that sums up the situation. Please ask again if some things are not clear enough. One thing that probably causes problems is when your default language is not english, although the behaviour of LyX in this case is not clear to me. JMarc