setup: Open Folder -> Show Files

This commit is contained in:
Hylke Bons 2012-10-21 15:05:22 +01:00
parent e7a348624c
commit 82aaf0763c
4 changed files with 17 additions and 18 deletions

View file

@ -691,10 +691,10 @@ namespace SparkleShare {
Description = "You can find it in your SparkleShare folder";
// A button that opens the synced folder
Button open_folder_button = new Button ("Show Folder");
Button show_files_button = new Button ("Show Files");
open_folder_button.Clicked += delegate {
Controller.OpenFolderClicked ();
show_files_button.Clicked += delegate {
Controller.ShowFilesClicked ();
};
Button finish_button = new Button ("Finish");
@ -706,8 +706,7 @@ namespace SparkleShare {
if (warnings.Length > 0) {
Image warning_image = new Image (
SparkleUIHelpers.GetIcon ("dialog-information", 24)
);
SparkleUIHelpers.GetIcon ("dialog-information", 24));
Label warning_label = new Label (warnings [0]) {
Xalign = 0,
@ -728,7 +727,7 @@ namespace SparkleShare {
}
AddButton (open_folder_button);
AddButton (show_files_button);
AddButton (finish_button);
break;

View file

@ -41,7 +41,7 @@ namespace SparkleShare {
private NSButton StartupCheckButton;
private NSButton HistoryCheckButton;
private NSButton ShowPasswordCheckButton;
private NSButton OpenFolderButton;
private NSButton ShowFilesButton;
private NSButton FinishButton;
private NSImage SlideImage;
private NSImageView SlideImageView;
@ -804,8 +804,8 @@ namespace SparkleShare {
}
OpenFolderButton = new NSButton () {
Title = "Show folder"
ShowFilesButton = new NSButton () {
Title = "Show files"
};
FinishButton = new NSButton () {
@ -813,8 +813,8 @@ namespace SparkleShare {
};
OpenFolderButton.Activated += delegate {
Controller.OpenFolderClicked ();
ShowFilesButton.Activated += delegate {
Controller.ShowFilesClicked ();
};
FinishButton.Activated += delegate {
@ -823,7 +823,7 @@ namespace SparkleShare {
Buttons.Add (FinishButton);
Buttons.Add (OpenFolderButton);
Buttons.Add (ShowFilesButton);
NSApplication.SharedApplication.RequestUserAttention (NSRequestUserAttentionType.CriticalRequest);
}

View file

@ -536,7 +536,7 @@ namespace SparkleShare {
}
public void OpenFolderClicked ()
public void ShowFilesClicked ()
{
string folder_name = Path.GetFileName (PreviousPath);

View file

@ -754,8 +754,8 @@ namespace SparkleShare {
Content = "Finish"
};
Button open_folder_button = new Button () {
Content = "Show folder"
Button show_files_button = new Button () {
Content = "Show files"
};
if (warnings.Length > 0) {
@ -782,7 +782,7 @@ namespace SparkleShare {
TaskbarItemInfo.ProgressValue = 0.0;
TaskbarItemInfo.ProgressState = TaskbarItemProgressState.None;
Buttons.Add (open_folder_button);
Buttons.Add (show_files_button);
Buttons.Add (finish_button);
@ -790,8 +790,8 @@ namespace SparkleShare {
Controller.FinishPageCompleted ();
};
open_folder_button.Click += delegate {
Controller.OpenFolderClicked ();
show_files_button.Click += delegate {
Controller.ShowFilesClicked ();
};