2008-02-15 Douglas S. Blank <dblank@cs.brynmawr.edu>

* src/ViewManager.py (ViewManager.__build_main_window):pass self to DS
	* src/DisplayState.py (DisplayState): added vm param
	DS now has a reference to the VM which allows uistate
	to have access to most of a running GRAMPS application



svn: r10038
This commit is contained in:
Doug Blank 2008-02-15 14:18:55 +00:00
parent 41b16f60d6
commit 131db3ef7e
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-02-15 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/ViewManager.py (ViewManager.__build_main_window):pass self to DS
* src/DisplayState.py (DisplayState): added vm param
DS now has a reference to the VM which allows uistate
to have access to most of a running GRAMPS application
2008-02-15 Benny Malengier <benny.malengier@gramps-project.org>
* src/DateEdit.py: example use of help
* src/GrampsDisplay.py: internationalization of help system

View File

@ -302,9 +302,10 @@ class DisplayState(gen.utils.GrampsDBCallback):
}
def __init__(self, window, status, progress, warnbtn, uimanager,
progress_monitor):
progress_monitor, viewmanager=None):
self.busy = False
self.viewmanager = viewmanager
self.uimanager = uimanager
self.progress_monitor = progress_monitor
self.window = window

View File

@ -282,7 +282,7 @@ class ViewManager:
self.uistate = DisplayState.DisplayState(
self.window, self.statusbar, self.progress, self.warnbtn,
self.uimanager, self.progress_monitor)
self.uimanager, self.progress_monitor, self)
self.state.connect('database-changed', self.uistate.db_changed)