Code cleanup
svn: r13222
This commit is contained in:
parent
7f2b239f26
commit
9cbb58af27
@ -326,19 +326,11 @@ class RecordsGramplet(Gramplet):
|
|||||||
self.set_tooltip(_("Double-click name for details"))
|
self.set_tooltip(_("Double-click name for details"))
|
||||||
self.set_text(_("No Family Tree loaded."))
|
self.set_text(_("No Family Tree loaded."))
|
||||||
|
|
||||||
|
|
||||||
def db_changed(self):
|
def db_changed(self):
|
||||||
self.update()
|
self.dbstate.db.connect('person-rebuild', self.update)
|
||||||
#self.dbstate.db.connect('person-add', self.update)
|
self.dbstate.db.connect('family-rebuild', self.update)
|
||||||
#self.dbstate.db.connect('person-delete', self.update)
|
|
||||||
#self.dbstate.db.connect('person-update', self.update)
|
|
||||||
#self.dbstate.db.connect('family-add', self.update)
|
|
||||||
#self.dbstate.db.connect('family-delete', self.update)
|
|
||||||
#self.dbstate.db.connect('family-update', self.update)
|
|
||||||
|
|
||||||
|
|
||||||
def main(self):
|
def main(self):
|
||||||
|
|
||||||
self.set_text(_("Processing...") + "\n")
|
self.set_text(_("Processing...") + "\n")
|
||||||
yield True
|
yield True
|
||||||
records = _find_records(self.dbstate.db, None,
|
records = _find_records(self.dbstate.db, None,
|
||||||
|
Loading…
Reference in New Issue
Block a user