From 33bcc40293053ebd8a6c9a07731dd23ed7b1b864 Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Wed, 12 May 2010 07:17:23 +0000 Subject: [PATCH] Switched 'Graph generations' option in Report Options from EnumeratedListOption to NumberOption as it didn't maked sense to me svn: r15391 --- src/plugins/webreport/NarrativeWeb.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 9fc1d62d9..7ea9a27d4 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -5816,11 +5816,7 @@ class NavWebOptions(MenuReportOptions): menu.add_option(category_name, 'graph', self.__graph) self.__graph.connect('value-changed', self.__graph_changed) - self.__graphgens = EnumeratedListOption(_('Graph generations'), 4) - self.__graphgens.add_item(2, "2") - self.__graphgens.add_item(3, "3") - self.__graphgens.add_item(4, "4") - self.__graphgens.add_item(5, "5") + self.__graphgens = NumberOption(_("Graph generations"), 4, 2, 5) self.__graphgens.set_help( _("The number of generations to include in " "the ancestor graph")) menu.add_option(category_name, "graphgens", self.__graphgens)