9908: Custom Family Relations not shown in the filter siderbar

This commit is contained in:
romjerome 2017-01-24 16:58:54 +01:00
parent ee150c101a
commit 963acb56e0

View File

@ -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()