- wxFileTypeInfo(_T("image/jpeg"),
- wxEmptyString,
- wxEmptyString,
- _T("JPEG image (from fallback)"),
- _T("jpg"), _T("jpeg"), _T("JPG"), _T("JPEG"), NULL),
- wxFileTypeInfo(_T("image/gif"),
- wxEmptyString,
- wxEmptyString,
- _T("GIF image (from fallback)"),
- _T("gif"), _T("GIF"), NULL),
- wxFileTypeInfo(_T("image/png"),
- wxEmptyString,
- wxEmptyString,
- _T("PNG image (from fallback)"),
- _T("png"), _T("PNG"), NULL),
- wxFileTypeInfo(_T("image/bmp"),
- wxEmptyString,
- wxEmptyString,
- _T("windows bitmap image (from fallback)"),
- _T("bmp"), _T("BMP"), NULL),
- wxFileTypeInfo(_T("text/html"),
- wxEmptyString,
- wxEmptyString,
- _T("HTML document (from fallback)"),
- _T("htm"), _T("html"), _T("HTM"), _T("HTML"), NULL),
- // must terminate the table with this!
- wxFileTypeInfo()
- };
- wxTheMimeTypesManager->AddFallbacks(fallbacks);
- s_MinimalMimeEnsured = true;
- }
+ static const wxFileTypeInfo fallbacks[] =
+ {
+ wxFileTypeInfo(wxT("image/jpeg"),
+ wxEmptyString,
+ wxEmptyString,
+ wxT("JPEG image (from fallback)"),
+ wxT("jpg"), wxT("jpeg"), wxT("JPG"), wxT("JPEG"), wxNullPtr),
+ wxFileTypeInfo(wxT("image/gif"),
+ wxEmptyString,
+ wxEmptyString,
+ wxT("GIF image (from fallback)"),
+ wxT("gif"), wxT("GIF"), wxNullPtr),
+ wxFileTypeInfo(wxT("image/png"),
+ wxEmptyString,
+ wxEmptyString,
+ wxT("PNG image (from fallback)"),
+ wxT("png"), wxT("PNG"), wxNullPtr),
+ wxFileTypeInfo(wxT("image/bmp"),
+ wxEmptyString,
+ wxEmptyString,
+ wxT("windows bitmap image (from fallback)"),
+ wxT("bmp"), wxT("BMP"), wxNullPtr),
+ wxFileTypeInfo(wxT("text/html"),
+ wxEmptyString,
+ wxEmptyString,
+ wxT("HTML document (from fallback)"),
+ wxT("htm"), wxT("html"), wxT("HTM"), wxT("HTML"), wxNullPtr),
+ // must terminate the table with this!
+ wxFileTypeInfo()
+ };
+ wxTheMimeTypesManager->AddFallbacks(fallbacks);
+ s_MinimalMimeEnsured = true;
+ }