Fix Error: Failed to initialize GUI: no built-in themes found
when run gui and load theme, by add WX_USE_THEME in the place that create them object
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -95,6 +95,7 @@ wxThemeInfo::wxThemeInfo(Constructor c,
|
|||||||
#ifdef wxUNIV_DEFAULT_THEME
|
#ifdef wxUNIV_DEFAULT_THEME
|
||||||
else // use native theme by default
|
else // use native theme by default
|
||||||
{
|
{
|
||||||
|
WX_USE_THEME(wxUNIV_DEFAULT_THEME);
|
||||||
nameDefTheme = wxSTRINGIZE_T(wxUNIV_DEFAULT_THEME);
|
nameDefTheme = wxSTRINGIZE_T(wxUNIV_DEFAULT_THEME);
|
||||||
}
|
}
|
||||||
#endif // wxUNIV_DEFAULT_THEME
|
#endif // wxUNIV_DEFAULT_THEME
|
||||||
|
Reference in New Issue
Block a user