From 359b13bd62fd1e8f24f01c2d18cbfb4b3a9db40f Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 9 Oct 2016 12:39:48 +0000 Subject: [PATCH] GTK: show files with uppercase extensions in file open dialog. The Windows dialog does that automatically, but the GTK one doesn't. So this is useful for Windows interop. --- src/gtk/gtkmain.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gtk/gtkmain.cpp b/src/gtk/gtkmain.cpp index 0f67fb7..73b6036 100644 --- a/src/gtk/gtkmain.cpp +++ b/src/gtk/gtkmain.cpp @@ -1086,6 +1086,7 @@ static std::string ConvertFilters(std::string active, const FileFilter ssFilters for(const char *const *ssPattern = ssFilter->patterns; *ssPattern; ssPattern++) { std::string pattern = "*." + std::string(*ssPattern); filter->add_pattern(pattern); + filter->add_pattern(Glib::ustring(pattern).uppercase()); if(active == "") active = pattern.substr(2); if("*." + active == pattern)