diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-01-25 03:03:25 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-01-25 03:03:25 +0000 |
commit | d707fa06b79b9ed46323ebe9010c15b198e4058f (patch) | |
tree | b2d13de70d1daeabc96031a79d8cec1f16c92da8 /gtk2_ardour/ardour_ui2.cc | |
parent | 275e710e671409421b6a1155bfeeff0d4580a87a (diff) |
dramatically simplify maximi[sz]ation code, ripping out all the old pane sizing stuff that seems to be a left over from gtk1 (!)
git-svn-id: svn://localhost/ardour2/branches/3.0@11344 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui2.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui2.cc | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/gtk2_ardour/ardour_ui2.cc b/gtk2_ardour/ardour_ui2.cc index 17f3625f4c..69228c4161 100644 --- a/gtk2_ardour/ardour_ui2.cc +++ b/gtk2_ardour/ardour_ui2.cc @@ -592,26 +592,17 @@ ARDOUR_UI::editor_realized () void ARDOUR_UI::maximise_editing_space () { - if (!editor) { - return; - } - - transport_tearoff->set_visible (false); - editor->maximise_editing_space (); - if (Config->get_keep_tearoffs()) { - transport_tearoff->set_visible (true); + if (editor) { + editor->maximise_editing_space (); } } void ARDOUR_UI::restore_editing_space () { - if (!editor) { - return; + if (editor) { + editor->restore_editing_space (); } - - transport_tearoff->set_visible (true); - editor->restore_editing_space (); } bool |