[Monodevelop-patches-list] r986 - in trunk/MonoDevelop/src: Libraries/MonoDevelop.Gui.Widgets/Tree Main/Base/Services/File
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Feb 22 17:02:36 EST 2004
Author: tberman
Date: 2004-02-22 17:02:36 -0500 (Sun, 22 Feb 2004)
New Revision: 986
Modified:
trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/Tree/TreeView.cs
trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs
Log:
Fix a potential nullref.
Damn this gui looks 200x better with these tiny changes
Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/Tree/TreeView.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/Tree/TreeView.cs 2004-02-22 11:41:50 UTC (rev 985)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/Tree/TreeView.cs 2004-02-22 22:02:36 UTC (rev 986)
@@ -38,7 +38,7 @@
Gtk.CellRendererPixbuf pix_render = new Gtk.CellRendererPixbuf ();
complete_column.PackStart (pix_render, false);
complete_column.AddAttribute (pix_render, "stock_id", 1);
- pix_render.StockSize = Gtk.IconSize.Button;
+ pix_render.StockSize = Gtk.IconSize.Menu;
// Sadly, gtk+ does not have support for stock being here :-(
complete_column.AddAttribute (pix_render, "pixbuf-expander-open", 3);
complete_column.AddAttribute (pix_render, "pixbuf-expander-closed", 4);
@@ -264,7 +264,7 @@
internal Gdk.Pixbuf RenderIcon (string stock_id)
{
- return RenderIcon (stock_id, Gtk.IconSize.Button, "");
+ return RenderIcon (stock_id, Gtk.IconSize.Menu, "");
}
}
Modified: trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs 2004-02-22 11:41:50 UTC (rev 985)
+++ trunk/MonoDevelop/src/Main/Base/Services/File/DefaultFileService.cs 2004-02-22 22:02:36 UTC (rev 986)
@@ -65,6 +65,9 @@
public void OpenFile(string fileName)
{
+ if (fileName == null)
+ return;
+
if (!fileName.StartsWith ("http://"))
fileName = System.IO.Path.GetFullPath (fileName);
More information about the Monodevelop-patches-list
mailing list