diff options
author | David Robillard <d@drobilla.net> | 2012-04-20 02:12:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-20 02:12:29 +0000 |
commit | ffe5a6c5c2c46df6cc8723219529970ff17d84a9 (patch) | |
tree | 92f22a69cbdef84f1db22eaf70b6d6b8ed23b664 /gtk2_ardour/generic_pluginui.cc | |
parent | 8439514ffae374b01989fd6b4d3b61790665e3fa (diff) |
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
Diffstat (limited to 'gtk2_ardour/generic_pluginui.cc')
-rw-r--r-- | gtk2_ardour/generic_pluginui.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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<PluginInsert> 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()); } |