Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv32270/src

Modified Files:
        AudacityApp.cpp 
Log Message:
Add Open Recent to application menu on OSX.

Index: AudacityApp.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/AudacityApp.cpp,v
retrieving revision 1.229
retrieving revision 1.230
diff -u -d -r1.229 -r1.230
--- AudacityApp.cpp     14 Apr 2009 05:25:32 -0000      1.229
+++ AudacityApp.cpp     4 May 2009 21:10:20 -0000       1.230
@@ -791,8 +791,10 @@
    // Create a menubar that will show when all project windows are closed.
 
    wxMenu *fileMenu = new wxMenu();
+   wxMenu *recentMenu = new wxMenu();
    fileMenu->Append(wxID_NEW, wxT("&New\tCtrl+N"));
    fileMenu->Append(wxID_OPEN, wxT("&Open...\tCtrl+O"));
+   fileMenu->AppendSubMenu(recentMenu, wxT("Open &Recent..."));
    fileMenu->Append(wxID_ABOUT, _("&About Audacity..."));
    /* i18n-hint: Mac OS X shortcut should be Ctrl+, */
    fileMenu->Append(wxID_PREFERENCES, _("&Preferences...\tCtrl+,"));
@@ -802,6 +804,9 @@
 
    wxMenuBar::MacSetCommonMenuBar(menuBar);
 
+   mRecentFiles->UseMenu(recentMenu);
+   mRecentFiles->AddFilesToMenu(recentMenu);
+
    // This invisibale frame will be the "root" of all other frames and will
    // become the active frame when no projects are open.
    gParentFrame = new wxFrame(NULL, -1, wxEmptyString, wxPoint(0, 0), 
wxSize(0, 0), 0);


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to