* src/FilterEditor/_EditRule.py: limit source name in menu display
to 40 characters (#451) svn: r7337
This commit is contained in:
parent
81b82babde
commit
a6237e602e
@ -1,4 +1,6 @@
|
|||||||
2006-09-29 Don Allingham <don@gramps-project.org>
|
2006-09-29 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/FilterEditor/_EditRule.py: limit source name in menu display
|
||||||
|
to 40 characters (#451)
|
||||||
* src/GrampsDb/_ReadGedcom.py: Handle the Place/Address combination
|
* src/GrampsDb/_ReadGedcom.py: Handle the Place/Address combination
|
||||||
for events
|
for events
|
||||||
|
|
||||||
|
@ -184,7 +184,10 @@ class MySource(gtk.ComboBox):
|
|||||||
for src_handle in self.db.get_source_handles(sort_handles=True):
|
for src_handle in self.db.get_source_handles(sort_handles=True):
|
||||||
src = self.db.get_source_from_handle(src_handle)
|
src = self.db.get_source_from_handle(src_handle)
|
||||||
self.slist.append(src.get_gramps_id())
|
self.slist.append(src.get_gramps_id())
|
||||||
store.append(row=["%s [%s]" % (src.get_title(),src.get_gramps_id())])
|
title = src.get_title()
|
||||||
|
if len(title) > 44:
|
||||||
|
title = title[:40] + "..."
|
||||||
|
store.append(row=["%s [%s]" % (title,src.get_gramps_id())])
|
||||||
|
|
||||||
self.set_active(0)
|
self.set_active(0)
|
||||||
self.show()
|
self.show()
|
||||||
|
Loading…
Reference in New Issue
Block a user