X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b89156b5dbb3c1270452379801a79613cd69bb32..520e470fdd0daef09c77938db642e4583933c90d:/src/gtk/threadgui.inc diff --git a/src/gtk/threadgui.inc b/src/gtk/threadgui.inc index 165fef3c01..baa8fe8b76 100644 --- a/src/gtk/threadgui.inc +++ b/src/gtk/threadgui.inc @@ -21,7 +21,6 @@ #include - ///////////////////////////////////////////////////////////////////////////// // Static variables ///////////////////////////////////////////////////////////////////////////// @@ -63,3 +62,29 @@ static void wxThreadGuiExit() close(p_thrd_pipe[0]); close(p_thrd_pipe[1]); } + +#ifdef NO_DEFINE_GDK_1_1 + +void wxMutexGuiEnter() +{ + gdk_mutex_enter(); +} + +void wxMutexGuiLeave() +{ + gdk_mutex_leave(); +} + +#else + +void wxMutexGuiEnter() +{ + wxMainMutex.Lock(); +} + +void wxMutexGuiLeave() +{ + wxMainMutex.Unlock(); +} + +#endif