From 729f062ea16e55b990a66c38b1c5c1700d5b82a7 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 11 Oct 2018 16:54:28 +0100 Subject: [PATCH] [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. --- deluge/ui/gtk3/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtk3/common.py b/deluge/ui/gtk3/common.py index d27d7acd9..b7df7faab 100644 --- a/deluge/ui/gtk3/common.py +++ b/deluge/ui/gtk3/common.py @@ -120,7 +120,8 @@ def build_menu_radio_list( if suffix: item_text += ' ' + suffix menuitem = RadioMenuItem.new_with_label(group, item_text) - group = menuitem + if not group: + group = menuitem.get_group() if pref_value and value == pref_value: menuitem.set_active(True) if callback: