CtrlCore: X11 and GTK MT fixes (#429)

git-svn-id: svn://ultimatepp.org/upp/trunk@5735 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-01-26 19:23:41 +00:00
parent 688ab69301
commit 13dbe1dd98
14 changed files with 78 additions and 14 deletions

View file

@ -4,9 +4,15 @@
NAMESPACE_UPP
#define LLOG(x) // DLOG(x)
#define LLOG(x) // DLOG(x)
void Ctrl::Create(Ctrl *owner, bool popup)
{
LLOG("Create Call");
Call(callback2(this, &Ctrl::Create0, owner, popup));
}
void Ctrl::Create0(Ctrl *owner, bool popup)
{
GuiLock __;
ASSERT(IsMainThread());
@ -106,6 +112,11 @@ void Ctrl::GuiPlatformRemove()
}
void Ctrl::PopUp(Ctrl *owner, bool savebits, bool activate, bool dropshadow, bool topmost)
{
Call(callback2(this, &Ctrl::PopUp0, owner, activate));
}
void Ctrl::PopUp0(Ctrl *owner, bool activate)
{
GuiLock __;
LLOG("POPUP " << Name() << ", " << GetRect() << ", activate " << activate);