* src/DisplayState.py: include name and relationship on statusbar

svn: r6575
This commit is contained in:
Don Allingham 2006-05-08 01:42:30 +00:00
parent 0aaaa45ca1
commit c024f9f84b
2 changed files with 9 additions and 6 deletions

View File

@ -1,4 +1,5 @@
2006-05-07 Don Allingham <don@gramps-project.org>
* src/DisplayState.py: include name and relationship on statusbar
* src/DataViews/_MediaView.py: tool tips
* src/DataViews/_RepositoryView.py: tool tips
* src/DataViews/_SourceView.py: tool tips

View File

@ -325,12 +325,14 @@ class DisplayState(GrampsDb.GrampsDBCallback):
if self.dbstate.active == None:
self.status.push(self.status_id,"")
else:
if Config.get(Config.STATUSBAR) <= 1:
person = self.dbstate.get_active_person()
pname = NameDisplay.displayer.display(person)
name = "[%s] %s" % (person.get_gramps_id(),pname)
else:
name = self.display_relationship()
if Config.get(Config.STATUSBAR) > 1:
if person.handle != self.dbstate.db.get_default_person().handle:
msg = self.display_relationship()
if msg:
name = "%s (%s)" % (name,msg)
self.status.push(self.status_id,name)
while gtk.events_pending():