From: jpbruyere Date: Tue, 8 Mar 2016 07:37:52 +0000 (+0100) Subject: remove IGOLibHost X-Git-Tag: v0.4~85 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=cda826f8aa6e2d3e0f86b4bb29cb505379ff2968;p=jp%2Fcrow.git remove IGOLibHost --- diff --git a/src/GraphicObjects/IGOLibHost.cs b/src/GraphicObjects/IGOLibHost.cs deleted file mode 100644 index 5c842e32..00000000 --- a/src/GraphicObjects/IGOLibHost.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace Crow -{ - public interface IGOLibHost - { - List gobjsToRedraw { get; } - GraphicObject activeWidget { get; set; } - GraphicObject hoverWidget { get; set; } - GraphicObject FocusedWidget { get; set; } - XCursor MouseCursor { set; } - void AddWidget (GraphicObject g); - void DeleteWidget(GraphicObject g); - void PutOnTop (GraphicObject g); - void Quit (); - } -} - diff --git a/src/GraphicObjects/Popper.cs b/src/GraphicObjects/Popper.cs index 5938fd8a..7c068085 100644 --- a/src/GraphicObjects/Popper.cs +++ b/src/GraphicObjects/Popper.cs @@ -92,11 +92,8 @@ namespace Crow { //ensure popped window is cleared if (Content != null) { - if (Content.Parent != null) { - IGOLibHost tc = Content.Parent as IGOLibHost; - if (tc != null) - tc.DeleteWidget (Content); - } + if (Content.Parent != null) + Interface.CurrentInterface.DeleteWidget (Content); } base.ClearBinding (); }