(PeopleModel.column_marker_color): properly access marker value.
svn: r6620
This commit is contained in:
parent
340c97d388
commit
4cf63c59ff
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user