Set tooltips on generic UI controls for LV2 plugin controls with documentation (rdfs...
[ardour.git] / gtk2_ardour / generic_pluginui.cc
index 3f8d0f63c95c19874c3bea146e866acfbf821f78..6306c051e56f2d2b31e3088f657e584cc2d0c843 100644 (file)
@@ -264,6 +264,11 @@ GenericPluginUI::build ()
                                continue;
                        }
 
+                       const std::string param_docs = plugin->get_parameter_docs(i);
+                       if (param_docs != "") {
+                               ARDOUR_UI::instance()->set_tip(cui, param_docs.c_str());
+                       }
+
                        if (cui->controller || cui->clickbox || cui->combo) {
                                // Get all of the controls into a list, so that
                                // we can lay them out a bit more nicely later.