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

Modified Files:
        KeyConfigPrefs.cpp 
Log Message:
Standardize on the generic file dialog under GTK.

Index: KeyConfigPrefs.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/prefs/KeyConfigPrefs.cpp,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- KeyConfigPrefs.cpp  25 Mar 2007 20:04:38 -0000      1.71
+++ KeyConfigPrefs.cpp  10 Apr 2007 02:21:51 -0000      1.72
@@ -35,6 +35,8 @@
 #include "../ShuttleGui.h"
 #include "KeyConfigPrefs.h"
 
+#include "FileDialog.h"
+
 #define AssignDefaultsButtonID  7001
 #define CurrentComboID          7002
 #define SetButtonID             7003
@@ -158,11 +160,11 @@
    wxString path = gPrefs->Read(wxT("/DefaultExportPath"),
                                 ::wxGetCwd());
 
-   fName = wxFileSelector(_("Export Keyboard Shortcuts As:"),
-                          NULL,
-                          fName,
-                          wxT("xml"),
-                          wxT("*.xml"), wxSAVE | wxOVERWRITE_PROMPT, this);
+   fName = FileSelector(_("Export Keyboard Shortcuts As:"),
+                        NULL,
+                        fName,
+                        wxT("xml"),
+                        wxT("*.xml"), wxSAVE | wxOVERWRITE_PROMPT, this);
 
    if (!fName)
       return;
@@ -191,13 +193,13 @@
    wxString path = gPrefs->Read(wxT("/DefaultOpenPath"),
                                 ::wxGetCwd());
 
-   wxString fileName = wxFileSelector(_("Select an XML file containing 
Audacity keyboard shortcuts..."),
-                                      path,     // Path
-                                      wxT(""),       // Name
-                                      wxT(""),       // Extension
-                                      _("XML files (*.xml)|*.xml|All files 
(*.*)|*.*"),
-                                      0,        // Flags
-                                      this);    // Parent
+   wxString fileName = FileSelector(_("Select an XML file containing Audacity 
keyboard shortcuts..."),
+                                    path,     // Path
+                                    wxT(""),       // Name
+                                    wxT(""),       // Extension
+                                    _("XML files (*.xml)|*.xml|All files 
(*.*)|*.*"),
+                                    0,        // Flags
+                                    this);    // Parent
 
    if (!fileName)
       return;


-------------------------------------------------------------------------
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