Linking fix: g_isIdle is for GTK1 only.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
69cce15178
commit
416a4799e5
@ -145,8 +145,10 @@
|
|||||||
# define DEBUG_MAIN_THREAD
|
# define DEBUG_MAIN_THREAD
|
||||||
# endif // Debug
|
# endif // Debug
|
||||||
|
|
||||||
|
#ifndef __WXGTK20__
|
||||||
extern void wxapp_install_idle_handler();
|
extern void wxapp_install_idle_handler();
|
||||||
extern bool g_isIdle;
|
extern bool g_isIdle;
|
||||||
|
#endif
|
||||||
extern bool g_mainThreadLocked;
|
extern bool g_mainThreadLocked;
|
||||||
#endif // wxGTK
|
#endif // wxGTK
|
||||||
|
|
||||||
@ -323,8 +325,10 @@ static gint gtk_window_realize_callback(GtkWidget* theWidget,
|
|||||||
{
|
{
|
||||||
DEBUG_MAIN_THREAD // TODO: Is this neccessary?
|
DEBUG_MAIN_THREAD // TODO: Is this neccessary?
|
||||||
|
|
||||||
|
#ifndef __WXGTK20__
|
||||||
if (g_isIdle) // FIXME: Why is needed? For wxYield? ??
|
if (g_isIdle) // FIXME: Why is needed? For wxYield? ??
|
||||||
wxapp_install_idle_handler();
|
wxapp_install_idle_handler();
|
||||||
|
#endif
|
||||||
|
|
||||||
wxYield(); // FIXME: RN: X Server gets an error/crash if I don't do
|
wxYield(); // FIXME: RN: X Server gets an error/crash if I don't do
|
||||||
// this or a messagebox beforehand?!?!??
|
// this or a messagebox beforehand?!?!??
|
||||||
|
Loading…
Reference in New Issue
Block a user