More fun with LinuxVSTs & threading
[ardour.git] / gtk2_ardour / editor.cc
index 351812aef419ff8c15a16a522ebb708075d873f7..7aaeb466780db1e8e1b5b671f85a4496796427fc 100644 (file)
@@ -828,8 +828,6 @@ Editor::Editor ()
 
        BasicUI::AccessAction.connect (*this, invalidator (*this), boost::bind (&Editor::access_action, this, _1, _2), gui_context());
 
-       PresentationInfo::Change.connect (*this, invalidator (*this), boost::bind (&Editor::presentation_info_changed, this, _1), gui_context());
-
        /* handle escape */
 
        ARDOUR_UI::instance()->Escape.connect (*this, invalidator (*this), boost::bind (&Editor::escape, this), gui_context());
@@ -905,14 +903,6 @@ Editor::~Editor()
        }
 }
 
-void
-Editor::presentation_info_changed (PropertyChange const & what_changed)
-{
-       if (what_changed.contains (Properties::selected)) {
-               track_selection_changed ();
-       }
-}
-
 XMLNode*
 Editor::button_settings () const
 {
@@ -1932,7 +1922,7 @@ Editor::add_region_context_items (Menu_Helpers::MenuList& edit_items, boost::sha
                _popup_region_menu_item->set_label (menu_item_name);
        }
 
-       /* No latering allowed in later is higher layering model */
+       /* No layering allowed in later is higher layering model */
        RefPtr<Action> act = ActionManager::get_action (X_("EditorMenu"), X_("RegionMenuLayering"));
        if (act && Config->get_layer_model() == LaterHigher) {
                act->set_sensitive (false);
@@ -4726,7 +4716,7 @@ Editor::get_preferred_edit_position (EditIgnoreOption ignore, bool from_context_
        if (from_outside_canvas && (ep == EditAtMouse)) {
                ep = EditAtPlayhead;
        } else if (from_context_menu && (ep == EditAtMouse)) {
-               return  canvas_event_sample (&context_click_event, 0, 0);
+               return canvas_event_sample (&context_click_event, 0, 0);
        }
 
        if (entered_marker) {