Author: calberto
Date: 2007-09-08 04:39:05 -0400 (Sat, 08 Sep 2007)
New Revision: 85514

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
   
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
Log:
2007-09-08  Carlos Alberto Cortez <[EMAIL PROTECTED]>

        Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
        fixes #82734.

        * ListView.cs: Remove extra space between rows in Details view (match
        .Net). 
        * ThemeWin32Classic.cs: Header text should use ListView.Font, not
        the DefaultFont.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-09-08 08:28:02 UTC (rev 85513)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-09-08 08:39:05 UTC (rev 85514)
@@ -1,3 +1,13 @@
+2007-09-08  Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
+       Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
+       fixes #82734.
+
+       * ListView.cs: Remove extra space between rows in Details view (match
+       .Net). 
+       * ThemeWin32Classic.cs: Header text should use ListView.Font, not
+       the DefaultFont.
+
 2007-09-08  Gert Driesen  <[EMAIL PROTECTED]>
 
        * Application.cs: Modified ProductVersion to return value of

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2007-09-08 08:28:02 UTC (rev 85513)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2007-09-08 08:39:05 UTC (rev 85514)
@@ -1741,7 +1741,7 @@
 #endif
                                {
                                        SetItemLocation (i, 0, y, 0, 0);
-                                       y += item_height + 4;
+                                       y += item_height;
                                }
                        }
 

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs 
    2007-09-08 08:28:02 UTC (rev 85513)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs 
    2007-09-08 08:39:05 UTC (rev 85514)
@@ -2558,7 +2558,7 @@
                                                if (rect.Width <= 0)
                                                        continue;
 
-                                               dc.DrawString (col.Text, 
DefaultFont,
+                                               dc.DrawString (col.Text, 
control.Font,
                                                               
SystemBrushes.ControlText,
                                                               rect, 
col.Format);
                                        }
@@ -2589,7 +2589,7 @@
                        if (rect.Width <= 0)
                                return;
                        color = Color.FromArgb (0x7f, ColorControlText.R, 
ColorControlText.G, ColorControlText.B);
-                       dc.DrawString (col.Text, DefaultFont, 
ResPool.GetSolidBrush (color), rect, col.Format);
+                       dc.DrawString (col.Text, view.Font, 
ResPool.GetSolidBrush (color), rect, col.Format);
                        dc.DrawLine (ResPool.GetSizedPen (ColorHighlight, 2), 
target_x, 0, target_x, col.Rect.Height);
                }
 

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

Reply via email to