Disable GTK2-specific code to change theme when building wxGTK3.
It doesn't work with GTK3, it causes deprecation warnings, and allowing an app to change its theme is a dumb idea git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -199,6 +199,10 @@ wxApp::~wxApp()
|
|||||||
|
|
||||||
bool wxApp::SetNativeTheme(const wxString& theme)
|
bool wxApp::SetNativeTheme(const wxString& theme)
|
||||||
{
|
{
|
||||||
|
#ifdef __WXGTK3__
|
||||||
|
wxUnusedVar(theme);
|
||||||
|
return false;
|
||||||
|
#else
|
||||||
wxString path;
|
wxString path;
|
||||||
path = gtk_rc_get_theme_dir();
|
path = gtk_rc_get_theme_dir();
|
||||||
path += "/";
|
path += "/";
|
||||||
@@ -219,6 +223,7 @@ bool wxApp::SetNativeTheme(const wxString& theme)
|
|||||||
gtk_rc_reparse_all_for_settings(gtk_settings_get_default(), TRUE);
|
gtk_rc_reparse_all_for_settings(gtk_settings_get_default(), TRUE);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxApp::OnInitGui()
|
bool wxApp::OnInitGui()
|
||||||
|
Reference in New Issue
Block a user