add QMDSP library to ardev file so that its discoverable as we try to load VAMP stuff
[ardour.git] / gtk2_ardour / option_editor.cc
index 46e10d00b2a72373186ca3b7a90eb8fd90b4dfb4..040146876b413d5bd37934dc230bdc12e64fdc34 100644 (file)
@@ -302,3 +302,20 @@ OptionEditor::add_option (std::string const & pn, OptionEditorComponent* o)
        o->add_to_page (p);
        o->set_state_from_config ();
 }
+
+void
+OptionEditor::set_current_page (string const & p)
+{
+       int i = 0;
+       while (i < _notebook.get_n_pages ()) {
+               if (_notebook.get_tab_label_text (*_notebook.get_nth_page (i)) == p) {
+                       _notebook.set_current_page (i);
+                       return;
+               }
+
+               ++i;
+       }
+}
+
+
+