From: pabs Date: Sat, 10 Mar 2007 00:44:47 +0000 (+0000) Subject: Half fix 1368904: add function to enable/disable the timebar. Just need to change... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b1a58aea714300248264dddd05dd3f6976e4dd4f;p=synfig.git Half fix 1368904: add function to enable/disable the timebar. Just need to change appropriate callers now based on user feedback. git-svn-id: http://svn.voria.com/code@281 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index c70048d..493935e 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -2932,6 +2932,17 @@ CanvasView::hide_timebar() children_tree->set_show_timetrack(false); } +void +CanvasView::timebar_set_sensitive(bool sensitive) +{ + timebar->set_sensitive(sensitive); + current_time_widget->set_sensitive(sensitive); + //keyframe_tab_child->set_sensitive(sensitive); + if(layer_tree) + layer_tree->set_sensitive(sensitive); + if(children_tree) + children_tree->set_sensitive(sensitive); +} void diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.h b/synfig-studio/trunk/src/gtkmm/canvasview.h index cdd9975..efe10cf 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.h +++ b/synfig-studio/trunk/src/gtkmm/canvasview.h @@ -568,6 +568,9 @@ public: //! Hides the time bar void hide_timebar(); + //t Enables or disables interaction with the timebar + void timebar_set_sensitive(bool sensitive); + void do_rotoscope_bline(); void do_rotoscope();