Further cosmetic tweaks to file-selection boxes per observed conventions
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 29 Jan 2003 16:39:18 +0000 (16:39 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 29 Jan 2003 16:39:18 +0000 (16:39 +0000)
on Windows:
 - Change "AllFiles" to "All Files (*.*)"
 - Extensions in lower case

git-svn-id: svn://svn.tartarus.org/sgt/putty@2748 cda61777-01e9-0310-a592-d414129be87e

pageant.c
puttygen.c
windlg.c

index 0826bf4..8fc14e7 100644 (file)
--- a/pageant.c
+++ b/pageant.c
@@ -1250,8 +1250,8 @@ static void prompt_add_keyfile(void)
     of.lStructSize = sizeof(of);
 #endif
     of.hwndOwner = main_hwnd;
-    of.lpstrFilter = "PuTTY Private Key Files (*.ppk)\0*.PPK\0"
-       "AllFiles\0*\0\0\0";
+    of.lpstrFilter = "PuTTY Private Key Files (*.ppk)\0*.ppk\0"
+       "All Files (*.*)\0*\0\0\0";
     of.lpstrCustomFilter = NULL;
     of.nFilterIndex = 1;
     of.lpstrFile = filelist;
index 7bfd1e6..fd713e0 100644 (file)
@@ -202,11 +202,11 @@ static int prompt_keyfile(HWND hwnd, char *dlgtitle,
 #endif
     of.hwndOwner = hwnd;
     if (ppk) {
-       of.lpstrFilter = "PuTTY Private Key Files (*.ppk)\0*.PPK\0"
-           "All Files\0*\0\0\0";
+       of.lpstrFilter = "PuTTY Private Key Files (*.ppk)\0*.ppk\0"
+           "All Files (*.*)\0*\0\0\0";
        of.lpstrDefExt = ".ppk";
     } else {
-       of.lpstrFilter = "All Files\0*\0\0\0";
+       of.lpstrFilter = "All Files (*.*)\0*\0\0\0";
     }
     of.lpstrCustomFilter = NULL;
     of.nFilterIndex = 1;
index 7c3a8d1..fd72288 100644 (file)
--- a/windlg.c
+++ b/windlg.c
@@ -2847,7 +2847,8 @@ static int GenericMainDlgProc(HWND hwnd, UINT msg,
                of.lStructSize = sizeof(of);
 #endif
                of.hwndOwner = hwnd;
-               of.lpstrFilter = "Wave Files\0*.WAV\0AllFiles\0*\0\0\0";
+               of.lpstrFilter = "Wave Files (*.wav)\0*.WAV\0"
+                   "All Files (*.*)\0*\0\0\0";
                of.lpstrCustomFilter = NULL;
                of.nFilterIndex = 1;
                of.lpstrFile = filename;
@@ -3100,7 +3101,7 @@ static int GenericMainDlgProc(HWND hwnd, UINT msg,
                of.lStructSize = sizeof(of);
 #endif
                of.hwndOwner = hwnd;
-               of.lpstrFilter = "All Files\0*\0\0\0";
+               of.lpstrFilter = "All Files (*.*)\0*\0\0\0";
                of.lpstrCustomFilter = NULL;
                of.nFilterIndex = 1;
                of.lpstrFile = filename;
@@ -3328,8 +3329,8 @@ static int GenericMainDlgProc(HWND hwnd, UINT msg,
                of.lStructSize = sizeof(of);
 #endif
                of.hwndOwner = hwnd;
-               of.lpstrFilter = "PuTTY Private Key Files (*.ppk)\0*.PPK\0"
-                   "AllFiles\0*\0\0\0";
+               of.lpstrFilter = "PuTTY Private Key Files (*.ppk)\0*.ppk\0"
+                   "All Files (*.*)\0*\0\0\0";
                of.lpstrCustomFilter = NULL;
                of.nFilterIndex = 1;
                of.lpstrFile = filename;