setup: select On My Own Server plugin by default
This commit is contained in:
parent
ca8770374f
commit
7dcfa332b5
|
@ -166,16 +166,19 @@ namespace SparkleShare {
|
||||||
PathEntry = new SparkleEntry ();
|
PathEntry = new SparkleEntry ();
|
||||||
AddressEntry = new SparkleEntry ();
|
AddressEntry = new SparkleEntry ();
|
||||||
|
|
||||||
|
Controller.SelectListPluginEvent += delegate (int index) {
|
||||||
|
Application.Invoke (delegate {
|
||||||
|
TreeSelection selection = tree.Selection;
|
||||||
|
TreePath path = new TreePath (index.ToString ());
|
||||||
|
selection.SelectPath (path);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
// Select the first plugin by default
|
// Select the first plugin by default
|
||||||
TreeSelection default_selection = tree.Selection;
|
TreeSelection default_selection = tree.Selection;
|
||||||
TreePath default_path = new TreePath ("0");
|
TreePath default_path = new TreePath ("0");
|
||||||
default_selection.SelectPath (default_path);
|
default_selection.SelectPath (default_path);
|
||||||
|
Controller.SelectedPluginChanged (0);
|
||||||
Controller.SelectListPluginEvent += delegate (int index) {
|
|
||||||
TreeSelection selection = tree.Selection;
|
|
||||||
TreePath path = new TreePath (index.ToString ());
|
|
||||||
selection.SelectPath (path);
|
|
||||||
};
|
|
||||||
|
|
||||||
Controller.ChangeAddressFieldEvent += delegate (string text,
|
Controller.ChangeAddressFieldEvent += delegate (string text,
|
||||||
string example_text, FieldState state) {
|
string example_text, FieldState state) {
|
||||||
|
|
Loading…
Reference in a new issue