* src/DisplayState.py: include name and relationship on statusbar
svn: r6575
This commit is contained in:
parent
0aaaa45ca1
commit
c024f9f84b
@ -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
|
||||||
|
@ -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)
|
if Config.get(Config.STATUSBAR) > 1:
|
||||||
else:
|
if person.handle != self.dbstate.db.get_default_person().handle:
|
||||||
name = self.display_relationship()
|
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():
|
||||||
|
Loading…
Reference in New Issue
Block a user