From f6859e21bfdfaf348afbe86f1065ff2eddbb9508 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Mon, 30 Mar 2015 13:05:55 -0700 Subject: [PATCH] tweak report's filter option to display per the report's name-format --- gramps/plugins/graph/gvrelgraph.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gramps/plugins/graph/gvrelgraph.py b/gramps/plugins/graph/gvrelgraph.py index e3157be5a..35e261c66 100644 --- a/gramps/plugins/graph/gvrelgraph.py +++ b/gramps/plugins/graph/gvrelgraph.py @@ -542,11 +542,13 @@ class RelGraphOptions(MenuReportOptions): self.__pid = PersonOption(_("Center Person")) self.__pid.set_help(_("The center person for the report")) - add_option("pid", self.__pid) + menu.add_option(category_name, "pid", self.__pid) self.__pid.connect('value-changed', self.__update_filters) + + self._nf = stdoptions.add_name_format_option(menu, category_name) + self._nf.connect('value-changed', self.__update_filters) + self.__update_filters() - - stdoptions.add_name_format_option(menu, category_name) stdoptions.add_private_data_option(menu, category_name) @@ -681,7 +683,10 @@ class RelGraphOptions(MenuReportOptions): """ gid = self.__pid.get_value() person = self.__db.get_person_from_gramps_id(gid) - filter_list = ReportUtils.get_person_filters(person, False) + nfv = self._nf.get_value() + filter_list = ReportUtils.get_person_filters(person, + include_single=False, + name_format=nfv) self.__filter.set_filters(filter_list) def __include_dates_changed(self):