From 660b6f0e852e0ac51b868854f9b6dfa7de4ec8da Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Thu, 10 Sep 2015 10:07:33 +0200 Subject: [PATCH] * Window.goml: * Window.cs: default window --- Templates/Window.goml | 15 ++++++++++----- src/GraphicObjects/Window.cs | 5 ++++- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Templates/Window.goml b/Templates/Window.goml index 2ec25987..cf72c6bf 100755 --- a/Templates/Window.goml +++ b/Templates/Window.goml @@ -1,12 +1,17 @@  - + - + + - diff --git a/src/GraphicObjects/Window.cs b/src/GraphicObjects/Window.cs index 0c275f7a..09488499 100644 --- a/src/GraphicObjects/Window.cs +++ b/src/GraphicObjects/Window.cs @@ -176,7 +176,10 @@ namespace go void butQuitPress (object sender, MouseButtonEventArgs e) { - TopContainer.DeleteWidget (this); + ILayoutable parent = (sender as GraphicObject).Parent; + while(!(parent is Window)) + parent = parent.Parent; + TopContainer.DeleteWidget (parent as GraphicObject); } -- 2.47.3