Update Send: Include internal 'thru' delay-line
[ardour.git] / gtk2_ardour / lv2_plugin_ui.cc
index 75b3ff0bb89f7823e97f855972335611b8513f80..641fa8dce8fa23690dc0fd2ec05a1f501eb63bfd 100644 (file)
@@ -103,9 +103,9 @@ LV2PluginUI::touch(void*    controller,
 
        ControllableRef control = me->_controllables[port_index];
        if (grabbed) {
-               control->start_touch(control->session().transport_frame());
+               control->start_touch(control->session().transport_sample());
        } else {
-               control->stop_touch(false, control->session().transport_frame());
+               control->stop_touch(control->session().transport_sample());
        }
 }
 
@@ -235,12 +235,15 @@ LV2PluginUI::LV2PluginUI(boost::shared_ptr<PluginInsert> pi,
        _ardour_buttons_box.set_border_width (6);
        _ardour_buttons_box.pack_end (focus_button, false, false);
        _ardour_buttons_box.pack_end (bypass_button, false, false, 4);
-       _ardour_buttons_box.pack_end (reset_button, false, false, 4);
+       if (pi->controls().size() > 0) {
+               _ardour_buttons_box.pack_end (reset_button, false, false, 4);
+       }
        _ardour_buttons_box.pack_end (delete_button, false, false);
        _ardour_buttons_box.pack_end (save_button, false, false);
        _ardour_buttons_box.pack_end (add_button, false, false);
        _ardour_buttons_box.pack_end (_preset_combo, false, false);
        _ardour_buttons_box.pack_end (_preset_modified, false, false);
+       _ardour_buttons_box.pack_end (pin_management_button, false, false);
 
        plugin->PresetLoaded.connect (*this, invalidator (*this), boost::bind (&LV2PluginUI::queue_port_update, this), gui_context ());
 }