aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Window.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-09-11 18:03:35 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-09-11 18:03:35 +0200
commitdc8d870b76c445b6ef979ff58c2260e88793d167 (patch)
treeab0b76d5fbf180a1afc3bdf62c1b74a129496688 /src/GraphicObjects/Window.cs
parent7f10fe9ea2a4538843401c54d4518376a69b242d (diff)
revert 65cf1452510c336fcd69f9922774389d6c3b1aee, to allow widget creation from code
Diffstat (limited to 'src/GraphicObjects/Window.cs')
-rw-r--r--src/GraphicObjects/Window.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/GraphicObjects/Window.cs b/src/GraphicObjects/Window.cs
index 176e8d90..7ea4db75 100644
--- a/src/GraphicObjects/Window.cs
+++ b/src/GraphicObjects/Window.cs
@@ -152,7 +152,7 @@ namespace Crow
alwaysOnTop = value;
if (alwaysOnTop && Parent != null)
- currentInterface.PutOnTop (this);
+ CurrentInterface.PutOnTop (this);
NotifyValueChanged ("AlwaysOnTop", alwaysOnTop);
}
@@ -178,11 +178,11 @@ namespace Crow
{
base.onMouseMove (sender, e);
- Interface otkgw = currentInterface;
+ Interface otkgw = CurrentInterface;
if (!hoverBorder) {
currentDirection = Direction.None;
- currentInterface.MouseCursor = XCursor.Default;
+ CurrentInterface.MouseCursor = XCursor.Default;
return;
}
@@ -323,7 +323,7 @@ namespace Crow
#endregion
protected void onMaximized (object sender, EventArgs e){
- lock (currentInterface.LayoutMutex) {
+ lock (CurrentInterface.LayoutMutex) {
if (!IsMinimized)
savedBounds = this.LastPaintedSlot;
this.Left = this.Top = 0;
@@ -342,7 +342,7 @@ namespace Crow
}
protected void onUnmaximized (object sender, EventArgs e){
- lock (currentInterface.LayoutMutex) {
+ lock (CurrentInterface.LayoutMutex) {
this.Left = savedBounds.Left;
this.Top = savedBounds.Top;
this.Width = savedBounds.Width;
@@ -357,7 +357,7 @@ namespace Crow
Unmaximized.Raise (sender, e);
}
protected void onMinimized (object sender, EventArgs e){
- lock (currentInterface.LayoutMutex) {
+ lock (CurrentInterface.LayoutMutex) {
if (IsNormal)
savedBounds = this.LastPaintedSlot;
Width = 200;
@@ -375,7 +375,7 @@ namespace Crow
{
hoverBorder = false;
currentDirection = Direction.None;
- currentInterface.MouseCursor = XCursor.Default;
+ CurrentInterface.MouseCursor = XCursor.Default;
}
protected void onBorderMouseEnter (object sender, MouseMoveEventArgs e)
{
@@ -385,7 +385,7 @@ namespace Crow
protected void butQuitPress (object sender, MouseButtonEventArgs e)
{
- currentInterface.MouseCursor = XCursor.Default;
+ CurrentInterface.MouseCursor = XCursor.Default;
close ();
}