2024-09-03 00:06:19 -04:00

19 lines
601 B
Diff

390a391,399
> def select_family2(self, *obj):
> """
> Open a selection box to choose the secondary family.
> """
> select_family = SelectorFactory('Family')
> sel = select_family(self.dbstate, self.uistate)
> self.uistate.set_active(sel.run().get_handle(), 'Family')
> self.goto_handle(None)
>
841a851,857
>
> add_item = Gtk.MenuItem(
> label=_("Choose the new active family"))
> add_item.connect("activate", self.select_family2)
> add_item.show()
> menu.append(add_item)
>