(PeopleModel.column_marker_color): properly access marker value.

svn: r6620
This commit is contained in:
Alex Roitman 2006-05-11 19:23:50 +00:00
parent 340c97d388
commit 4cf63c59ff
2 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,6 @@
2006-05-11 Alex Roitman <shura@gramps-project.org>
* src/PeopleModel.py (_MARKER_COL): Correct column numbers.
(PeopleModel.column_marker_color): properly access marker value.
2006-05-10 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_ReadXML.py (GrampsParser): Use UpdateCallback.

View File

@ -487,12 +487,12 @@ class PeopleModel(gtk.GenericTreeModel):
def column_marker_color(self, data, node):
try:
if data[_MARKER_COL]:
if int(data[_MARKER_COL]) == MarkerType.COMPLETE:
if data[_MARKER_COL][0] == MarkerType.COMPLETE:
return u"#46a046" # green
if int(data[_MARKER_COL]) == MarkerType.TODO:
if data[_MARKER_COL][0] == MarkerType.TODO:
return u"#df421e" # red
if int(data[_MARKER_COL]) == MarkerType.CUSTOM:
return u"#eed680" # blue
if data[_MARKER_COL][0] == MarkerType.CUSTOM:
return u"#eed680" # ligh brown
except IndexError:
pass
return None