Commit 3cc37e83 authored by Jerry Jacobs's avatar Jerry Jacobs

Fix the mac application menubar preferences default OS X shortcut

parent 2571080e
...@@ -401,15 +401,17 @@ void SCH_EDIT_FRAME::ReCreateMenuBar() ...@@ -401,15 +401,17 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
palette_xpm ); palette_xpm );
// Options (Preferences on WXMAC) // Options (Preferences on WXMAC)
ADD_MENUITEM_WITH_HELP( preferencesMenu,
wxID_PREFERENCES,
#ifdef __WXMAC__ #ifdef __WXMAC__
_( "&Preferences..." ), preferencesMenu->Append(wxID_PREFERENCES);
#else #else
ADD_MENUITEM_WITH_HELP( preferencesMenu,
wxID_PREFERENCES,
_( "&Options" ), _( "&Options" ),
#endif // __WXMAC__
_( "EESchema preferences" ), _( "EESchema preferences" ),
preference_xpm ); preference_xpm );
#endif // __WXMAC__
// Language submenu // Language submenu
wxGetApp().AddMenuLanguageList( preferencesMenu ); wxGetApp().AddMenuLanguageList( preferencesMenu );
......
...@@ -133,15 +133,17 @@ void GERBVIEW_FRAME::ReCreateMenuBar( void ) ...@@ -133,15 +133,17 @@ void GERBVIEW_FRAME::ReCreateMenuBar( void )
layers_manager_xpm ); layers_manager_xpm );
// Options (Preferences on WXMAC) // Options (Preferences on WXMAC)
ADD_MENUITEM_WITH_HELP( configMenu,
wxID_PREFERENCES,
#ifdef __WXMAC__ #ifdef __WXMAC__
_( "Preferences..." ), configMenu->Append(wxID_PREFERENCES);
#else #else
ADD_MENUITEM_WITH_HELP( configMenu,
wxID_PREFERENCES,
_( "&Options" ), _( "&Options" ),
#endif // __WXMAC__
_( "Set options to draw items" ), _( "Set options to draw items" ),
preference_xpm ); preference_xpm );
#endif // __WXMAC__
// Language submenu // Language submenu
wxGetApp().AddMenuLanguageList( configMenu ); wxGetApp().AddMenuLanguageList( configMenu );
......
...@@ -497,17 +497,16 @@ void PCB_EDIT_FRAME::ReCreateMenuBar() ...@@ -497,17 +497,16 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
configmenu->Append( item ); configmenu->Append( item );
// General // General
item = new wxMenuItem( configmenu, wxID_PREFERENCES,
#ifdef __WXMAC__ #ifdef __WXMAC__
_( "&Preferences..." ), configmenu->Append(wxID_PREFERENCES);
#else #else
item = new wxMenuItem( configmenu, wxID_PREFERENCES,
_( "&General" ), _( "&General" ),
#endif
_( "Select general options for PCBnew" ) ); _( "Select general options for PCBnew" ) );
SET_BITMAP( preference_xpm ); SET_BITMAP( preference_xpm );
configmenu->Append( item ); configmenu->Append( item );
#endif
// Display // Display
item = new wxMenuItem( configmenu, ID_PCB_DISPLAY_OPTIONS_SETUP, item = new wxMenuItem( configmenu, ID_PCB_DISPLAY_OPTIONS_SETUP,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment