* src/Plugins.py: sort submenu entries properly
svn: r5167
This commit is contained in:
parent
78e78d1ecf
commit
d526d508ce
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user