From 8b903b7073e5b0545e96b039d00e4c9a12b68148 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Fri, 23 Dec 2005 02:04:54 +0000 Subject: [PATCH] * src/ToolTips.py (PersonTip.get_tip): Use new birth_ref interface. svn: r5622 --- gramps2/ChangeLog | 1 + gramps2/src/ToolTips.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index caee40077..43fa21b3a 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -2,6 +2,7 @@ * test/RunAllTests.py: Change header. * src/EventEdit.py: Fix build_ methods. * src/MediaView.py: Skip empty selections. + * src/ToolTips.py (PersonTip.get_tip): Use new birth_ref interface. 2005-12-22 Don Allingham * src/DisplayState.py: window management improvements diff --git a/gramps2/src/ToolTips.py b/gramps2/src/ToolTips.py index a0029a2da..da0bae1c1 100644 --- a/gramps2/src/ToolTips.py +++ b/gramps2/src/ToolTips.py @@ -179,9 +179,9 @@ class PersonTip: global escape birth_str = "" - birth_handle = self._obj.get_birth_handle() - if birth_handle: - birth = self._db.get_event_from_handle(birth_handle) + birth_ref = self._obj.get_birth_ref() + if birth_ref: + birth = self._db.get_event_from_handle(birth_ref.ref) date_str = DateHandler.get_date(birth) if date_str != "": birth_str = escape(date_str)