[Monodevelop-patches-list] r545 - trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sun Jan 18 14:39:20 EST 2004


Author: pedroas
Date: 2004-01-18 14:39:20 -0500 (Sun, 18 Jan 2004)
New Revision: 545

Modified:
   trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeNode.cs
   trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeView.cs
Log:
Implemented remove properly...


Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeNode.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeNode.cs	2004-01-18 18:56:37 UTC (rev 544)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeNode.cs	2004-01-18 19:39:20 UTC (rev 545)
@@ -107,8 +107,8 @@
 		}
 		
 		public void Remove() {
-			if (TreeView != null) {
-				TreeView.RemoveNode(this);
+			if (parent != null) {
+				parent.Nodes.Remove(this);
 			}
 		}
 
@@ -152,7 +152,7 @@
 			get {
 				Gtk.TreeIter iter;
 				if (TreeView.Model.GetIterFromString(out iter, TreePath) == false) {
-					throw new Exception("Error calculating iter");
+					throw new Exception("Error calculating iter for path " + TreePath);
 				}
 				return iter;
 			}

Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeView.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeView.cs	2004-01-18 18:56:37 UTC (rev 544)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeView.cs	2004-01-18 19:39:20 UTC (rev 545)
@@ -19,6 +19,8 @@
 			this.canEdit = canEdit;
 
 			HeadersVisible = false;
+			SearchColumn = 0;
+			EnableSearch = true;
 			Gtk.TreeViewColumn complete_column = new Gtk.TreeViewColumn ();
 			complete_column.Title = "column";
 




More information about the Monodevelop-patches-list mailing list