Author: spouliot
Date: 2005-05-09 11:57:52 -0400 (Mon, 09 May 2005)
New Revision: 44287

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs
Log:
XplatUI.cs: Use PlatformID.Unix under NET_2_0.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-05-09 15:52:11 UTC (rev 44286)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-05-09 15:57:52 UTC (rev 44287)
@@ -1,3 +1,7 @@
+2005-05-09  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * XplatUI.cs: Use PlatformID.Unix under NET_2_0. 
+
 2005-05-06  Peter Bartok  <[EMAIL PROTECTED]>
 
        * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs       
2005-05-09 15:52:11 UTC (rev 44286)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs       
2005-05-09 15:57:52 UTC (rev 44287)
@@ -82,7 +82,11 @@
                        // Don't forget to throw the mac in here somewhere, too
                        default_class_name="SWFClass";
 
+#if NET_2_0
+                       if (Environment.OSVersion.Platform == PlatformID.Unix) {
+#else
                        if (Environment.OSVersion.Platform == (PlatformID)128) {
+#endif
                                if (Environment.GetEnvironmentVariable 
("MONO_MWF_USE_QUARTZ_BACKEND") != null)
                                        driver=XplatUIOSX.GetInstance();
                                else

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

Reply via email to