[Monodevelop-patches-list] r882 - trunk/MonoDevelop/src/Main/Base/Services
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Fri Feb 13 16:10:46 EST 2004
Author: benm
Date: 2004-02-13 16:10:45 -0500 (Fri, 13 Feb 2004)
New Revision: 882
Modified:
trunk/MonoDevelop/src/Main/Base/Services/ResourceService.cs
Log:
dont do disk io to load all the icons
Modified: trunk/MonoDevelop/src/Main/Base/Services/ResourceService.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/ResourceService.cs 2004-02-13 20:58:23 UTC (rev 881)
+++ trunk/MonoDevelop/src/Main/Base/Services/ResourceService.cs 2004-02-13 21:10:45 UTC (rev 882)
@@ -327,8 +327,6 @@
Gtk.IconSize iconSize)
{
try {
- Gdk.Pixbuf pixbuf = new Gdk.Pixbuf ("../data/resources/icons/" + filename);
-
Gtk.IconSet iconSet = iconFactory.Lookup (stockId);
if (iconSet == null) {
iconSet = new Gtk.IconSet ();
@@ -336,7 +334,7 @@
}
Gtk.IconSource source = new Gtk.IconSource ();
- source.Pixbuf = pixbuf;
+ source.Filename = Path.GetFullPath (Path.Combine ("../data/resources/icons", filename));
source.Size = iconSize;
iconSet.AddSource (source);
More information about the Monodevelop-patches-list
mailing list