[Monodevelop-patches-list] r1295 - in trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils: . FileIcons

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Mon Mar 29 16:32:47 EST 2004


Author: tberman
Date: 2004-03-29 16:32:47 -0500 (Mon, 29 Mar 2004)
New Revision: 1295

Modified:
   trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/ChangeLog
   trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs
Log:
fix from richard torkar, the master of debugging for a really long time without even a backtrace


Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/ChangeLog	2004-03-29 21:11:13 UTC (rev 1294)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/ChangeLog	2004-03-29 21:32:47 UTC (rev 1295)
@@ -1,3 +1,8 @@
+2004-03-29  Todd Berman  <tberman at sevenl.net>
+
+	* FileIcons/FileIconLoader.cs: fix from richard torkar to workaround a
+	strange Gnome issue.
+
 2004-03-25  Todd Berman  <tberman at sevenl.net>
 
 	* VFS/Vfs.cs: Added new code from Dashboard to provide a different

Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs	2004-03-29 21:11:13 UTC (rev 1294)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs	2004-03-29 21:32:47 UTC (rev 1295)
@@ -29,7 +29,10 @@
 			Gnome.IconLookupResultFlags result;
 			string icon;
 			try {
-				icon = Gnome.Icon.LookupSync (iconTheme, thumbnailFactory, filename, "", Gnome.IconLookupFlags.None, out result);
+				if (filename == "Documentation")
+					icon = "gnome-fs-regular";
+				else
+					icon = Gnome.Icon.LookupSync (iconTheme, thumbnailFactory, filename, "", Gnome.IconLookupFlags.None, out result);
 			} catch {
 				icon = "gnome-fs-regular";
 			}




More information about the Monodevelop-patches-list mailing list