From f3466c55374b44e69a5ccb33fb8777d2289ed0e1 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 21 May 2003 18:54:27 +0000 Subject: [PATCH] Applied patch [ 739401 ] gtk_init() has to be called before gdk_threads_enter() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/app.cpp | 5 +++-- src/gtk1/app.cpp | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index bc09ab8263..1bf855421b 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -803,10 +803,11 @@ int wxEntryStart( int& argc, char *argv[] ) if (!wxOKlibc()) wxConvCurrent = (wxMBConv*) NULL; #endif - gdk_threads_enter(); - gtk_init( &argc, &argv ); + /* we can not enter threads before gtk_init is done */ + gdk_threads_enter(); + wxSetDetectableAutoRepeat( TRUE ); if (!wxApp::Initialize()) diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index bc09ab8263..1bf855421b 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -803,10 +803,11 @@ int wxEntryStart( int& argc, char *argv[] ) if (!wxOKlibc()) wxConvCurrent = (wxMBConv*) NULL; #endif - gdk_threads_enter(); - gtk_init( &argc, &argv ); + /* we can not enter threads before gtk_init is done */ + gdk_threads_enter(); + wxSetDetectableAutoRepeat( TRUE ); if (!wxApp::Initialize()) -- 2.45.2