[MonoDevelop] Stock Icons

John Tindell john at yeticode.co.uk
Fri Mar 20 12:14:04 EDT 2009

using monodevelop but for a standard gtk app. The error occurs when I 
run the app. I used the Stock Icons > Edit Icon Factory from within 
monodevelop to add in the icons. I wasn't sure if there was something I 
was doing wrong via code, or if there was an option I needed to set 
within monodevelop register the icon factory.

Michael Hutchinson wrote:
> On Thu, Mar 19, 2009 at 9:34 PM, John Tindell <john at yeticode.co.uk> wrote:
>> 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?
> Within MonoDevelop? Are you using this for a Monodevelop addin? If so,
> we have extension points for registering icons and services for
> looking them up.

More information about the Monodevelop-list mailing list