So even though IANAL[yX developer], there are some things that are easy
enough a non-developer can do. Here's another -- mostly stolen but cludgier.

Jean-Marc proposed a patch to create a "Cleaner windows title" on Mac here:

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg170106.html

The problem with that patch, as Jean-Marc acknowledged, was that it lost
information about version control and read only status. Since then, it
seems (but I'm only guessing here), Qt has changed the way it produces the
menubar on Mac, so that you now can explicitly call setWindowTitle(). That
means it's easy to get that info back in the window title, and that's what
I've done with the attached patch.

As I said, it's cludgy: I've stolen code
from GuiWorkArea::updateWindowTitle() to get that info back in the title,
but (not in any real sense knowing C++) I don't understand the relationship
between GuiWorkArea::updateWindowTitle()
and GuiView::updateWindowTitle(GuiWorkArea * wa). So perhaps someone else
can suggest a better way to do it.

BH

Attachment: Mac-menubar-fix.patch
Description: Binary data

Reply via email to