Author: jpobst
Date: 2007-09-06 11:11:01 -0400 (Thu, 06 Sep 2007)
New Revision: 85424

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
Log:
2007-09-06  Jonathan Pobst  <[EMAIL PROTECTED]>

        * TreeView.cs: If we found a TreeNode to display a context menu, but
        it doesn't have one to show, let the TreeView display its menu
        instead.  [Fixes bug #82680]

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-09-06 15:09:07 UTC (rev 85423)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-09-06 15:11:01 UTC (rev 85424)
@@ -1,5 +1,11 @@
 2007-09-06  Jonathan Pobst  <[EMAIL PROTECTED]>
 
+       * TreeView.cs: If we found a TreeNode to display a context menu, but
+       it doesn't have one to show, let the TreeView display its menu
+       instead.  [Fixes bug #82680]
+
+2007-09-06  Jonathan Pobst  <[EMAIL PROTECTED]>
+
        * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
        OnPaintInternal instead.  Give the internal TextBox a Border property
        so it can draw itself more correctly.  [Fixes bug #82653]

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs      
2007-09-06 15:09:07 UTC (rev 85423)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs      
2007-09-06 15:11:01 UTC (rev 85424)
@@ -2257,7 +2257,8 @@
                                return true;
                        }
                        
-                       return true;
+                       // The node we found did not have its own menu, let the 
parent try to display its menu
+                       return false;
                }
 #endif
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to