linux setup: clean up
This commit is contained in:
parent
b92d3f89e9
commit
e22eb9417d
|
@ -241,40 +241,39 @@ namespace SparkleShare {
|
||||||
path_entry.Sensitive = false;
|
path_entry.Sensitive = false;
|
||||||
|
|
||||||
// TODO: Scroll to the selection
|
// TODO: Scroll to the selection
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
address_entry.Changed += delegate {
|
address_entry.Changed += delegate {
|
||||||
Controller.CheckAddPage (address_entry.Text, path_entry.Text, tree.SelectedRow);
|
Controller.CheckAddPage (address_entry.Text, path_entry.Text, tree.SelectedRow);
|
||||||
};
|
};
|
||||||
|
|
||||||
layout_address.PackStart (new Label () {
|
layout_address.PackStart (new Label () {
|
||||||
Markup = "<b>" + "Address:" + "</b>",
|
Markup = "<b>" + "Address:" + "</b>",
|
||||||
Xalign = 0
|
Xalign = 0
|
||||||
}, true, true, 0);
|
}, true, true, 0);
|
||||||
|
|
||||||
layout_address.PackStart (address_entry, false, false, 0);
|
layout_address.PackStart (address_entry, false, false, 0);
|
||||||
layout_address.PackStart (address_example, false, false, 0);
|
layout_address.PackStart (address_example, false, false, 0);
|
||||||
|
|
||||||
path_entry.Changed += delegate {
|
path_entry.Changed += delegate {
|
||||||
Controller.CheckAddPage (address_entry.Text, path_entry.Text, tree.SelectedRow);
|
Controller.CheckAddPage (address_entry.Text, path_entry.Text, tree.SelectedRow);
|
||||||
};
|
};
|
||||||
|
|
||||||
layout_path.PackStart (new Label () {
|
layout_path.PackStart (new Label () {
|
||||||
Markup = "<b>" + "Remote Path:" + "</b>",
|
Markup = "<b>" + "Remote Path:" + "</b>",
|
||||||
Xalign = 0
|
Xalign = 0
|
||||||
}, true, true, 0);
|
}, true, true, 0);
|
||||||
|
|
||||||
layout_path.PackStart (path_entry, false, false, 0);
|
layout_path.PackStart (path_entry, false, false, 0);
|
||||||
layout_path.PackStart (path_example, false, false, 0);
|
layout_path.PackStart (path_example, false, false, 0);
|
||||||
|
|
||||||
layout_fields.PackStart (layout_address);
|
layout_fields.PackStart (layout_address);
|
||||||
layout_fields.PackStart (layout_path);
|
layout_fields.PackStart (layout_path);
|
||||||
|
|
||||||
layout_vertical.PackStart (new Label (""), false, false, 0);
|
layout_vertical.PackStart (new Label (""), false, false, 0);
|
||||||
layout_vertical.PackStart (scrolled_window, true, true, 0);
|
layout_vertical.PackStart (scrolled_window, true, true, 0);
|
||||||
|
@ -282,25 +281,22 @@ namespace SparkleShare {
|
||||||
|
|
||||||
Add (layout_vertical);
|
Add (layout_vertical);
|
||||||
|
|
||||||
// Cancel button
|
Button cancel_button = new Button ("Cancel");
|
||||||
Button cancel_button = new Button ("Cancel");
|
Button add_button = new Button ("Add") { Sensitive = false };
|
||||||
Button add_button = new Button ("Add") { Sensitive = false };
|
|
||||||
|
|
||||||
cancel_button.Clicked += delegate { Controller.PageCancelled (); };
|
cancel_button.Clicked += delegate { Controller.PageCancelled (); };
|
||||||
|
|
||||||
add_button.Clicked += delegate {
|
add_button.Clicked += delegate {
|
||||||
Controller.AddPageCompleted (address_entry.Text, path_entry.Text);
|
Controller.AddPageCompleted (address_entry.Text, path_entry.Text);
|
||||||
};
|
};
|
||||||
|
|
||||||
Controller.UpdateAddProjectButtonEvent += delegate (bool button_enabled) {
|
Controller.UpdateAddProjectButtonEvent += delegate (bool button_enabled) {
|
||||||
Application.Invoke (delegate {
|
Application.Invoke (delegate {
|
||||||
add_button.Sensitive = button_enabled;
|
add_button.Sensitive = button_enabled;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
CheckButton check_button = new CheckButton ("Fetch prior history") { Active = false };
|
CheckButton check_button = new CheckButton ("Fetch prior history") { Active = false };
|
||||||
|
|
||||||
check_button.Toggled += delegate { Controller.HistoryItemChanged (check_button.Active); };
|
check_button.Toggled += delegate { Controller.HistoryItemChanged (check_button.Active); };
|
||||||
|
|
||||||
AddOption (check_button);
|
AddOption (check_button);
|
||||||
|
|
Loading…
Reference in a new issue