summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-12-23 03:56:01 +0100
committerRobin Gareus <robin@gareus.org>2016-12-23 03:56:01 +0100
commita6b4d8b8c641c141b62e4bec5d205d9d0e8d1e2d (patch)
treee107bd8ce764a54f898caeb1cc52e9f740b31ab0 /gtk2_ardour/editor.cc
parent1e487d59d16f5aa9959b06dd9fde7ff6930408ce (diff)
fix editor sidebar show/hide with embedded TimeInfo
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r--gtk2_ardour/editor.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index 84316a907e..4ece70ec99 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -724,11 +724,10 @@ Editor::Editor ()
edit_pane.set_check_divider_position (true);
edit_pane.add (editor_summary_pane);
if (!ARDOUR::Profile->get_trx()) {
- VBox* editor_list_vbox = manage (new VBox);
- editor_list_vbox->pack_start (*_time_info_box, false, false, 0);
- editor_list_vbox->pack_start (_the_notebook);
- edit_pane.add (*editor_list_vbox);
- edit_pane.set_child_minsize (*editor_list_vbox, 30); /* rough guess at width of notebook tabs */
+ _editor_list_vbox.pack_start (*_time_info_box, false, false, 0);
+ _editor_list_vbox.pack_start (_the_notebook);
+ edit_pane.add (_editor_list_vbox);
+ edit_pane.set_child_minsize (_editor_list_vbox, 30); /* rough guess at width of notebook tabs */
}
edit_pane.set_drag_cursor (*_cursors->expand_left_right);
@@ -5846,9 +5845,9 @@ void
Editor::show_editor_list (bool yn)
{
if (yn) {
- _the_notebook.show ();
+ _editor_list_vbox.show ();
} else {
- _the_notebook.hide ();
+ _editor_list_vbox.hide ();
}
}