From b20dcaaa5f80ae695c23760eda7d93f178fafde5 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Sat, 22 Sep 2007 03:49:18 +0000 Subject: [PATCH] More fixing main window title to be Apple HIG-alike Originally committed to SVN as r1577. --- aegisub/frame_main.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/aegisub/frame_main.cpp b/aegisub/frame_main.cpp index 94e1e6b64..a7fb849b5 100644 --- a/aegisub/frame_main.cpp +++ b/aegisub/frame_main.cpp @@ -767,13 +767,22 @@ void FrameMain::UpdateTitle() { wxString newTitle = _T(""); #ifndef __WXMAC__ if (subsMod) newTitle << _T("* "); -#endif if (AssFile::top->filename != _T("")) { wxFileName file (AssFile::top->filename); newTitle << file.GetFullName(); } else newTitle << _T("Untitled"); newTitle << _T(" - Aegisub ") << GetAegisubLongVersionString(); +#else + // Apple HIG says "untitled" should not be capitalised + // and the window is a document window, it shouldn't contain the app name + // (The app name is already present in the menu bar) + if (AssFile::top->filename != _T("")) { + wxFileName file (AssFile::top->filename); + newTitle << file.GetFullName(); + } + else newTitle << _T("untitled"); +#endif #ifdef __WXMAC__ // On Mac, set the mark in the close button