alert: cleanup and remove unneeded Mono.Unix reference

This commit is contained in:
Hylke Bons 2011-05-03 18:14:05 +01:00
parent 941c0fe25d
commit 3051622597

View file

@ -24,7 +24,6 @@ using MonoMac.Foundation;
using MonoMac.AppKit; using MonoMac.AppKit;
using MonoMac.ObjCRuntime; using MonoMac.ObjCRuntime;
using MonoMac.WebKit; using MonoMac.WebKit;
using Mono.Unix;
namespace SparkleShare { namespace SparkleShare {
@ -32,7 +31,6 @@ namespace SparkleShare {
public SparkleAlert () : base () public SparkleAlert () : base ()
{ {
MessageText = "SparkleShare couldn't find Git on your system. Do you want to download it?"; MessageText = "SparkleShare couldn't find Git on your system. Do you want to download it?";
InformativeText = "Git is required to run SparkleShare."; InformativeText = "Git is required to run SparkleShare.";
@ -42,19 +40,14 @@ namespace SparkleShare {
AddButton ("Cancel"); AddButton ("Cancel");
Buttons [0].Activated += delegate { Buttons [0].Activated += delegate {
NSUrl url = new NSUrl ("http://code.google.com/p/git-osx-installer/downloads/list"); NSUrl url = new NSUrl ("http://code.google.com/p/git-osx-installer/downloads/list");
NSWorkspace.SharedWorkspace.OpenUrl (url); NSWorkspace.SharedWorkspace.OpenUrl (url);
Environment.Exit (0); Environment.Exit (0);
}; };
Buttons [1].Activated += delegate { Buttons [1].Activated += delegate {
Environment.Exit (-1); Environment.Exit (-1);
}; };
} }
} }
} }