From a4ea02dbf008c65cdcb03759f8cb2eb3b1ffa727 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Mon, 21 Aug 2006 00:34:07 +0000 Subject: [PATCH] ordering (A-Z) the event type for choice list on "change event type" tool (#0000365) svn: r7217 --- ChangeLog | 1 + src/plugins/ChangeTypes.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index fa7b80fd8..a794fc2c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2006-08-20 Brian Matherly * src/Config/_GrampsIniKeys.py: Report error on invalid filename * src/const.py.in: detect windows home directory before others + * src/plugins/ChangeTypes.py: alphabetize the event list (#0000365) 2006-08-19 Alex Roitman * src/plugins/MediaManager.py (Convert2Rel._run): Correct logic. diff --git a/src/plugins/ChangeTypes.py b/src/plugins/ChangeTypes.py index f40b885f0..9d7a9fb7b 100644 --- a/src/plugins/ChangeTypes.py +++ b/src/plugins/ChangeTypes.py @@ -45,6 +45,7 @@ import gtk.glade #------------------------------------------------------------------------ import const import Utils +import locale import ManagedWindow import AutoComp from RelLib import EventType @@ -83,6 +84,7 @@ class ChangeTypes(Tool.BatchTool, ManagedWindow.ManagedWindow): self.auto2 = self.glade.get_widget("new") event_names = [item[1] for item in EventType._DATAMAP if item[0] > 0 ] + event_names.sort(locale.strcoll) AutoComp.fill_combo(self.auto1,event_names) AutoComp.fill_combo(self.auto2,event_names) # Need to display localized event names