[Gtk-sharp-list] ImageMenuItem

underdog10@netcourrier.com underdog10@netcourrier.com
Fri, 6 Aug 2004 16:13:16 CEST


Thanks a lot.
Here is a modification to use it with resources images.

item =3D new Gtk.ImageMenuItem (=22Edit=22);
pix =3D new Gdk.Pixbuf (null, =22edit.png=22);
new Gtk.Image (pix);
item.Image =3D new Gtk.Image (pix);
menu.Append (item);

KaYa

----Message d'origine----
>De: Ohmu <ohmar=40hot.ee>
>A: gtk-sharp-list=40lists.ximian.com
>Sujet: Re: =5BGtk-sharp-list=5D ImageMenuItem
>Date: Fri, 06 Aug 2004 16:31:56 +0300
>
>underdog10 wrote:
>> Hi,
>> =

>> I making a right click on a treeview, i found how to make it.
>> The problem, i haven't found a method to set a different image from Sto=
ck id using the Gtk.ImageMenuItem Class
>> I would like to set my own image, the same than i use in my toolbar.
>> =

>> Does anyone as clue for that?
>> =

>> Thanks.
>> =

>> KaYa.
>> =

>
>Awnser was in documents ;)
>I made an example and attached the source and image..
>
>

-------------------------------------------------------------
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Tool=
bar...
Web/Wap : www.netcourrier.com
T=E9l=E9phone/Fax : 08 92 69 00 21 (0,34 =80 TTC/min)
Minitel: 3615 NETCOURRIER (0,16 =80 TTC/min)