aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Interface.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-08-04 15:45:02 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-08-04 15:45:02 +0200
commite2d351c9de4ee9c8b04376228f3ab5b9310392c9 (patch)
treec6071ae81222ee037aa14c4e762e3e16c43826ff /src/Interface.cs
parent3a01c455e09af25109239ab7ca32e66ea1ebc99b (diff)
Set regLayout.ALL to new object to prevent queuing in layout or
drawing, set to regLayout.None just before adding parent LayoutingTries moved into LQI
Diffstat (limited to 'src/Interface.cs')
-rw-r--r--src/Interface.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Interface.cs b/src/Interface.cs
index 3cfed981..6d532164 100644
--- a/src/Interface.cs
+++ b/src/Interface.cs
@@ -89,10 +89,13 @@ namespace Crow
internal bool XmlLoading = false;
public Queue<LayoutingQueueItem> LayoutingQueue = new Queue<LayoutingQueueItem> ();
+ public Queue<LayoutingQueueItem> ProcessedLayoutingQueue;
public Queue<GraphicObject> DrawingQueue = new Queue<GraphicObject>();
public string Clipboard;//TODO:use object instead for complex copy paste
public void EnqueueForRepaint(GraphicObject g)
{
+// if (g.RegisteredLayoutings != LayoutingType.None)
+// return;
lock (DrawingQueue) {
if (g.IsQueueForRedraw)
return;
@@ -405,6 +408,7 @@ namespace Crow
lqi.ProcessLayouting ();
}
}
+
#if MEASURE_TIME
layoutTime.Stop ();
#endif
@@ -499,6 +503,7 @@ namespace Crow
{
g.Parent = this;
GraphicTree.Insert (0, g);
+ g.RegisteredLayoutings = LayoutingType.None;
g.RegisterForLayouting (LayoutingType.Sizing);
}
public void DeleteWidget(GraphicObject g)