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:
		| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user