Use "<Application> Preferences" as generic wxPreferencesEditor dialog title.

This is more appropriate than just "Preferences" under MSW and GTK which use
the generic wxPreferencesEditor, OS X has its own native version which
continues to correctly use "Preferences" for the title.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-05-16 14:42:59 +00:00
parent 654c4b7b14
commit dc5d118e65
2 changed files with 12 additions and 1 deletions

View File

@@ -224,6 +224,11 @@ bool MyApp::OnInit()
if ( !wxApp::OnInit() )
return false;
// This will be used in the title of the preferences dialog under some
// platforms, don't leave it as default "Preferences" because this would
// result in rather strange "Preferences Preferences" title.
SetAppDisplayName("wxWidgets Sample");
MyFrame *frame = new MyFrame();
frame->Show(true);