From 6bf6de5cc26b512ebe6ecd67d4ca46807a299470 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Wed, 23 Mar 2011 22:34:49 +0000 Subject: [PATCH] Fix build with latest MonoMac --- SparkleShare/Mac/SparkleIntro.cs | 12 ++++++------ SparkleShare/Mac/SparkleWindow.cs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/SparkleShare/Mac/SparkleIntro.cs b/SparkleShare/Mac/SparkleIntro.cs index d069c04b..1a4a02cb 100644 --- a/SparkleShare/Mac/SparkleIntro.cs +++ b/SparkleShare/Mac/SparkleIntro.cs @@ -149,7 +149,7 @@ namespace SparkleShare { ServerTypeLabel = new NSTextField () { - Alignment = (uint) NSTextAlignment.Right, + Alignment = NSTextAlignment.Right, BackgroundColor = NSColor.WindowBackground, Bordered = false, Editable = false, @@ -159,7 +159,7 @@ namespace SparkleShare { }; AddressLabel = new NSTextField () { - Alignment = (uint) NSTextAlignment.Right, + Alignment = NSTextAlignment.Right, BackgroundColor = NSColor.WindowBackground, Bordered = false, Editable = false, @@ -169,7 +169,7 @@ namespace SparkleShare { }; FolderNameLabel = new NSTextField () { - Alignment = (uint) NSTextAlignment.Right, + Alignment = NSTextAlignment.Right, BackgroundColor = NSColor.WindowBackground, Bordered = false, Editable = false, @@ -395,7 +395,7 @@ namespace SparkleShare { CancelButton.Activated += delegate { InvokeOnMainThread (delegate { - Close (); + PerformClose (this); }); }; @@ -498,7 +498,7 @@ namespace SparkleShare { FinishButton.Activated += delegate { InvokeOnMainThread (delegate { SparkleUI.StatusIcon.CreateMenu (); - Close (); + PerformClose (this); }); }; @@ -541,7 +541,7 @@ namespace SparkleShare { FinishButton.Activated += delegate { InvokeOnMainThread (delegate { SparkleUI.StatusIcon.CreateMenu (); - Close (); + PerformClose (this); }); }; diff --git a/SparkleShare/Mac/SparkleWindow.cs b/SparkleShare/Mac/SparkleWindow.cs index 0da13c6c..d3fec5e1 100644 --- a/SparkleShare/Mac/SparkleWindow.cs +++ b/SparkleShare/Mac/SparkleWindow.cs @@ -155,7 +155,7 @@ namespace SparkleShare { } - public override void Close () + public override void PerformClose (NSObject sender) { OrderOut (this);