[Monodevelop-patches-list] r748 - trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Feb 1 22:14:32 EST 2004
Author: tberman
Date: 2004-02-01 22:14:31 -0500 (Sun, 01 Feb 2004)
New Revision: 748
Modified:
trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs
Log:
blah
Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs 2004-02-02 02:20:33 UTC (rev 747)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Utils/FileIcons/FileIconLoader.cs 2004-02-02 03:14:31 UTC (rev 748)
@@ -30,15 +30,17 @@
string icon = Gnome.Icon.LookupSync (iconTheme, thumbnailFactory, filename, "", Gnome.IconLookupFlags.None, out result);
Gdk.Pixbuf big_pixbuf = (Gdk.Pixbuf) iconHash [icon];
if (big_pixbuf == null) {
- int i;
- string p_filename = iconTheme.LookupIcon (icon, 24, new Gnome.IconData (), out i);
- big_pixbuf = new Gdk.Pixbuf (p_filename);
+ big_pixbuf = GetPixbufForType (icon);
iconHash [icon] = big_pixbuf;
}
return big_pixbuf.ScaleSimple (height, width, Gdk.InterpType.Bilinear);
}
-
+ public static Gdk.Pixbuf GetPixbufForType (string type)
+ {
+ int i;
+ string p_filename = iconTheme.LookupIcon (type, 24, new Gnome.IconData (), out i);
+ return new Gdk.Pixbuf (p_filename);
+ }
}
-
}
More information about the Monodevelop-patches-list
mailing list