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

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Fri Jan 23 19:16:09 EST 2004


Author: benm
Date: 2004-01-23 19:16:08 -0500 (Fri, 23 Jan 2004)
New Revision: 623

Modified:
   trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeNode.cs
Log:
fix the always collapse problem

Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeNode.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeNode.cs	2004-01-23 23:52:06 UTC (rev 622)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui/Tree/TreeNode.cs	2004-01-24 00:16:08 UTC (rev 623)
@@ -30,7 +30,7 @@
 			}
 			set {
 				text = value;
-				OnNodesChanged ();
+				UpdateBacking ();
 			}
 		}
 		
@@ -40,6 +40,7 @@
 			}
 			set {
 				image = value;
+				UpdateBacking ();
 			}
 		}
 
@@ -69,6 +70,9 @@
 		
 		public void UpdateBacking ()
 		{
+			if (TreeView == null)
+				return;
+			
 			TreeView.Model.SetValue (TreeIter, 0, text);
 			TreeView.Model.SetValue (TreeIter, 1, image);
 		}




More information about the Monodevelop-patches-list mailing list