[Monodevelop-patches-list] r939 - in trunk/MonoDevelop: build/data/resources/icons src/Libraries/MonoDevelop.Gui.Utils/FileIcons
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Wed Feb 18 15:55:06 EST 2004
Author: tberman
Date: 2004-02-18 15:55:06 -0500 (Wed, 18 Feb 2004)
New Revision: 939
Added:
trunk/MonoDevelop/build/data/resources/icons/gnome-fs-regular.png
Modified:
trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs
Log:
fix icon themery issues once and for all i do believe
Added: trunk/MonoDevelop/build/data/resources/icons/gnome-fs-regular.png
===================================================================
(Binary files differ)
Property changes on: trunk/MonoDevelop/build/data/resources/icons/gnome-fs-regular.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs 2004-02-18 20:17:26 UTC (rev 938)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs 2004-02-18 20:55:06 UTC (rev 939)
@@ -29,8 +29,6 @@
Gnome.IconLookupResultFlags result;
string icon = Gnome.Icon.LookupSync (iconTheme, thumbnailFactory, filename, "", Gnome.IconLookupFlags.None, out result);
Gdk.Pixbuf pix = GetPixbufForType (icon);
- if (pix == null)
- return null;
return pix.ScaleSimple (height, width, Gdk.InterpType.Bilinear);
}
@@ -43,7 +41,7 @@
try {
p_filename = iconTheme.LookupIcon (type, 24, new Gnome.IconData (), out i);
} catch {
- return null;
+ return new Gdk.Pixbuf ("../data/resources/icons/gnome-fs-regular.png");
}
bf = new Gdk.Pixbuf (p_filename);
iconHash [type] = bf;
More information about the Monodevelop-patches-list
mailing list