diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-01-08 14:27:29 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-01-08 14:27:29 +0000 |
commit | 596937443ba1c9aa4f7d39dbe9f3ebbf47399a44 (patch) | |
tree | f977779b826b04f2c57e03224e100661da482f71 /gtk2_ardour/keyeditor.cc | |
parent | a3f4c2def914c57448c5c0f978f243189e40b00b (diff) |
hide keybinding remove button for SAE profile
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2842 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/keyeditor.cc')
-rw-r--r-- | gtk2_ardour/keyeditor.cc | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/gtk2_ardour/keyeditor.cc b/gtk2_ardour/keyeditor.cc index 6974f60095..c914b6282b 100644 --- a/gtk2_ardour/keyeditor.cc +++ b/gtk2_ardour/keyeditor.cc @@ -10,6 +10,8 @@ #include <pbd/strsplit.h> #include <pbd/replace_all.h> +#include <ardour/profile.h> + #include "actions.h" #include "keyboard.h" #include "keyeditor.h" @@ -54,13 +56,18 @@ KeyEditor::KeyEditor () get_vbox()->set_spacing (6); get_vbox()->pack_start (scroller); - get_vbox()->pack_start (unbind_box, false, false); + + if (!ARDOUR::Profile->get_sae()) { + get_vbox()->pack_start (unbind_box, false, false); + unbind_box.show (); + unbind_button.show (); + } + get_vbox()->set_border_width (12); - scroller.show (); view.show (); - unbind_box.show (); - unbind_button.show (); + scroller.show (); + unbind_button.set_sensitive (false); } |