// Yield to other apps/messages and disable user input to all windows except
// the given one
-bool wxSafeYield(wxWindow *win)
+bool wxSafeYield(wxWindow *win, bool onlyIfNeeded)
{
wxWindowDisabler wd(win);
- bool rc = wxYield();
+ bool rc;
+ if (onlyIfNeeded)
+ rc = wxYieldIfNeeded();
+ else
+ rc = wxYield();
return rc;
}
const wxChar *wxGetInstallPrefix()
{
wxString prefix;
-
+
if ( wxGetEnv(wxT("WXPREFIX"), &prefix) )
return prefix.c_str();
-
+
#ifdef wxINSTALL_PREFIX
return wxT(wxINSTALL_PREFIX);
-#else
+#else
return wxT("");
#endif
}