]> O.S.I.I.S - jp/crow.git/commitdiff
remove IGOLibHost
authorjpbruyere <jp.bruyere@hotmail.com>
Tue, 8 Mar 2016 07:37:52 +0000 (08:37 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Tue, 8 Mar 2016 07:37:52 +0000 (08:37 +0100)
src/GraphicObjects/IGOLibHost.cs [deleted file]
src/GraphicObjects/Popper.cs

diff --git a/src/GraphicObjects/IGOLibHost.cs b/src/GraphicObjects/IGOLibHost.cs
deleted file mode 100644 (file)
index 5c842e3..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-namespace Crow
-{
-       public interface IGOLibHost
-       {
-               List<GraphicObject> 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 ();
-       }
-}
-
index 5938fd8a51e45b4c448ad5771dc38fad0eeb0d85..7c068085b8631ea84998456ef88e681fcb5739c5 100644 (file)
@@ -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 ();
                }