Change the way marker types are collected in MarkerReport.py.

svn: r8787
This commit is contained in:
Brian Matherly 2007-07-29 20:12:02 +00:00
parent a4f5c6fc02
commit a2b455b552
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,6 @@
2007-07-29 Brian Matherly <brian@gramps-project.org>
* src/plugins/MarkerReport.py: Change the way marker types are collected.
2007-07-28 Brian Matherly <brian@gramps-project.org>
* src/plugins/MarkerReport.py: Enhanced
* src/Filters/Rules/Event/_HasMarkerOf.py: Added

View File

@ -455,9 +455,16 @@ class MarkerOptions(ReportOptions):
self.marker_menu = gtk.combo_box_new_text()
index = 0
marker_index = 0
markers = dialog.db.get_marker_types()
markers.append(MarkerType().get_map()[MarkerType.COMPLETE])
markers.append(MarkerType().get_map()[MarkerType.TODO_TYPE])
markers = []
# Gather all the possible markers
map = MarkerType().get_map()
for key in map.keys():
if key != MarkerType.CUSTOM and map[key] != "":
markers.append( map[key] )
markers += dialog.db.get_marker_types()
# Add the markers to the menu
for marker in markers:
self.marker_menu.append_text(marker)
if self.options_dict['marker'] == marker: