GNOME Bugzilla – Bug 711186
Radio buttons with accelerators = problem
Last modified: 2018-03-26 15:31:52 UTC
I originally had 3 radio buttons. 2nd and 3rd ones belong to the group of the 1st, and everything was working smoothly. Until I added accelerators. Now I'm getting Gtk-CRITICAL **: gtk_radio_menu_item_set_group: assertion '!g_slist_find (group, radio_menu_item)' failed for 2nd and 3rd buttons, although it seems to be working just fine. The default output is <property name="group">RadioGroup1</property> <accelerator key="q" signal="activate"/> However, if I swap the ordering of these two lines, the error message goes away.
This is a bug in GtkBuilder perhaps? AFAIU that assertion means "this radio_menu_item is already added to this group". The error happens during parsing, so somehow GtkBuilder calls set_group() again when it sees the accelerator. (I saw this in GTimeLog: https://github.com/gtimelog/gtimelog/issues/14)
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glade/issues/140.