[Monodevelop-patches-list] r564 - trunk/MonoDevelop/src/Main/Base/Gui/Dialogs

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sun Jan 18 23:44:53 EST 2004


Author: tberman
Date: 2004-01-18 23:44:53 -0500 (Sun, 18 Jan 2004)
New Revision: 564

Modified:
   trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ProjectOptionsDialog.cs
   trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/TreeViewOptions.cs
Log:
much nicer now


Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ProjectOptionsDialog.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ProjectOptionsDialog.cs	2004-01-19 04:32:27 UTC (rev 563)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/ProjectOptionsDialog.cs	2004-01-19 04:44:53 UTC (rev 564)
@@ -35,7 +35,7 @@
 		{
 			this.project = project;
 			this.configurationNode = configurationNode;
-			//this.Title = StringParserService.Parse("${res:Dialog.Options.ProjectOptions.DialogName}");
+			this.Title = StringParserService.Parse("${res:Dialog.Options.ProjectOptions.DialogName}");
 			
 			//((TreeView)ControlDictionary["optionsTreeView"]).MouseUp        += new MouseEventHandler(TreeViewMouseUp);
 			//((TreeView)ControlDictionary["optionsTreeView"]).AfterLabelEdit += new NodeLabelEditEventHandler(AfterLabelEdit);
@@ -65,7 +65,7 @@
 				configurationTreeNode.Nodes.Add(newNode);
 			} 
 			((TreeView)ControlDictionary["optionsTreeView"]).Nodes.Add(configurationTreeNode);*/
-			
+			SelectFirstNode ();	
 		}
 		
 		public void AddProjectConfiguration()

Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/TreeViewOptions.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/TreeViewOptions.cs	2004-01-19 04:32:27 UTC (rev 563)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/TreeViewOptions.cs	2004-01-19 04:44:53 UTC (rev 564)
@@ -82,6 +82,12 @@
 				return properties;
 			}
 		}
+
+		protected string Title {
+			set {
+				TreeViewOptionDialog.Title = value;
+			}
+		}
 		
 		protected void AcceptEvent(object sender, EventArgs e)
 		{
@@ -184,6 +190,11 @@
 			if (node != null) {
 				AddNodes(properties, Gtk.TreeIter.Zero, node.BuildChildItems(this));
 			}
+			SelectFirstNode ();
+		}
+
+		protected void SelectFirstNode ()
+		{
 			TreeView.GrabFocus ();
 			SelectNode (null, null);
 		}




More information about the Monodevelop-patches-list mailing list