diff pyink/comp_dock.py @ 1323:ffbbd3aa218d

Make a component from a group. User can translate a group into a component from context menu.
author Thinker K.F. Li <thinker@codemud.net>
date Sun, 30 Jan 2011 19:15:17 +0800
parents ab21c148b3c6
children c2a693a27eb9
line wrap: on
line diff
--- a/pyink/comp_dock.py	Sun Jan 23 09:24:01 2011 +0800
+++ b/pyink/comp_dock.py	Sun Jan 30 19:15:17 2011 +0800
@@ -260,6 +260,10 @@
         
         comp_name = self._current_component()
         domview_ui.switch_component(comp_name)
+        
+        group = domview_ui.get_layer_group(0)
+        desktop = self._desktop # from comp_dock_base
+        desktop.setCurrentLayer(group.spitem)
         pass
     
     def on_cellrenderer_comp_edited(self, renderer, path,