* 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> 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/_MediaView.py: tool tips
* src/DataViews/_RepositoryView.py: tool tips * src/DataViews/_RepositoryView.py: tool tips
* src/DataViews/_SourceView.py: tool tips * src/DataViews/_SourceView.py: tool tips

View File

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