git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20684
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if (!wxOKlibc()) wxConvCurrent = (wxMBConv*) NULL;
#endif
if (!wxOKlibc()) wxConvCurrent = (wxMBConv*) NULL;
#endif
gtk_init( &argc, &argv );
gtk_init( &argc, &argv );
+ /* we can not enter threads before gtk_init is done */
+ gdk_threads_enter();
+
wxSetDetectableAutoRepeat( TRUE );
if (!wxApp::Initialize())
wxSetDetectableAutoRepeat( TRUE );
if (!wxApp::Initialize())
if (!wxOKlibc()) wxConvCurrent = (wxMBConv*) NULL;
#endif
if (!wxOKlibc()) wxConvCurrent = (wxMBConv*) NULL;
#endif
gtk_init( &argc, &argv );
gtk_init( &argc, &argv );
+ /* we can not enter threads before gtk_init is done */
+ gdk_threads_enter();
+
wxSetDetectableAutoRepeat( TRUE );
if (!wxApp::Initialize())
wxSetDetectableAutoRepeat( TRUE );
if (!wxApp::Initialize())