* src/Plugins.py: sort submenu entries properly

svn: r5167
This commit is contained in:
Don Allingham 2005-09-02 02:59:09 +00:00
parent 78e78d1ecf
commit d526d508ce
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,5 @@
2005-09-01 Don Allingham <don@gramps-project.org>
* src/Plugins.py: sort submenu entries properly
* src/PeopleView.py: replace unique string with one already translated
* src/gramps_main.py: replace unique string with one already translated
* src/plugins/Ancestors.py: replace unique string with one already translated

View File

@ -484,7 +484,7 @@ def build_report_menu(top_menu,callback):
submenu.show()
entry.set_submenu(submenu)
lst = hash_data[key]
lst.sort()
lst.sort(by_menu_name)
for name in lst:
subentry = gtk.MenuItem("%s..." % name[2])
subentry.show()
@ -493,6 +493,9 @@ def build_report_menu(top_menu,callback):
top_menu.set_submenu(report_menu)
def by_menu_name(a,b):
return cmp(a[2],b[2])
#-------------------------------------------------------------------------
#
# build_tools_menu