summaryrefslogtreecommitdiff
path: root/gtk2_ardour/keyboard.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-02-21 19:30:01 +0000
committerDavid Robillard <d@drobilla.net>2008-02-21 19:30:01 +0000
commit4d94305cc904cc2cce33d62050f351fe80f0d517 (patch)
treefcb4bdeb4a6b3e406a577c1818408e858172ca99 /gtk2_ardour/keyboard.cc
parent0d0bd81a75d23a9d2dd13312f30b7f21138e037a (diff)
Fix install path problems (s/ardour2/ardour3).
Fix finding of keybindings file when running from source tree (via ardev/ardbg). Fix clashing keybindings for zoom stuff. Add note tool keybinding and menu entry. git-svn-id: svn://localhost/ardour2/branches/3.0@3099 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/keyboard.cc')
-rw-r--r--gtk2_ardour/keyboard.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk2_ardour/keyboard.cc b/gtk2_ardour/keyboard.cc
index 36e2ab7fe1..b7706556ed 100644
--- a/gtk2_ardour/keyboard.cc
+++ b/gtk2_ardour/keyboard.cc
@@ -405,7 +405,6 @@ Keyboard::setup_keybindings ()
{
using namespace ARDOUR_COMMAND_LINE;
std::string default_bindings = "mnemonic-us.bindings";
- std::string path;
vector<string> strs;
binding_files.clear ();
@@ -415,7 +414,7 @@ Keyboard::setup_keybindings ()
/* set up the per-user bindings path */
strs.push_back (Glib::get_home_dir());
- strs.push_back (".ardour2");
+ strs.push_back (".ardour3");
strs.push_back ("ardour.bindings");
user_keybindings_path = Glib::build_filename (strs);
@@ -484,9 +483,7 @@ Keyboard::setup_keybindings ()
SearchPath spath = ardour_search_path() + user_config_directory() + system_config_search_path();
- find_file_in_search_path (spath, keybindings_path, keybindings_file);
-
- if (path.empty()) {
+ if ( ! find_file_in_search_path (spath, keybindings_path, keybindings_file)) {
if (keybindings_path == default_bindings) {
error << _("Default keybindings not found - Ardour will be hard to use!") << endmsg;
@@ -502,7 +499,7 @@ Keyboard::setup_keybindings ()
/* use it */
- keybindings_path = path;
+ keybindings_path = keybindings_file.to_string();
break;
}