Fix the mac application menubar preferences default OS X shortcut

This commit is contained in:
Jerry Jacobs 2011-08-30 15:54:22 +02:00
parent 2571080ef2
commit 3cc37e83b9
3 changed files with 15 additions and 12 deletions

View File

@ -401,15 +401,17 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
palette_xpm );
// Options (Preferences on WXMAC)
#ifdef __WXMAC__
preferencesMenu->Append(wxID_PREFERENCES);
#else
ADD_MENUITEM_WITH_HELP( preferencesMenu,
wxID_PREFERENCES,
#ifdef __WXMAC__
_( "&Preferences..." ),
#else
_( "&Options" ),
#endif // __WXMAC__
_( "EESchema preferences" ),
preference_xpm );
#endif // __WXMAC__
// Language submenu
wxGetApp().AddMenuLanguageList( preferencesMenu );

View File

@ -133,15 +133,17 @@ void GERBVIEW_FRAME::ReCreateMenuBar( void )
layers_manager_xpm );
// Options (Preferences on WXMAC)
#ifdef __WXMAC__
configMenu->Append(wxID_PREFERENCES);
#else
ADD_MENUITEM_WITH_HELP( configMenu,
wxID_PREFERENCES,
#ifdef __WXMAC__
_( "Preferences..." ),
#else
_( "&Options" ),
#endif // __WXMAC__
_( "Set options to draw items" ),
preference_xpm );
#endif // __WXMAC__
// Language submenu
wxGetApp().AddMenuLanguageList( configMenu );

View File

@ -497,17 +497,16 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
configmenu->Append( item );
// General
item = new wxMenuItem( configmenu, wxID_PREFERENCES,
#ifdef __WXMAC__
_( "&Preferences..." ),
configmenu->Append(wxID_PREFERENCES);
#else
item = new wxMenuItem( configmenu, wxID_PREFERENCES,
_( "&General" ),
#endif
_( "Select general options for PCBnew" ) );
SET_BITMAP( preference_xpm );
configmenu->Append( item );
#endif
// Display
item = new wxMenuItem( configmenu, ID_PCB_DISPLAY_OPTIONS_SETUP,