Improve focus chain when there is add_remove on One2Many

This commit is contained in:
Cédric Krier
2008-11-01 14:40:03 +01:00
parent b55132e5cc
commit b45ebd341e
@@ -134,7 +134,11 @@ def _create_menu(self, attrs):
but_switch.add(img_switch)
but_switch.set_relief(gtk.RELIEF_NONE)
hbox.pack_start(but_switch, expand=False, fill=False)
hbox.set_focus_chain([])
if attrs.get('add_remove'):
hbox.set_focus_chain([self.wid_text])
else:
hbox.set_focus_chain([])
tooltips.enable()