All sidebars with Types should show custom types in combo list
This commit is contained in:
parent
b5f419cbf3
commit
58d7cbe99d
@ -66,7 +66,9 @@ class NoteSidebarFilter(SidebarFilter):
|
||||
self.event_menu = widgets.MonitoredDataType(
|
||||
self.ntype,
|
||||
self.note.set_type,
|
||||
self.note.get_type)
|
||||
self.note.get_type,
|
||||
False, # read-only?
|
||||
dbstate.db.get_note_types())
|
||||
|
||||
self.filter_regex = Gtk.CheckButton(label=_('Use regular expressions'))
|
||||
|
||||
|
@ -69,7 +69,10 @@ class PlaceSidebarFilter(SidebarFilter):
|
||||
self.place_menu = widgets.MonitoredDataType(
|
||||
self.ptype,
|
||||
self.filter_place.set_type,
|
||||
self.filter_place.get_type)
|
||||
self.filter_place.get_type,
|
||||
False, # read-only
|
||||
dbstate.db.get_place_types()
|
||||
)
|
||||
self.filter_code = widgets.BasicEntry()
|
||||
self.filter_enclosed = widgets.PlaceEntry(dbstate, uistate, [])
|
||||
self.filter_note = widgets.BasicEntry()
|
||||
|
@ -67,7 +67,9 @@ class RepoSidebarFilter(SidebarFilter):
|
||||
self.event_menu = widgets.MonitoredDataType(
|
||||
self.rtype,
|
||||
self.repo.set_type,
|
||||
self.repo.get_type)
|
||||
self.repo.get_type,
|
||||
False, # read-only?
|
||||
dbstate.db.get_repository_types())
|
||||
|
||||
self.filter_note = widgets.BasicEntry()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user