[Monodevelop-patches-list] r938 - trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Wed Feb 18 15:17:26 EST 2004
Author: tberman
Date: 2004-02-18 15:17:26 -0500 (Wed, 18 Feb 2004)
New Revision: 938
Modified:
trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs
Log:
blah blah blah
Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs 2004-02-18 19:58:53 UTC (rev 937)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs 2004-02-18 20:17:26 UTC (rev 938)
@@ -28,7 +28,10 @@
{
Gnome.IconLookupResultFlags result;
string icon = Gnome.Icon.LookupSync (iconTheme, thumbnailFactory, filename, "", Gnome.IconLookupFlags.None, out result);
- return GetPixbufForType (icon).ScaleSimple (height, width, Gdk.InterpType.Bilinear);
+ Gdk.Pixbuf pix = GetPixbufForType (icon);
+ if (pix == null)
+ return null;
+ return pix.ScaleSimple (height, width, Gdk.InterpType.Bilinear);
}
public static Gdk.Pixbuf GetPixbufForType (string type)
More information about the Monodevelop-patches-list
mailing list