diff pyink/MBScene.py @ 1304:94e6594dea59

Make comp_dock being instantiated by domview_ui
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 19 Jan 2011 17:56:21 +0800
parents cf2691a18a7a
children 2aa3770f02bf
line wrap: on
line diff
--- a/pyink/MBScene.py	Wed Jan 19 14:52:29 2011 +0800
+++ b/pyink/MBScene.py	Wed Jan 19 17:56:21 2011 +0800
@@ -58,7 +58,6 @@
 	self.desktop = desktop
 	self.window = win
 	self.top = None
-	self._comp_dock = None
 	self.last_update = None
 	pybInkscape.inkscape.connect('change_selection', self.do_selection)
 	self.last_select = None
@@ -356,8 +355,6 @@
 	pass
 
     def show(self):
-	from comp_dock import comp_dock
-	
 	self.OK = True
 	if not self._root:
 	    self._root = self.desktop.doc().root().repr
@@ -365,6 +362,7 @@
 	
 	self.document = self.desktop.doc().rdoc
 	
+	self._domviewui.set_desktop(self.desktop)
 	self._domviewui.handle_doc_root(self.document, self._root)
 	self._domviewui.register_active_frame_callback(self.do_CellClick)
 	self._director = scenes_director(self._domviewui)
@@ -386,10 +384,6 @@
 	self._add_buttons(hbox)
 	vbox.pack_start(hbox, expand=False)
 
-	dock = comp_dock()
-	dock.install_dock(self.desktop)
-	self._comp_dock = dock
-
 	self.top.show_all()
 	self.last_update = None
 	return False