[about] hook up VersionUpToDate event

This commit is contained in:
Hylke Bons 2011-03-24 10:28:05 +00:00
parent 6310ba1f76
commit 0749c1a5ce

View file

@ -50,8 +50,8 @@ namespace SparkleShare {
Resizable = false;
CreateAbout ();
SparkleShare.Controller.CheckForNewVersion ();
SparkleShare.Controller.NewVersionAvailable += delegate (string new_version) {
ApplicationId.Invoke (delegate {
@ -61,6 +61,18 @@ namespace SparkleShare {
});
};
SparkleShare.Controller.VersionUpToDate += delegate {
ApplicationId.Invoke (delegate {
Version.Markup = "<small><span fgcolor='#73d216'>You are running the latest version.</span></small>";
Version.ShowAll ();
});
};
}