fix editor sidebar show/hide with embedded TimeInfo
This commit is contained in:
parent
1e487d59d1
commit
a6b4d8b8c6
|
@ -724,11 +724,10 @@ Editor::Editor ()
|
||||||
edit_pane.set_check_divider_position (true);
|
edit_pane.set_check_divider_position (true);
|
||||||
edit_pane.add (editor_summary_pane);
|
edit_pane.add (editor_summary_pane);
|
||||||
if (!ARDOUR::Profile->get_trx()) {
|
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 (*_time_info_box, false, false, 0);
|
_editor_list_vbox.pack_start (_the_notebook);
|
||||||
editor_list_vbox->pack_start (_the_notebook);
|
edit_pane.add (_editor_list_vbox);
|
||||||
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_child_minsize (*editor_list_vbox, 30); /* rough guess at width of notebook tabs */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
edit_pane.set_drag_cursor (*_cursors->expand_left_right);
|
edit_pane.set_drag_cursor (*_cursors->expand_left_right);
|
||||||
|
@ -5846,9 +5845,9 @@ void
|
||||||
Editor::show_editor_list (bool yn)
|
Editor::show_editor_list (bool yn)
|
||||||
{
|
{
|
||||||
if (yn) {
|
if (yn) {
|
||||||
_the_notebook.show ();
|
_editor_list_vbox.show ();
|
||||||
} else {
|
} else {
|
||||||
_the_notebook.hide ();
|
_editor_list_vbox.hide ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -626,6 +626,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
|
||||||
|
|
||||||
boost::optional<float> pre_notebook_shrink_pane_width;
|
boost::optional<float> pre_notebook_shrink_pane_width;
|
||||||
|
|
||||||
|
Gtk::VBox _editor_list_vbox;
|
||||||
Gtk::Notebook _the_notebook;
|
Gtk::Notebook _the_notebook;
|
||||||
bool _notebook_shrunk;
|
bool _notebook_shrunk;
|
||||||
void add_notebook_page (std::string const &, Gtk::Widget &);
|
void add_notebook_page (std::string const &, Gtk::Widget &);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user