diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-11-15 07:48:29 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-11-15 07:48:29 +0000 |
commit | def93bc442e25ecec02ac51ea25431055fbfc458 (patch) | |
tree | a1d9cbfa0fe91d5298e6fde8a62e85941890b1b8 | |
parent | e10f153386f8ce71f4ee480424df53b66e838b02 (diff) |
win32: the method of detecting executables was modified.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@746 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.ja | 5 | ||||
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/mimeview.c | 6 |
4 files changed, 12 insertions, 5 deletions
@@ -1,5 +1,10 @@ 2005-11-14 + * src/mimeview.c: mimeview_view_file(): win32: use g_file_test() to + detect common executable suffix. + +2005-11-14 + * libsylph/mh.c libsylph/mbox.c src/compose.c: always set FolderItem::mtime to 0 if the folder diff --git a/ChangeLog.ja b/ChangeLog.ja index 7839e4cc..c845d5ba 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,5 +1,10 @@ 2005-11-14 + * src/mimeview.c: mimeview_view_file(): win32: 一般的な実行ファイルの + 拡張子は g_file_test() で検出するようにした。 + +2005-11-14 + * libsylph/mh.c libsylph/mbox.c src/compose.c: フォルダの内容が変更された場合常に FolderItem::mtime @@ -18,6 +18,7 @@ Changes of Sylpheed * Win32: PGP sign and encryption was supported. * Win32: The window focus problem of account and filter setting dialog was fixed. + * Win32: The method of detecting executables was modified. * 2.1.6 (development) diff --git a/src/mimeview.c b/src/mimeview.c index b70b775b..a23c058b 100644 --- a/src/mimeview.c +++ b/src/mimeview.c @@ -1123,13 +1123,9 @@ static void mimeview_view_file(const gchar *filename, MimeInfo *partinfo, if (!cmdline) { DWORD dwtype; - if (str_has_suffix_case(filename, ".exe") || - str_has_suffix_case(filename, ".com") || + if (g_file_test(filename, G_FILE_TEST_IS_EXECUTABLE) || str_has_suffix_case(filename, ".scr") || str_has_suffix_case(filename, ".pif") || - str_has_suffix_case(filename, ".bat") || - str_has_suffix_case(filename, ".vbs") || - str_has_suffix_case(filename, ".js") || GetBinaryType(filename, &dwtype)) { alertpanel_full (_("Opening executable file"), |