mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-31 07:12:39 -06:00
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:
parent
688ab69301
commit
13dbe1dd98
14 changed files with 78 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue