All sidebars with Types should show custom types in combo list

This commit is contained in:
Doug Blank 2015-08-03 11:42:58 -04:00
parent b5f419cbf3
commit 58d7cbe99d
3 changed files with 10 additions and 3 deletions

View File

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

View File

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

View File

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