mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
CtrlCore: Gtk GUI_APP_MAIN now correctly handles exceptions
git-svn-id: svn://ultimatepp.org/upp/trunk@13534 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ee08eff11a
commit
b769743e04
3 changed files with 7 additions and 1 deletions
|
|
@ -60,6 +60,7 @@ int LeaveGuiMutexAll();
|
|||
void EnterGuiMutex(int n);
|
||||
|
||||
bool ThreadHasGuiLock();
|
||||
int GetGuiLockLevel();
|
||||
#else
|
||||
inline void EnterGuiMutex() {}
|
||||
inline void LeaveGuiMutex() {}
|
||||
|
|
|
|||
|
|
@ -64,6 +64,11 @@ bool ThreadHasGuiLock()
|
|||
return Thread::IsMain() || sGLockLevel;
|
||||
}
|
||||
|
||||
int GetGuiLockLevel()
|
||||
{
|
||||
return sGLockLevel;
|
||||
}
|
||||
|
||||
void WakeUpGuiThread();
|
||||
|
||||
struct Ctrl::CallBox {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ int main(int argc, char **argv, const char **envptr) { \
|
|||
UPP::AppInit__(argc, (const char **)argv, envptr); \
|
||||
GUI_APP_MAIN_HOOK \
|
||||
UPP::InitGtkApp(argc, argv, envptr); \
|
||||
GuiMainFn_(); \
|
||||
UPP::AppExecute__(GuiMainFn_); \
|
||||
UPP::Ctrl::CloseTopCtrls(); \
|
||||
UPP::ExitGtkApp(); \
|
||||
UPP::AppExit__(); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue