Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv28914

Modified Files:
      Tag: Audacity_UmixIt
        Lyrics.cpp 
Log Message:
Implemented URL opening on Mac

Index: Lyrics.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Attic/Lyrics.cpp,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -d -r1.1.2.4 -r1.1.2.5
--- Lyrics.cpp  29 Nov 2006 09:59:36 -0000      1.1.2.4
+++ Lyrics.cpp  29 Nov 2006 10:06:02 -0000      1.1.2.5
@@ -25,10 +25,15 @@
 
 void LinkingHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link) 
 {
+#ifdef __WXMAC__
+   wxString openCmd = "open " + link.GetHref();
+   ::wxExecute(openCmd);
+#else
    wxFileType* pFileType = 
wxTheMimeTypesManager->GetFileTypeFromExtension(wxT(".htm"));
    if (pFileType == NULL) return;
    wxString openCmd = pFileType->GetOpenCommand(link.GetHref());
    ::wxExecute(openCmd);
+#endif
 }
 
 BEGIN_EVENT_TABLE(Lyrics, wxPanel)


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to