new UI config var to allow playhead to be optionally draggable (default is: yes,...
[ardour.git] / gtk2_ardour / editor.cc
index 042d03fa574f9e7ad80c0c5e82e81cab2e834fd9..a837a5a429a25db62cc5f6fa50eab3a131d66390 100644 (file)
 #include "tempo_lines.h"
 #include "time_axis_view.h"
 #include "utils.h"
+#include "verbose_cursor.h"
 
 #include "i18n.h"
 
@@ -760,9 +761,14 @@ Editor::Editor ()
         }
 
        constructed = true;
-       instant_save ();
+
+       /* grab current parameter state */
+       boost::function<void (string)> pc (boost::bind (&Editor::ui_parameter_changed, this, _1));
+       ARDOUR_UI::config()->map_parameters (pc);
 
        setup_fade_images ();
+
+       instant_save ();
 }
 
 Editor::~Editor()
@@ -5506,5 +5512,9 @@ Editor::ui_parameter_changed (string parameter)
                        _cursor_stack.pop();
                }
                _cursors->set_cursor_set (ARDOUR_UI::config()->get_icon_set());
+       } else if (parameter == "draggable-playhead") {
+               if (_verbose_cursor) {
+                       playhead_cursor->set_sensitive (ARDOUR_UI::config()->get_draggable_playhead());
+               }
        }
 }