# HG changeset patch # User Thinker K.F. Li # Date 1295705383 -28800 # Node ID ab21c148b3c605159d9418efbc41c92902edbf80 # Parent b1776f441e8a6c639c845f67264c22d19f962eb3 Make comp_dock switches timelines correctly diff -r b1776f441e8a -r ab21c148b3c6 pyink/comp_dock.py --- 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,