diff options
author | Rodrigo Severo <rodrigo@fabricadeideias.com> | 2012-06-13 04:21:46 +0000 |
---|---|---|
committer | Rodrigo Severo <rodrigo@fabricadeideias.com> | 2012-06-13 04:21:46 +0000 |
commit | f9ed2ced4aa2f1f1164b3bc5567c31b442ba265c (patch) | |
tree | 2f6504f52da82cf1caf9740b477e1053ee26654c /gtk2_ardour/ardour_ui2.cc | |
parent | 1bd34a34f77e480e2eae469ea4727893c5f97172 (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/ardour_ui2.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui2.cc | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gtk2_ardour/ardour_ui2.cc b/gtk2_ardour/ardour_ui2.cc index b16c466f19..c8b0f673be 100644 --- a/gtk2_ardour/ardour_ui2.cc +++ b/gtk2_ardour/ardour_ui2.cc @@ -606,18 +606,26 @@ ARDOUR_UI::editor_realized () } void -ARDOUR_UI::maximise_editing_space (bool force) +ARDOUR_UI::update_tearoff_visibility () { if (editor) { - editor->maximise_editing_space (force); + editor->update_tearoff_visibility (); } } void -ARDOUR_UI::restore_editing_space (bool force) +ARDOUR_UI::maximise_editing_space () { if (editor) { - editor->restore_editing_space (force); + editor->maximise_editing_space (); + } +} + +void +ARDOUR_UI::restore_editing_space () +{ + if (editor) { + editor->restore_editing_space (); } } |