After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 87492 - Can't copy radio button groups.
Can't copy radio button groups.
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2002-07-06 13:03 UTC by Matthew Tuck
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
radiobutton.patch (7.61 KB, patch)
2002-07-06 17:19 UTC, Murray Cumming
none Details | Review

Description Matthew Tuck 2002-07-06 13:03:10 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.
Comment 1 Matthew Tuck 2002-07-06 13:05:39 UTC
I should mention the symptoms - the radio buttons appear OK, but
mutual exclusivity isn't maintained, the middle radio button acts weirdly.
Comment 2 Murray Cumming 2002-07-06 17:18:44 UTC
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.
Comment 3 Murray Cumming 2002-07-06 17:19:22 UTC
Created attachment 9682 [details] [review]
radiobutton.patch
Comment 4 Murray Cumming 2002-07-09 11:08:20 UTC
Tired of waiting. Applied. The book/buttons/radiobutton example seems
to work.