ordering (A-Z) the event type for choice list on "change event type" tool (#0000365)

svn: r7217
This commit is contained in:
Brian Matherly 2006-08-21 00:34:07 +00:00
parent 3d3eda02a5
commit a4ea02dbf0
2 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
2006-08-20 Brian Matherly <brian@gramps-project.org>
* 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 <shura@gramps-project.org>
* src/plugins/MediaManager.py (Convert2Rel._run): Correct logic.

View File

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