* src/GrampsWidgets.py: edit label for column header

svn: r5792
This commit is contained in:
Don Allingham
2006-01-19 02:06:27 +00:00
parent 307c50c456
commit a3acfecb1a
4 changed files with 38 additions and 14 deletions

View File

@ -366,10 +366,17 @@ class ChildModel(gtk.ListStore):
index += 1
def display_rel(self,rtype):
if rtype[0] == RelLib.Family.CUSTOM:
return unicode(rtype[1])
if type(rtype) == tuple:
rel = rtype[0]
val = rtype[1]
else:
return Utils.child_relations[rtype[0]]
rel = rtype
val = "???"
if rel == RelLib.Family.CUSTOM:
return unicode(val)
else:
return Utils.child_relations[rel]
def column_father_rel(self,data):
chandle = data.handle