From 450141a1d8ae8ee245b1e818e4857816badbfa85 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Tue, 27 Jan 2015 13:48:37 +0100 Subject: [PATCH] Make Perspex.Gtk compile again. --- Gtk/Perspex.Gtk/WindowImpl.cs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Gtk/Perspex.Gtk/WindowImpl.cs b/Gtk/Perspex.Gtk/WindowImpl.cs index f02f4d29c6..502eaaa36a 100644 --- a/Gtk/Perspex.Gtk/WindowImpl.cs +++ b/Gtk/Perspex.Gtk/WindowImpl.cs @@ -14,7 +14,7 @@ namespace Perspex.Gtk public class WindowImpl : Gtk.Window, IWindowImpl { - private Window owner; + private TopLevel owner; private IPlatformHandle windowHandle; @@ -33,9 +33,10 @@ namespace Perspex.Gtk public Size ClientSize { get { return this.clientSize; } + set { this.Resize((int)value.Width, (int)value.Height); } } - IPlatformHandle IWindowImpl.Handle + IPlatformHandle ITopLevelImpl.Handle { get { return this.windowHandle; } } @@ -44,6 +45,8 @@ namespace Perspex.Gtk public Action Closed { get; set; } + public Action Deactivated { get; set; } + public Action Input { get; set; } public Action Paint { get; set; } @@ -60,9 +63,15 @@ namespace Perspex.Gtk this.QueueDraw(); } - public void SetOwner(Window window) + public Point PointToScreen(Point point) + { + // TODO: Implement. + return new Point(); + } + + public void SetOwner(TopLevel owner) { - this.owner = window; + this.owner = owner; } public void SetTitle(string title)