[Monodevelop-patches-list] r1444 - in trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils: . FileIcons
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Mon Apr 12 10:30:52 EDT 2004
Author: kris
Date: 2004-04-12 10:30:52 -0400 (Mon, 12 Apr 2004)
New Revision: 1444
Modified:
trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/ChangeLog
trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs
Log:
First kris commit. Shouldn't be that dangerous yet.
Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/ChangeLog 2004-04-12 06:09:50 UTC (rev 1443)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/ChangeLog 2004-04-12 14:30:52 UTC (rev 1444)
@@ -1,3 +1,9 @@
+2004-04-12 Kristian Rietveld <kris at gtk.org>
+
+ * FileIcons/FileIconLoader.cs: if LookupIcon returns an empty string,
+ but doesn't throw an exception, also return a pixbuf of
+ gnome-fs-regular.
+
2004-03-29 Todd Berman <tberman at sevenl.net>
* FileIcons/FileIconLoader.cs: fix from richard torkar to workaround a
Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs 2004-04-12 06:09:50 UTC (rev 1443)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs 2004-04-12 14:30:52 UTC (rev 1444)
@@ -48,6 +48,9 @@
string p_filename = "gnome-fs-regular";
try {
p_filename = iconTheme.LookupIcon (type, 24, new Gnome.IconData (), out i);
+ if (p_filename == "") {
+ return new Gdk.Pixbuf ("../data/resources/icons/gnome-fs-regular.png");
+ }
} catch {
return new Gdk.Pixbuf ("../data/resources/icons/gnome-fs-regular.png");
}
More information about the Monodevelop-patches-list
mailing list