diff options
| author | j-p <jp.bruyere@live.be> | 2017-08-28 05:12:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-28 05:12:19 +0200 |
| commit | 1d9aa6aa61da3dd5f1a1a488018ceb8b5a88f2af (patch) | |
| tree | e7e9aed2ad7b0947855ce9d70a52267b128fec0c /src/Interface.cs | |
| parent | d6d7eda88ae12d6c47d6c158a5a9527a47447745 (diff) | |
full IDisposable implementation (#34)
* full implementation of IDisposable, not stable, lock and still leaking
* override dispose in popper to handle _content not yet in graphic tree (when never shown), test focusedWidget when disposing
* prevent canceling thread multiple times causing a deadlock
* test parent type when trying to close window
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/Interface.cs b/src/Interface.cs index baa46667..24bd3ca2 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -592,10 +592,6 @@ namespace Crow /// <summary>Set visible state of widget to false and remove if from the graphic tree</summary> public void DeleteWidget(GraphicObject g) { - if (_hoverWidget != null) { - if (_hoverWidget.IsInside(g)) - HoverWidget = null; - } lock (UpdateMutex) { RegisterClip (g.ScreenCoordinates (g.LastPaintedSlot)); GraphicTree.Remove (g); @@ -611,10 +607,6 @@ namespace Crow //TODO:parent is not reset to null because object will be added //to ObjectToRedraw list, and without parent, it fails GraphicObject g = GraphicTree [0]; - if (_hoverWidget != null) { - if (_hoverWidget.IsInside(g)) - HoverWidget = null; - } RegisterClip (g.ScreenCoordinates (g.LastPaintedSlot)); GraphicTree.RemoveAt (0); g.Dispose (); |