From ae2c11fc71314591c91aef79a59701f676c5f0a7 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 12 Oct 2013 15:20:06 +0200 Subject: [PATCH] gnome setup: After failed add, scroll list to selected plugin --- SparkleShare/Linux/SparkleSetup.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SparkleShare/Linux/SparkleSetup.cs b/SparkleShare/Linux/SparkleSetup.cs index e0e79281..dbd6d714 100755 --- a/SparkleShare/Linux/SparkleSetup.cs +++ b/SparkleShare/Linux/SparkleSetup.cs @@ -250,6 +250,9 @@ namespace SparkleShare { layout_vertical.PackStart (scrolled_window, true, true, 0); layout_vertical.PackStart (layout_fields, false, false, 0); + tree_view.GrabFocus (); + tree_view.ScrollToCell (new TreePath ("" + Controller.SelectedPluginIndex), null, true, 0, 0); + Add (layout_vertical); Button cancel_button = new Button ("Cancel"); @@ -303,7 +306,6 @@ namespace SparkleShare { AddButton (add_button); Controller.CheckAddPage (address_entry.Text, path_entry.Text, 1); - tree_view.GrabFocus (); } if (type == PageType.Invite) {