keybindings_dict['%LEVEL4%'] = 'Mod2'
keybindings_dict['%WINDOW%'] = 'Alt'
-bindings = { }
-
-for b in [ 'SAE-de', 'SAE-us', 'mnemonic-us', 'ergonomic-us' ]:
+for b in [ 'SAE-de', 'mnemonic-us', 'ergonomic-us' ]:
target_file = b + '.bindings'
src_file = target_file + '.in'
- bindings[b] = env.SubstInFile (target_file, src_file, SUBST_DICT = keybindings_dict);
- Default (bindings[b])
+ Default (env.SubstInFile (target_file, src_file, SUBST_DICT = keybindings_dict))
my_subst_dict['%INSTALL_PREFIX%'] = final_prefix
my_subst_dict['%LIBDIR%'] = env['LIBDIR']
std::string path;
vector<string> strs;
+ binding_files.clear ();
+
ARDOUR::find_bindings_files (binding_files);
/* set up the per-user bindings path */
user_keybindings_path = Glib::build_filename (strs);
+ if (Glib::file_test (user_keybindings_path, Glib::FILE_TEST_EXISTS)) {
+ std::pair<string,string> newpair;
+ newpair.first = _("your own");
+ newpair.second = user_keybindings_path;
+ binding_files.insert (newpair);
+ }
+
/* check to see if they gave a style name ("SAE", "ergonomic") or
an actual filename (*.bindings)
*/