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