aboutsummaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-03-08 08:37:52 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-03-08 08:37:52 +0100
commitcda826f8aa6e2d3e0f86b4bb29cb505379ff2968 (patch)
tree7df4c7a4653660fe804beae6c9e2b310057d417b /src
parenta4ba4781ad7c88166b977e4144be6aaf4488fd57 (diff)
remove IGOLibHost
Diffstat (limited to 'src')
-rw-r--r--src/GraphicObjects/IGOLibHost.cs19
-rw-r--r--src/GraphicObjects/Popper.cs7
2 files changed, 2 insertions, 24 deletions
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<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 ();
- }
-}
-
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 ();
}