summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui_options.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-07-23 23:29:36 +0000
committerCarl Hetherington <carl@carlh.net>2010-07-23 23:29:36 +0000
commitcd6c3af27d754e7d7dd09049c9fdb26af0120523 (patch)
tree0e7d688f10a73ec9a0d245cf72f4f47d55136042 /gtk2_ardour/ardour_ui_options.cc
parent6a61c1d3ff9e137c3e91ab5b475e43695adcae20 (diff)
Patch from dx9s to rearrange the View/Window menus a bit and add an option to keap tearoff toolbars when maximising editor space. Fixes #2974.
git-svn-id: svn://localhost/ardour2/branches/3.0@7480 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui_options.cc')
-rw-r--r--gtk2_ardour/ardour_ui_options.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_options.cc b/gtk2_ardour/ardour_ui_options.cc
index 72404798bc..fd914b95dd 100644
--- a/gtk2_ardour/ardour_ui_options.cc
+++ b/gtk2_ardour/ardour_ui_options.cc
@@ -47,6 +47,14 @@ using namespace ARDOUR;
using namespace PBD;
void
+ARDOUR_UI::toggle_keep_tearoffs ()
+{
+ ActionManager::toggle_config_state ("Common", "KeepTearoffs", &RCConfiguration::set_keep_tearoffs, &RCConfiguration::get_keep_tearoffs);
+
+ ARDOUR_UI::toggle_editing_space ();
+}
+
+void
ARDOUR_UI::toggle_external_sync()
{
ActionManager::toggle_config_state_foo ("Transport", "ToggleExternalSync", sigc::mem_fun (_session->config, &SessionConfiguration::set_external_sync), sigc::mem_fun (_session->config, &SessionConfiguration::get_external_sync));
@@ -334,6 +342,8 @@ ARDOUR_UI::parameter_changed (std::string p)
}
#endif
+ } else if (p == "keep-tearoffs") {
+ ActionManager::map_some_state ("Common", "KeepTearoffs", &RCConfiguration::get_keep_tearoffs);
} else if (p == "mmc-control") {
ActionManager::map_some_state ("options", "UseMMC", &RCConfiguration::get_mmc_control);
} else if (p == "midi-feedback") {