From 069fb178b0e1a4a8521ef91bdb04726e20014d0b Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Tue, 16 Dec 2014 03:06:07 +0100 Subject: [PATCH] Make the GTK stuff build again. --- Gtk/Perspex.Gtk/GtkPlatform.cs | 5 +++++ Gtk/Perspex.Gtk/Perspex.Gtk.csproj | 4 ++++ TestApplication/Program.cs | 2 +- TestApplication/TestApplication-Mono.csproj | 4 ++++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Gtk/Perspex.Gtk/GtkPlatform.cs b/Gtk/Perspex.Gtk/GtkPlatform.cs index 8ed16efb5c..c494e37a6a 100644 --- a/Gtk/Perspex.Gtk/GtkPlatform.cs +++ b/Gtk/Perspex.Gtk/GtkPlatform.cs @@ -45,6 +45,11 @@ namespace Perspex.Gtk locator.Register(() => instance, typeof(IPlatformThreadingInterface)); } + public bool HasMessages() + { + return Gtk.Application.EventsPending(); + } + public void ProcessMessage() { Gtk.Application.RunIteration(); diff --git a/Gtk/Perspex.Gtk/Perspex.Gtk.csproj b/Gtk/Perspex.Gtk/Perspex.Gtk.csproj index 424a2ff691..1099452bb5 100644 --- a/Gtk/Perspex.Gtk/Perspex.Gtk.csproj +++ b/Gtk/Perspex.Gtk/Perspex.Gtk.csproj @@ -65,6 +65,10 @@ + + {d211e587-d8bc-45b9-95a4-f297c8fa5200} + Perspex.Animation + {B09B78D8-9B26-48B0-9149-D64A2F120F3F} Perspex.Base diff --git a/TestApplication/Program.cs b/TestApplication/Program.cs index 393ce2b4da..e8bc66a733 100644 --- a/TestApplication/Program.cs +++ b/TestApplication/Program.cs @@ -504,7 +504,7 @@ namespace TestApplication RenderTransform = new RotateTransform(), PropertyTransitions = new PropertyTransitions { - Rectangle.WidthProperty.Transition(1000), + Rectangle.WidthProperty.Transition(300), Rectangle.HeightProperty.Transition(1000), }, [Grid.ColumnProperty] = 1, diff --git a/TestApplication/TestApplication-Mono.csproj b/TestApplication/TestApplication-Mono.csproj index b9f08f0d00..e3cac75b5b 100644 --- a/TestApplication/TestApplication-Mono.csproj +++ b/TestApplication/TestApplication-Mono.csproj @@ -79,6 +79,10 @@ {FB05AC90-89BA-4F2F-A924-F37875FB547C} Perspex.Cairo + + {d211e587-d8bc-45b9-95a4-f297c8fa5200} + Perspex.Animation + {799A7BB5-3C2C-48B6-85A7-406A12C420DA} Perspex.Application