Author: spouliot
Date: 2006-12-19 11:31:42 -0500 (Tue, 19 Dec 2006)
New Revision: 69754

Modified:
   trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog
   trunk/mcs/class/System.Drawing/System.Drawing/Icon.cs
Log:
2006-12-19  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * Icon.cs: Dummy implementation of ExtractAssociatedIcon to always 
        return SystemIcons.WinLogo (which is better than throwing an NIE).
        Updated MonoTODO, to a MonoLimitation, to reflect the change.



Modified: trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog     2006-12-19 
16:31:10 UTC (rev 69753)
+++ trunk/mcs/class/System.Drawing/System.Drawing/ChangeLog     2006-12-19 
16:31:42 UTC (rev 69754)
@@ -1,3 +1,9 @@
+2006-12-19  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * Icon.cs: Dummy implementation of ExtractAssociatedIcon to always 
+       return SystemIcons.WinLogo (which is better than throwing an NIE).
+       Updated MonoTODO, to a MonoLimitation, to reflect the change.
+
 2006-12-14  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * Image.cs: Rework Clone so it doesn't confuse MoMA to report a NIE.

Modified: trunk/mcs/class/System.Drawing/System.Drawing/Icon.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing/Icon.cs       2006-12-19 
16:31:10 UTC (rev 69753)
+++ trunk/mcs/class/System.Drawing/System.Drawing/Icon.cs       2006-12-19 
16:31:42 UTC (rev 69754)
@@ -240,10 +240,15 @@
                {
                }
 
-               [MonoTODO ("Method isn't implemented.")]
+               [MonoLimitation ("The same icon, SystemIcons.WinLogo, is 
returned for all file types.")]
                public static Icon ExtractAssociatedIcon (string filePath)
                {
-                       throw new NotImplementedException ();
+                       if ((filePath == null) || (filePath.Length == 0))
+                               throw new ArgumentException (Locale.GetText 
("Null or empty path."), "filePath");
+                       if (!File.Exists (filePath))
+                               throw new FileNotFoundException (Locale.GetText 
("Couldn't find specified file."), filePath);
+
+                       return SystemIcons.WinLogo;
                }       
 #endif
 

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

Reply via email to