[Monodevelop-patches-list] r657 - trunk/MonoDevelop/src/Main/Base/Gui/Pads

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Mon Jan 26 00:31:07 EST 2004


Author: tberman
Date: 2004-01-26 00:31:07 -0500 (Mon, 26 Jan 2004)
New Revision: 657

Modified:
   trunk/MonoDevelop/src/Main/Base/Gui/Pads/FileScout.cs
Log:
removing some C.WLs and actually making it work, i was a bad boy and committed without testing. Now the icons look a lot better as well.


Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/FileScout.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/FileScout.cs	2004-01-26 05:11:30 UTC (rev 656)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/FileScout.cs	2004-01-26 05:31:07 UTC (rev 657)
@@ -321,16 +321,14 @@
 				this.size = size;
 				this.lastModified = lastModified;
 				//FIXME: This is because //home/blah is not the same as /home/blah according to Icon.LookupSync, if we get weird behaviours, lets look at this again, see if we still need it.
-				FullName = FullName.Substring (1);
+				FullName = fullname.Substring (1);
 				//FIXME: This code needs to be abstracted out to a MonoDevelop.Gui class and made to be performant and not sucky, ill do it later --Todd
 				Gnome.IconLookupResultFlags result;
-				Console.WriteLine (FullName);
 				string icon = Gnome.Icon.LookupSync (theme, tFactory, FullName, "", Gnome.IconLookupFlags.None, out result);
 				int i;
-				string p_filename = theme.LookupIcon (icon, 1, new Gnome.IconData (), out i);
-				Console.WriteLine (p_filename);
+				string p_filename = theme.LookupIcon (icon, 24, new Gnome.IconData (), out i);
 				Gdk.Pixbuf big_pixbuf = new Gdk.Pixbuf (p_filename);
-				this.icon = big_pixbuf.ScaleSimple (16, 16, Gdk.InterpType.Nearest);
+				this.icon = big_pixbuf.ScaleSimple (24, 24, Gdk.InterpType.Bilinear);
 	
 			}
 		}




More information about the Monodevelop-patches-list mailing list