9908: Custom Family Relations not shown in the filter siderbar
This commit is contained in:
parent
ee150c101a
commit
963acb56e0
@ -71,6 +71,7 @@ class FamilySidebarFilter(SidebarFilter):
|
|||||||
self.family_stub = Family()
|
self.family_stub = Family()
|
||||||
self.family_stub.set_relationship((FamilyRelType.CUSTOM, ''))
|
self.family_stub.set_relationship((FamilyRelType.CUSTOM, ''))
|
||||||
self.rtype = Gtk.ComboBox(has_entry=True)
|
self.rtype = Gtk.ComboBox(has_entry=True)
|
||||||
|
self.custom_types = dbstate.db.get_family_relation_types()
|
||||||
|
|
||||||
self.event_menu = widgets.MonitoredDataType(
|
self.event_menu = widgets.MonitoredDataType(
|
||||||
self.etype,
|
self.etype,
|
||||||
@ -80,7 +81,8 @@ class FamilySidebarFilter(SidebarFilter):
|
|||||||
self.rel_menu = widgets.MonitoredDataType(
|
self.rel_menu = widgets.MonitoredDataType(
|
||||||
self.rtype,
|
self.rtype,
|
||||||
self.family_stub.set_relationship,
|
self.family_stub.set_relationship,
|
||||||
self.family_stub.get_relationship)
|
self.family_stub.get_relationship,
|
||||||
|
custom_values=self.custom_types)
|
||||||
|
|
||||||
self.filter_note = widgets.BasicEntry()
|
self.filter_note = widgets.BasicEntry()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user