GNOME Bugzilla – Bug 87492
Can't copy radio button groups.
Last modified: 2004-12-22 21:47:04 UTC
CVS version pulled around 4/5 July 2002. Gtk::RadioButton: <MattyT> this code works: <MattyT> group = reflexiveRadio.get_group(); <MattyT> irreflexiveRadio.set_group( reflexiveRadio.get_group() ); <MattyT> nonreflexiveRadio.set_group( reflexiveRadio.get_group() ); <MattyT> this code doesn't: <MattyT> group = reflexiveRadio.get_group(); <MattyT> irreflexiveRadio.set_group( group ); <MattyT> nonreflexiveRadio.set_group( group ); <MattyT> should the copy constructor be private to prevent the second block? <murrayc> MattyT: Hmm. Maybe I broke it. Please submit a bug. I think that the group's internal GSList* needs to be updated every time something is added to it. <murrayc> MattyT: You can just copy this IRC conversation into the bug report if you like.
I should mention the symptoms - the radio buttons appear OK, but mutual exclusivity isn't maintained, the middle radio button acts weirdly.
Does this fix thing?. Only the 2nd form will now be allowed. The first form should really be allowed too, but then the 2nd form would probably mistakenly use the (const Group&) or (Group) override intended for the 1st form.
Created attachment 9682 [details] [review] radiobutton.patch
Tired of waiting. Applied. The book/buttons/radiobutton example seems to work.