From 596937443ba1c9aa4f7d39dbe9f3ebbf47399a44 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 8 Jan 2008 14:27:29 +0000 Subject: [PATCH] hide keybinding remove button for SAE profile git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2842 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/keyeditor.cc | 15 +++++++++++---- 1 file 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 #include +#include + #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); }