+++ /dev/null
-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 ();
- }
-}
-
{
//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 ();
}