summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
diff options
context:
space:
mode:
authorRodrigo Severo <rodrigo@fabricadeideias.com>2012-06-13 04:21:46 +0000
committerRodrigo Severo <rodrigo@fabricadeideias.com>2012-06-13 04:21:46 +0000
commitf9ed2ced4aa2f1f1164b3bc5567c31b442ba265c (patch)
tree2f6504f52da82cf1caf9740b477e1053ee26654c /gtk2_ardour/editor.cc
parent1bd34a34f77e480e2eae469ea4727893c5f97172 (diff)
Much simplier implementation of: "Show Toolbar" act immediately, i.e., even when already maximized, changing this toggle changes whenever toolbar is shown or not.
git-svn-id: svn://localhost/ardour2/branches/3.0@12695 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r--gtk2_ardour/editor.cc27
1 files changed, 13 insertions, 14 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index e096968b87..939c05b1e8 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -3929,36 +3929,35 @@ Editor::session_state_saved (string)
}
void
-Editor::maximise_editing_space (bool force)
+Editor::update_tearoff_visibility()
{
- if (_maximised && !force) {
- return;
- }
-
- fullscreen ();
-
bool visible = Config->get_keep_tearoffs();
_mouse_mode_tearoff->set_visible (visible);
_tools_tearoff->set_visible (visible);
_zoom_tearoff->set_visible (visible);
+}
+
+void
+Editor::maximise_editing_space ()
+{
+ if (_maximised) {
+ return;
+ }
+
+ fullscreen ();
_maximised = true;
}
void
-Editor::restore_editing_space (bool force)
+Editor::restore_editing_space ()
{
- if (!_maximised && !force) {
+ if (!_maximised) {
return;
}
unfullscreen();
- bool visible = Config->get_keep_tearoffs();
- _mouse_mode_tearoff->set_visible (visible);
- _tools_tearoff->set_visible (visible);
- _zoom_tearoff->set_visible (visible);
-
_maximised = false;
}