aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Popper.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-23 18:15:30 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-03-01 05:14:01 +0100
commita25ff30120987cf9d24e27ff5d062b451d508b6e (patch)
tree51d4be362562a08b8358dfe5f6f771d17fa9a678 /src/GraphicObjects/Popper.cs
parent70bcdc77ff42c74fcd8e6e7dffd4eb6b16f24f39 (diff)
CrowInterface object holding common functions, IGOLibHost removed
Diffstat (limited to 'src/GraphicObjects/Popper.cs')
-rw-r--r--src/GraphicObjects/Popper.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/GraphicObjects/Popper.cs b/src/GraphicObjects/Popper.cs
index 4c5ca11c..fdbed62c 100644
--- a/src/GraphicObjects/Popper.cs
+++ b/src/GraphicObjects/Popper.cs
@@ -174,22 +174,20 @@ namespace Crow
public virtual void onPop(object sender, EventArgs e)
{
- IGOLibHost tc = HostContainer;
- if (tc == null)
+ if (Interface.CurrentInterface == null)
return;
if (Content != null) {
Content.Visible = true;
if (Content.Parent == null)
- tc.AddWidget (Content);
- tc.PutOnTop (Content);
+ Interface.CurrentInterface.AddWidget (Content);
+ Interface.CurrentInterface.PutOnTop (Content);
_content_LayoutChanged (this, new LayoutingEventArgs (LayoutingType.Sizing));
}
Pop.Raise (this, e);
}
public virtual void onUnpop(object sender, EventArgs e)
{
- IGOLibHost tc = HostContainer;
- if (tc == null)
+ if (Interface.CurrentInterface == null)
return;
Content.Visible = false;
Unpop.Raise (this, e);