diff options
author | Robin Gareus <robin@gareus.org> | 2018-12-22 00:34:31 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-12-22 00:34:31 +0100 |
commit | 4b9d96ff8eb8f33e9476b80ac6fc57d2dfdcf812 (patch) | |
tree | 54afe18f8682ab7381c4983275780c9587cc5a4b /gtk2_ardour/lv2_plugin_ui.cc | |
parent | b8aba905c3fda2c02857c1bc360b2fcf85c95232 (diff) |
Cleanup LV2 file-dialog extension
<drobilla> "This function returns immediately"
Diffstat (limited to 'gtk2_ardour/lv2_plugin_ui.cc')
-rw-r--r-- | gtk2_ardour/lv2_plugin_ui.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc index 0bb79a2562..55338514f9 100644 --- a/gtk2_ardour/lv2_plugin_ui.cc +++ b/gtk2_ardour/lv2_plugin_ui.cc @@ -144,20 +144,6 @@ LV2PluginUI::request_parameter (void* handle, LV2_URID key) return 0; } -#if 0 // MODAL, blocking - - Gtk::FileChooserDialog* lv2ui_file_dialog (desc.label, FILE_CHOOSER_ACTION_OPEN); - Gtkmm2ext::add_volume_shortcuts (lv2ui_file_dialog); - lv2ui_file_dialog.add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); - lv2ui_file_dialog.add_button (Gtk::Stock::OPEN, Gtk::RESPONSE_ACCEPT); - lv2ui_file_dialog.set_default_response(Gtk::RESPONSE_ACCEPT); - if (_file_dialog.run()= Gtk::RESPONSE_ACCEPT) { - me->plugin->set_property (desc.key, Variant(Variant::PATH, lv2ui_file_dialog.get_filename())); - } - return 0; - -#else - if (me->active_parameter_requests.find (key) != me->active_parameter_requests.end()) { return 0; /* already showing dialog */ } @@ -186,8 +172,6 @@ LV2PluginUI::request_parameter (void* handle, LV2_URID key) lv2ui_file_dialog->signal_response().connect (sigc::bind (sigc::mem_fun (*me, &LV2PluginUI::set_path_property), desc, lv2ui_file_dialog)); lv2ui_file_dialog->present(); return 0; - -#endif } void |