[Gtk-sharp-list] RadioMenuItem Group Problem

Samuel Kaufman skaufman@elite.net
Thu, 29 Jan 2004 21:59:06 -0800


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

I'm running the latest CVS version of gtk-sharp, as of earlier today,
and I'm still having trouble with the RadioMenuItem class.  The same
error occured when using gtk-sharp 0.14.  It seems as though it creates
a new group each time a RadioMenuItem is constructed.  My code is
below.  Am I doing something wrong or is it truly a bug?

-------------

languages.RemoveSubmenu();
		=09
GLib.SList group =3D null;
Menu submenu =3D new Menu();
foreach (string target in translator.Targets)
{
	RadioMenuItem r =3D RadioMenuItem.NewWithLabel(group, target);
	if (group =3D=3D null)
		group =3D r.Group;
	submenu.Append(r);
}

languages.Submenu =3D submenu;

languages.ShowAll();

--=-zn2cSw2iSv1OgNs33Lt6
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.3 (GNU/Linux)

iD8DBQBAGfKqbukrDfd+Q4gRAsKdAKCCRP3DQbAKA5wnMoVnKlDhYVbdggCeIVpz
5gG5IzAWrc6RP4/GLqGCfl4=
=fjdv
-----END PGP SIGNATURE-----

--=-zn2cSw2iSv1OgNs33Lt6--