From 9d4a65e30debf03b2ce5702ec0e16ac254ea8b75 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 24 Jan 2023 18:35:52 -0700 Subject: [PATCH] most of the code to set up RC preferences metadata Needs a slight change in the metadata data type, API and search code --- gtk2_ardour/rc_option_editor.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index ca2edc8dc9..7a8f62e06b 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -4814,6 +4814,20 @@ These settings will only take effect after %1 is restarted.\n\ /* Place the search entry */ treeview_packer.pack_end (search_packer, false, false); + + /* Connect metadata */ + + for (auto p : pages()) { + for (auto oc : p.second->components) { + Option* o = dynamic_cast (oc); + if (o) { + Configuration::Metadata const * m = Config->get_metadata (o->id()); + if (m) { + // oc->set_metadata (m); + } + } + } + } } bool