* src/Sources.py: Limit the source title to 40 characters

svn: r5086
This commit is contained in:
Don Allingham 2005-08-16 17:46:10 +00:00
parent e7f27f4645
commit d6a9ffb2ef
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
2005-08-16 Don Allingham <don@gramps-project.org>
* src/plugins/NavWebPage.py: fix paths in surname page
* src/Sources.py: Limit the source title to 40 characters
2005-08-15 Alex Roitman <shura@gramps-project.org>
* NEWS: Update.

View File

@ -527,6 +527,10 @@ class SourceEditor:
src = self.db.get_source_from_handle(src_id)
title = src.get_title()
gid = src.get_gramps_id()
if len(title) > 40:
title = title[0:37] + "..."
store.append(row=["%s [%s]" % (title,gid)])
self.handle_list.append(src_id)
if selected_handle == src_id: