wxGTK2: No need to warn about threads being unsupported if gtk+ is lower than 1.2.4 - this is source code for gtk2
only. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -555,18 +555,8 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
|
|||||||
bool init_result;
|
bool init_result;
|
||||||
|
|
||||||
#if wxUSE_THREADS
|
#if wxUSE_THREADS
|
||||||
// GTK 1.2 up to version 1.2.3 has broken threads
|
if (!g_thread_supported())
|
||||||
if ((gtk_major_version == 1) &&
|
g_thread_init(NULL);
|
||||||
(gtk_minor_version == 2) &&
|
|
||||||
(gtk_micro_version < 4))
|
|
||||||
{
|
|
||||||
printf( "wxWidgets warning: GUI threading disabled due to outdated GTK version\n" );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (!g_thread_supported())
|
|
||||||
g_thread_init(NULL);
|
|
||||||
}
|
|
||||||
#endif // wxUSE_THREADS
|
#endif // wxUSE_THREADS
|
||||||
|
|
||||||
gtk_set_locale();
|
gtk_set_locale();
|
||||||
|
Reference in New Issue
Block a user