Half fix 1368904: add function to enable/disable the timebar. Just need to change...
authorpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 10 Mar 2007 00:44:47 +0000 (00:44 +0000)
committerpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 10 Mar 2007 00:44:47 +0000 (00:44 +0000)
git-svn-id: http://svn.voria.com/code@281 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/canvasview.cpp
synfig-studio/trunk/src/gtkmm/canvasview.h

index c70048d..493935e 100644 (file)
@@ -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
index cdd9975..efe10cf 100644 (file)
@@ -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();