Author: andreia
Date: 2008-02-05 20:20:48 -0500 (Tue, 05 Feb 2008)
New Revision: 94979

Modified:
   
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUICarbon.cs
   
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIWin32.cs
Log:
2008-02-05  Andreia Gaita  <[EMAIL PROTECTED]>
[Backport to 1.9]
* XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
the window so that the check on Control.UpdateZOrderOfChild passes on non-X
platforms. Fixes #359036

Modified: 
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- 
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
    2008-02-06 01:14:59 UTC (rev 94978)
+++ 
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
    2008-02-06 01:20:48 UTC (rev 94979)
@@ -1,3 +1,12 @@
+2008-02-05  Andreia Gaita  <[EMAIL PROTECTED]>
+       [Backport to 1.9]
+       * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we 
create 
+       the window so that the check on Control.UpdateZOrderOfChild passes on 
non-X
+       platforms. Fixes #359036
+       
+       Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
+       platform-specific flags.
+       
 2008-02-05  Everaldo Canuto  <[EMAIL PROTECTED]>
 
        [Backport to 1.9]

Modified: 
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUICarbon.cs
===================================================================
--- 
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUICarbon.cs
     2008-02-06 01:14:59 UTC (rev 94978)
+++ 
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUICarbon.cs
     2008-02-06 01:20:48 UTC (rev 94979)
@@ -1788,6 +1788,7 @@
                        HIViewSetVisible (hwnd.client_window, visible);
 
                        hwnd.visible = visible;
+                       hwnd.Mapped = true;
                        return true;
                }
                

Modified: 
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIWin32.cs
===================================================================
--- 
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIWin32.cs
      2008-02-06 01:14:59 UTC (rev 94978)
+++ 
branches/mono-1-9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIWin32.cs
      2008-02-06 01:20:48 UTC (rev 94979)
@@ -1596,7 +1596,7 @@
                        }
 
                        hwnd.ClientWindow = WindowHandle;
-
+                       hwnd.Mapped = true;
                        Win32SetWindowLong(WindowHandle, 
WindowLong.GWL_USERDATA, 
(uint)ThemeEngine.Current.DefaultControlBackColor.ToArgb());
 
                        return WindowHandle;

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

Reply via email to