[Gtk-sharp-list] Set custom icon for toolbar Button or MenuItem
Stefan Saring
stefan@saring.de
Tue, 18 May 2004 22:17:06 +0200
Hi Fred,
this does not work for me. I don't create a new ImageMenuItem but I get
it from libglade and want to modify it.
But I've added
img.Image = new Gtk.Image (Stock.DialogInfo, IconSize.Menu);
but it only shows an empty image in the left of the menu item. What's wrong ?
And sorry, I've send the last mail to the wrong address :-)
Stefan
Am Di, den 18.05.2004 schrieb Fred Blaise um 21:22:
> How about:
>
> ImageMenuItem img = new ImageMenuItem("button_text_here");
> img.Image = new Gtk.Image (Stock.DialogInfo, IconSize.Menu);
>
> This is using a gtk stock icon, but i guess you can figure it out with
> that.
>
> btw, you only answered to me and not to the list. Dunno if this is what
> you wanted.
>
> Thx
>
> ...fb
--
Stefan Saring
Web: http://www.saring.de
Mail: mailto:stefan@saring.de