[Gtk-sharp-list] OptionMenu Just shows first Option

Pablo Fischer pablo@pablo.com.mx
Thu, 27 May 2004 11:23:07 -0500


--=-Dnw7yEpxU6Aarc39W1Pc
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi!

I'm working in a OptionMenu.

I retrieve the data as a string[], and with a foreach I read the array.
The first option is showed, but the others no :-(:


pluginsaccount_menu.Menu =3D GetPluginsAsMenu();

private Gtk.Menu GetPluginsAsMenu() {
  Gtk.Menu menu =3D new Gtk.Menu ();

  foreach(string wrapper_name in father_wrapper.GetPluginList()) {=09
    Console.WriteLine(counter);=09
    Gtk.MenuItem item =3D new Gtk.MenuItem(wrapper_name);=20
    menu.Append(item);
  }
return menu;     =20
}


Or Should I use a GtkCombo?..


Thanks!
Pablo
--=20
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
Fingerprint:  5973 0F10 543F 54AE 1E41  EC81 0840 A10A 74A4 E5C0
http://www.pablo.com.mx=20
http://www.debianmexico.org

--=-Dnw7yEpxU6Aarc39W1Pc
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
	digitalmente

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAthXrCEChCnSk5cARAkqnAJ0YEU0HhXYJE2AdsVF3CsXcUQVkAACfWgsf
BnyBtB5aZxQjVQTPiK9rqDw=
=KVKH
-----END PGP SIGNATURE-----

--=-Dnw7yEpxU6Aarc39W1Pc--