More work on progress monitor.

svn: r8142
This commit is contained in:
Richard Taylor
2007-02-17 19:59:21 +00:00
parent e197638418
commit 625fbee200
11 changed files with 144 additions and 66 deletions

View File

@ -260,10 +260,12 @@ class DisplayState(GrampsDb.GrampsDBCallback):
'plugins-reloaded' : (list,list),
}
def __init__(self, window, status, progress, warnbtn, uimanager):
def __init__(self, window, status, progress, warnbtn, uimanager,
progress_monitor):
self.busy = False
self.uimanager = uimanager
self.progress_monitor = progress_monitor
self.window = window
GrampsDb.GrampsDBCallback.__init__(self)
self.status = status
@ -290,6 +292,7 @@ class DisplayState(GrampsDb.GrampsDBCallback):
def db_changed(self, db):
from PluginUtils import _PluginMgr
self.relationship = _PluginMgr.relationship_class(db)
db.connect('long-op-start', self.progress_monitor.add_op)
def display_relationship(self,dbstate):
default_person = dbstate.db.get_default_person()