diff --git a/ChangeLog b/ChangeLog index d90485c4a..cb221c41f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2006-01-05 Don Allingham - * src/FamiyView.py: use gender markers + * src/FamiyView.py: use gender markers, remove Family/Parents, + fix gender mouseover 2006-01-05 Richard Taylor * src/GrampsLogger/__init__.py: added package interface diff --git a/src/FamilyView.py b/src/FamilyView.py index e118e9652..f11a3f9c4 100644 --- a/src/FamilyView.py +++ b/src/FamilyView.py @@ -36,6 +36,7 @@ class LinkLabel(gtk.EventBox): def __init__(self,label,func,handle): gtk.EventBox.__init__(self) self.orig_text = cgi.escape(label[0]) + self.gender = label[1] text = '%s' % self.orig_text if label[1]: text += u" %s" % label[1] @@ -53,11 +54,15 @@ class LinkLabel(gtk.EventBox): def enter_text(self,obj,event,handle): text = '%s' % self.orig_text + if self.gender: + text += u" %s" % self.gender self.label.set_text(text) self.label.set_use_markup(True) def leave_text(self,obj,event,handle): text = '%s' % self.orig_text + if self.gender: + text += u" %s" % self.gender self.label.set_text(text) self.label.set_use_markup(True) @@ -171,6 +176,8 @@ class FamilyView(PageView.PersonNavView): gender = u" \u2642" elif p.gender == RelLib.Person.FEMALE: gender = u" \u2640" + else: + gender = u" \u2650" return (name,gender) else: return _(u"Unknown","") @@ -192,13 +199,11 @@ class FamilyView(PageView.PersonNavView): family_handle_list = person.get_parent_family_handle_list() for (family_handle,mrel,frel) in family_handle_list: if family_handle: - self.write_label(_('Parents')) self.write_parents(family_handle) family_handle_list = person.get_family_handle_list() for family_handle in family_handle_list: if family_handle: - self.write_label(_('Family')) self.write_family(family_handle) self.child.show_all()