[MonoDevelop] Stock Icons

John Tindell john at yeticode.co.uk
Thu Mar 19 21:34:40 EDT 2009


Hey,
    I'm trying to use stock icons. I've added a file called Red.png with
an icon name of "BuildFailed". I'm then trying to get it using the
following code

Gtk.IconSet iconSet = Gtk.IconFactory.LookupDefault("BuildFailed");
iconSet.RenderIcon(new Gtk.Style(), Gtk.TextDirection.Ltr,
Gtk.StateType.Normal, Gtk.IconSize.SmallToolbar, null, "");

this throw a NullReferenceException. Is there anything i need to do
within monodevelop to get this to work or am I going about this the
wrong way?

Thanks

-- 
John Tindell <john at yeticode.co.uk>
http://www.yeticode.co.uk/

Development Log
http://blog.yeticode.co.uk





More information about the Monodevelop-list mailing list