diff pyink/domview_ui.py @ 1308:49775feefbcf

Show components and timelines in comp_dock
author Thinker K.F. Li <thinker@codemud.net>
date Thu, 20 Jan 2011 00:50:49 +0800
parents 8c0a4684c1f7
children e6bb9d00341f
line wrap: on
line diff
--- a/pyink/domview_ui.py	Thu Jan 20 00:34:08 2011 +0800
+++ b/pyink/domview_ui.py	Thu Jan 20 00:50:49 2011 +0800
@@ -379,7 +379,8 @@
 ## \biref Components and timelines management for domview.
 #
 # This is mix-in for domview_ui to provide components and timelines
-# management functions.
+# management functions.  This class expose a lot of methods from class
+# component_manager.
 #
 class domview_ui_comp(object):
     def __init__(self):
@@ -394,7 +395,7 @@
     #
     def set_desktop(self, desktop):
         self._desktop = desktop
-        self._comp_dock.install_dock(desktop) # from component_manager
+        self._comp_dock.install_dock(desktop)
         pass
     
     def add_component(self, name):
@@ -498,6 +499,7 @@
 	self._fl_stack.init_framelines()
 	self._add_frameline_for_every_layer()
 	self._fl_stack.show_framelines()
+        self._comp_dock.refresh() # from domview_ui_comp
 
         self._doc = doc
         self._root = root