[Gtk-sharp-list] Accesing individual menu elements

Emerson Posadas toxickore at linuxmail.org
Fri Aug 26 12:27:15 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Again here with a silly question.
I'm creating a menu who contains some items like this:

//Creating the menu
Menu menuFile = new Menu ();


//Calling the addImageMenuItem method to add a new item
this.addImageMenuItem ("Sort list by tag", "pixmaps/gtk-sort-ascending.png",
                        menuFile);
this.AddImageMenuItem ("Another label", "pixmaps/gtk-sort-descending.png",
                        menuFile);


//the method
public void addImageMenuItem (string label, string imgpath, Menu men)
{
   ImageMenuItem item = new ImageMenuItem (label);
   Image img = new Image (imgpath);
   item.Image = img;
   men.Append (item);
}

Okay. The menu is created; and now i want to access to his items
and change their properties.
My question is: ¿How do i access their elements?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFDD0LB76YHuLjcnvURAtEyAJ0StVQrlSE0LJNlv+GD9S/BTNtXdgCghfDh
KbVz9p+m2K8o5i1/l1LKP+4=
=eTml
-----END PGP SIGNATURE-----


-- 
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org
This allows you to send and receive SMS through your mailbox.

Powered by Outblaze


More information about the Gtk-sharp-list mailing list