Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ward <matt.ward@xamarin.com>2015-07-31 13:53:40 +0300
committerMatt Ward <matt.ward@xamarin.com>2015-07-31 13:53:40 +0300
commitf70b5f44b9afc71bd309e8b247527aba3b2f3871 (patch)
treeedd27dcf1961b7cc67d46b007ddc6d06bdb404b0 /main/src/core/MonoDevelop.Ide
parent0235ff62bad1e1ef0d19b9772992d00ed45a3b9b (diff)
[Ide] Ensure last selected template is on screen in New Project dialog
In the Other/Misc category all the project templates do not fit on screen. If the last selected project template was off screen then on opening the New Project dialog again the template was still off screen but selected. Now the New Project dialog ensures that the last selected project template is on screen by scrolling if necessary.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/GtkNewProjectDialogBackend.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/GtkNewProjectDialogBackend.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/GtkNewProjectDialogBackend.cs
index 83c534cd30..c4570c668d 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/GtkNewProjectDialogBackend.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/GtkNewProjectDialogBackend.cs
@@ -380,6 +380,8 @@ namespace MonoDevelop.Ide.Projects
var currentTemplate = templatesListStore.GetValue (iter, TemplateColumn) as SolutionTemplate;
if (currentTemplate == template) {
templatesTreeView.Selection.SelectIter (iter);
+ TreePath path = templatesListStore.GetPath (iter);
+ templatesTreeView.ScrollToCell (path, null, true, 1, 0);
break;
}
}