From ffe5a6c5c2c46df6cc8723219529970ff17d84a9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 20 Apr 2012 02:12:29 +0000 Subject: Add "Description" pane to generic plugin UI for LV2 plugins with documentation (rdfs:comment property). A Gtk::Entry might be better here, making Gtk::Label wrap based on size is tedious... git-svn-id: svn://localhost/ardour2/branches/3.0@12043 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/generic_pluginui.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/generic_pluginui.cc') diff --git a/gtk2_ardour/generic_pluginui.cc b/gtk2_ardour/generic_pluginui.cc index 6306c051e5..17825c1373 100644 --- a/gtk2_ardour/generic_pluginui.cc +++ b/gtk2_ardour/generic_pluginui.cc @@ -101,6 +101,9 @@ GenericPluginUI::GenericPluginUI (boost::shared_ptr pi, bool scrol VBox* v1_box = manage (new VBox); VBox* v2_box = manage (new VBox); pack_end (plugin_analysis_expander, false, false); + if (!plugin->get_docs().empty()) { + pack_end (description_expander, false, false); + } v1_box->pack_start (*smaller_hbox, false, true); v2_box->pack_start (focus_button, false, true); @@ -265,7 +268,7 @@ GenericPluginUI::build () } const std::string param_docs = plugin->get_parameter_docs(i); - if (param_docs != "") { + if (!param_docs.empty()) { ARDOUR_UI::instance()->set_tip(cui, param_docs.c_str()); } -- cgit v1.2.3