Update of /cvsroot/audacity/lib-src/FileDialog/mac
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv31529
Modified Files:
FileDialog.hpp
Log Message:
Do not display file extension and strip accelerator character from button label
Index: FileDialog.hpp
===================================================================
RCS file: /cvsroot/audacity/lib-src/FileDialog/mac/FileDialog.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- FileDialog.hpp 12 Apr 2007 00:15:37 -0000 1.3
+++ FileDialog.hpp 21 Apr 2007 19:37:41 -0000 1.4
@@ -151,7 +151,7 @@
wxMacCFStringHolder
cfString(NavDialogGetSaveFileName(callBackParms->context), false);
sfilename = cfString.AsString() ;
-
+#if 0
int pos = sfilename.Find('.', true) ;
if (pos != wxNOT_FOUND)
{
@@ -159,6 +159,7 @@
cfString.Assign(sfilename,
wxFONTENCODING_DEFAULT);
NavDialogSetSaveFileName(callBackParms->context, cfString);
}
+#endif
}
}
@@ -458,7 +459,7 @@
if (!m_buttonlabel.IsEmpty())
{
- wxMacCFStringHolder cfString(m_buttonlabel.c_str(),
wxFONTENCODING_DEFAULT);
+ wxMacCFStringHolder cfString(wxStripMenuCodes(m_buttonlabel).c_str(),
wxFONTENCODING_DEFAULT);
SetRect(&r, myData.bounds.right + gap, margin, 0, 0);
CreatePushButtonControl(NULL, &r, cfString, &myData.button);
SetControlID(myData.button, &kButtonID);
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs