From c30167137cce02c90aec765f3886cdd4adf929d1 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 --- ChangeLog | 1 + src/ToolTips.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index caee40077..43fa21b3a 100644 --- a/ChangeLog +++ b/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/src/ToolTips.py b/src/ToolTips.py index a0029a2da..da0bae1c1 100644 --- a/src/ToolTips.py +++ b/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)