Fix linux build

This commit is contained in:
Hylke Bons 2012-02-26 15:51:00 +00:00
parent e3c7bccbe9
commit b1ff39002b
3 changed files with 9 additions and 8 deletions

View file

@ -73,10 +73,10 @@ namespace SparkleShare {
UnixFileInfo file_info = new UnixFileInfo (desktopfile_path);
file_info.Create (FileAccessPermissions.UserReadWriteExecute);
SparkleHelpers.DebugInfo ("Controller", "Added " + app_path + " to login items");
SparkleHelpers.DebugInfo ("Controller", "Added SparkleShare to login items");
} catch (Exception e) {
SparkleHelpers.DebugInfo ("Controller", "Failed adding " + app_path + " to login items: " + e.Message);
SparkleHelpers.DebugInfo ("Controller", "Failed adding SparkleShare to login items: " + e.Message);
}
}
}

View file

@ -620,11 +620,13 @@ namespace SparkleShare {
Button finish_button = new Button (_("Finish"));
finish_button.Clicked += delegate {
Controller.FinishPageCompleted ();
Controller.TutorialPageCompleted ();
};
check_button = new CheckButton ("Add SparkleShare to startup items");
CheckButton check_button = new CheckButton ("Add SparkleShare to startup items") {
Active = true
};
check_button.Toggled += delegate {
Controller.StartupItemChanged (check_button.Active);

View file

@ -152,10 +152,8 @@ namespace SparkleShare {
}
if (page_type == PageType.Add) {
if (!Program.Controller.FirstRun &&
(TutorialPageNumber == 0 ||
TutorialPageNumber > 4)) {
if (!Program.Controller.FirstRun && TutorialPageNumber == 0) {
if (ChangePageEvent != null)
ChangePageEvent (page_type, null);
@ -163,7 +161,6 @@ namespace SparkleShare {
ShowWindowEvent ();
SelectedPluginChanged (SelectedPluginIndex);
}
return;
@ -235,6 +232,8 @@ namespace SparkleShare {
TutorialPageNumber++;
if (TutorialPageNumber == 5) {
TutorialPageNumber = 0;
if (HideWindowEvent != null)
HideWindowEvent ();