mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
[GTK3] Fix RadioMenuItem group error
Fixes a difference from GTK2->3 where the group can no longer be passed as a RadioMenuItem so use get_group method to set group.
This commit is contained in:
parent
d879ee06a3
commit
729f062ea1
1 changed files with 2 additions and 1 deletions
|
@ -120,7 +120,8 @@ def build_menu_radio_list(
|
||||||
if suffix:
|
if suffix:
|
||||||
item_text += ' ' + suffix
|
item_text += ' ' + suffix
|
||||||
menuitem = RadioMenuItem.new_with_label(group, item_text)
|
menuitem = RadioMenuItem.new_with_label(group, item_text)
|
||||||
group = menuitem
|
if not group:
|
||||||
|
group = menuitem.get_group()
|
||||||
if pref_value and value == pref_value:
|
if pref_value and value == pref_value:
|
||||||
menuitem.set_active(True)
|
menuitem.set_active(True)
|
||||||
if callback:
|
if callback:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue