Oops, wrong UI toolkit

This commit is contained in:
Hylke Bons 2011-09-20 19:19:17 +01:00
parent 8ba23a6d11
commit 909a7dad6a
2 changed files with 10 additions and 9 deletions

View file

@ -301,13 +301,13 @@ namespace SparkleShare {
MaxValue = 100.0
};
// ProgressIndicator.StartAnimation (this);
ProgressIndicator.StartAnimation (this);
Controller.UpdateProgressBarEvent += delegate (double percentage) {
InvokeOnMainThread (delegate {
Controller.UpdateProgressBarEvent += delegate (double percentage) {
InvokeOnMainThread (delegate {
ProgressIndicator.DoubleValue = percentage;
});
};
};
ContentView.AddSubview (ProgressIndicator);
@ -317,12 +317,12 @@ namespace SparkleShare {
};
CancelButton = new NSButton () {
Title = "Cancel"
};
Title = "Cancel"
};
CancelButton.Activated += delegate {
CancelButton.Activated += delegate {
Controller.SyncingCancelled ();
};
};
Buttons.Add (FinishButton);
Buttons.Add (CancelButton);
@ -379,6 +379,8 @@ namespace SparkleShare {
NSApplication.SharedApplication.RequestUserAttention
(NSRequestUserAttentionType.CriticalRequest);
NSSound.FromName ("Glass").Play ();
break;
}
}

View file

@ -396,7 +396,6 @@ namespace SparkleShare {
case PageType.Finished: {
UrgencyHint = true;
NSSound.FromName ("Glass").Play ();
if (!HasToplevelFocus) {
string title = String.Format (_("{0} has been successfully added"), Controller.SyncingFolder);