Mercurial > MadButterfly
diff pyink/comp_dock.py @ 1319:ab21c148b3c6
Make comp_dock switches timelines correctly
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sat, 22 Jan 2011 22:09:43 +0800 |
parents | 9ab8d50dcf7e |
children | ffbbd3aa218d |
line wrap: on
line diff
--- a/pyink/comp_dock.py Sat Jan 22 22:08:42 2011 +0800 +++ b/pyink/comp_dock.py Sat Jan 22 22:09:43 2011 +0800 @@ -256,10 +256,9 @@ pass def on_treeview_components_cursor_changed(self, *args): + domview_ui = self._domview_ui + comp_name = self._current_component() - print comp_name - - domview_ui = self._domview_ui domview_ui.switch_component(comp_name) pass @@ -277,7 +276,10 @@ pass def on_treeview_timelines_cursor_changed(self, *args): - print args + domview_ui = self._domview_ui + + timeline_name = self._current_timeline() + domview_ui.switch_timeline(timeline_name) pass def on_cellrenderer_timelines_edited(self, renderer, path,