* src/Sources.py: Limit the source title to 40 characters
svn: r5086
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
2005-08-16 Don Allingham <don@gramps-project.org>
|
2005-08-16 Don Allingham <don@gramps-project.org>
|
||||||
* src/plugins/NavWebPage.py: fix paths in surname page
|
* 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>
|
2005-08-15 Alex Roitman <shura@gramps-project.org>
|
||||||
* NEWS: Update.
|
* NEWS: Update.
|
||||||
|
@ -527,6 +527,10 @@ class SourceEditor:
|
|||||||
src = self.db.get_source_from_handle(src_id)
|
src = self.db.get_source_from_handle(src_id)
|
||||||
title = src.get_title()
|
title = src.get_title()
|
||||||
gid = src.get_gramps_id()
|
gid = src.get_gramps_id()
|
||||||
|
|
||||||
|
if len(title) > 40:
|
||||||
|
title = title[0:37] + "..."
|
||||||
|
|
||||||
store.append(row=["%s [%s]" % (title,gid)])
|
store.append(row=["%s [%s]" % (title,gid)])
|
||||||
self.handle_list.append(src_id)
|
self.handle_list.append(src_id)
|
||||||
if selected_handle == src_id:
|
if selected_handle == src_id:
|
||||||
|
Reference in New Issue
Block a user