From a6d2e0ce937edf43efdd121b418fe401b095606c Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 5 Feb 2011 16:26:40 +0000 Subject: [PATCH] [mac] Fix some warnings and errors --- SparkleShare/Mac/SparkleShare/SparkleStatusIcon.cs | 2 +- SparkleShare/Mac/SparkleShare/SparkleUI.cs | 2 +- SparkleShare/Mac/SparkleShare/SparkleWindow.cs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SparkleShare/Mac/SparkleShare/SparkleStatusIcon.cs b/SparkleShare/Mac/SparkleShare/SparkleStatusIcon.cs index 9357f7f7..b1907cab 100644 --- a/SparkleShare/Mac/SparkleShare/SparkleStatusIcon.cs +++ b/SparkleShare/Mac/SparkleShare/SparkleStatusIcon.cs @@ -213,7 +213,7 @@ namespace SparkleShare { SyncMenuItem.Enabled = false; SyncMenuItem.Activated += delegate { - SparkleWindow w = new SparkleWindow (); + new SparkleWindow (); }; Menu.AddItem (SyncMenuItem); diff --git a/SparkleShare/Mac/SparkleShare/SparkleUI.cs b/SparkleShare/Mac/SparkleShare/SparkleUI.cs index f551d6dd..68171528 100644 --- a/SparkleShare/Mac/SparkleShare/SparkleUI.cs +++ b/SparkleShare/Mac/SparkleShare/SparkleUI.cs @@ -44,7 +44,7 @@ namespace SparkleShare { NSApplication.Init (); - NSApplication.SharedApplication.applicationIconImage + NSApplication.SharedApplication.ApplicationIconImage = NSImage.ImageNamed ("sparkleshare.icns"); OpenLogs = new List (); diff --git a/SparkleShare/Mac/SparkleShare/SparkleWindow.cs b/SparkleShare/Mac/SparkleShare/SparkleWindow.cs index 053687f5..21f1cbde 100644 --- a/SparkleShare/Mac/SparkleShare/SparkleWindow.cs +++ b/SparkleShare/Mac/SparkleShare/SparkleWindow.cs @@ -56,6 +56,7 @@ namespace SparkleShare { ContentView.AddSubview (new NSImageView (new RectangleF (0, 0, 150, 480)) { Image = SideSplash}); ContentView.AddSubview (new NSTextField (new RectangleF (200, 100, 128, 31)) { BezelStyle = NSTextFieldBezelStyle.Rounded}); + ContentView.AddSubview (tv);