From 19acd368c0ff58eed17fd6bd08251ac38323be18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Tue, 26 May 2015 20:51:30 +0200 Subject: [PATCH] 8583: Custom Events not shown in the filter siderbar --- gramps/gui/filters/sidebar/_eventsidebarfilter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps/gui/filters/sidebar/_eventsidebarfilter.py b/gramps/gui/filters/sidebar/_eventsidebarfilter.py index 2f0001a2c..b2c14bb43 100644 --- a/gramps/gui/filters/sidebar/_eventsidebarfilter.py +++ b/gramps/gui/filters/sidebar/_eventsidebarfilter.py @@ -62,11 +62,13 @@ class EventSidebarFilter(SidebarFilter): self.filter_event = Event() self.filter_event.set_type((EventType.CUSTOM, '')) self.etype = Gtk.ComboBox(has_entry=True) + self.custom_types = dbstate.db.get_event_types() self.event_menu = widgets.MonitoredDataType( self.etype, self.filter_event.set_type, - self.filter_event.get_type) + self.filter_event.get_type, + custom_values=self.custom_types) self.filter_mainparts = widgets.BasicEntry() self.filter_date = widgets.DateEntry(uistate, [])