Author: aolk
Date: 2006-01-31 14:43:01 -0500 (Tue, 31 Jan 2006)
New Revision: 56354
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs
Log:
* MimeIcon.cs: Fix for #77409
2006-01-31 Alexander Olk <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-01-31 19:08:58 UTC (rev 56353)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-01-31 19:43:01 UTC (rev 56354)
@@ -1,5 +1,9 @@
2006-01-31 Alexander Olk <[EMAIL PROTECTED]>
+ * MimeIcon.cs: Fix for #77409
+
+2006-01-31 Alexander Olk <[EMAIL PROTECTED]>
+
* XplatUIX11GTK.cs: Initial import
2006-01-31 Jordi Mas i Hernandez <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs
2006-01-31 19:08:58 UTC (rev 56353)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MimeIcon.cs
2006-01-31 19:43:01 UTC (rev 56354)
@@ -898,6 +898,15 @@
{
string resolv_path = ResolvePath (main_icon_theme_path);
+ // use default gnome icon theme if there isn't a
"/48x48" or "/scalable" dir
+ // for the current theme
+ if (resolv_path == String.Empty)
+ foreach (string path in icon_paths)
+ if (Directory.Exists (path + "/gnome"))
{
+ resolv_path = path +
"/gnome/48x48/";
+ break;
+ }
+
string[] dirs = Directory.GetDirectories (resolv_path);
Hashtable name_mime_hash = new Hashtable ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches