From 4cf63c59ffb38b5323519062892332ba4cf0d9de Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Thu, 11 May 2006 19:23:50 +0000 Subject: [PATCH] (PeopleModel.column_marker_color): properly access marker value. svn: r6620 --- gramps2/ChangeLog | 1 + gramps2/src/PeopleModel.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 5391ef528..527ca9829 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,5 +1,6 @@ 2006-05-11 Alex Roitman * src/PeopleModel.py (_MARKER_COL): Correct column numbers. + (PeopleModel.column_marker_color): properly access marker value. 2006-05-10 Alex Roitman * src/GrampsDb/_ReadXML.py (GrampsParser): Use UpdateCallback. diff --git a/gramps2/src/PeopleModel.py b/gramps2/src/PeopleModel.py index 65a628767..9c75717c2 100644 --- a/gramps2/src/PeopleModel.py +++ b/gramps2/src/PeopleModel.py @@ -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