diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-15 00:25:23 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-15 00:25:23 +0100 |
| commit | c6da15c4ffed4fd9a54a4c3668853e2564150326 (patch) | |
| tree | 1b3b108409d1ba39f8cfeebcdb8378662779bcb8 /src/GraphicObjects/DockWindow.cs | |
| parent | 709e0b82e0f5445082b7efb67bdc24d2cf6df6ba (diff) | |
remove docker, floating dockingwin should be added to iface
Diffstat (limited to 'src/GraphicObjects/DockWindow.cs')
| -rw-r--r-- | src/GraphicObjects/DockWindow.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/GraphicObjects/DockWindow.cs b/src/GraphicObjects/DockWindow.cs index e3dc2b9f..ca4b93f4 100644 --- a/src/GraphicObjects/DockWindow.cs +++ b/src/GraphicObjects/DockWindow.cs @@ -44,8 +44,6 @@ namespace Crow Rectangle savedSlot; //last undocked slot recalled when view is undocked bool wasResizable; - public Docker RootDock { get { return LogicalParent as Docker; }} - public bool IsDocked { get { return isDocked; } set { @@ -137,7 +135,7 @@ namespace Crow DockStack ds = Parent as DockStack; ds.Undock (this); - RootDock.AddChild (this); + IFace.AddWidget (this); this.Left = savedSlot.Left; this.Top = savedSlot.Top; @@ -160,8 +158,7 @@ namespace Crow LastSlots = LastPaintedSlot = Slot = default(Rectangle); Left = Top = 0; - Group g = Parent as Group; - g.RemoveChild (this); + IFace.RemoveWidget (this); target.Dock (this); } |