Fix show/hide of editor summary.
git-svn-id: svn://localhost/ardour2/branches/3.0@6385 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ca602cf216
commit
e8e63d8eac
@ -577,12 +577,11 @@ Editor::Editor ()
|
||||
summary_frame->add (*_summary);
|
||||
summary_frame->show ();
|
||||
|
||||
HBox* summary_hbox = manage (new HBox);
|
||||
summary_hbox->pack_start (*summary_arrows_left, false, false);
|
||||
summary_hbox->pack_start (*summary_frame, true, true);
|
||||
summary_hbox->pack_start (*summary_arrows_right, false, false);
|
||||
_summary_hbox.pack_start (*summary_arrows_left, false, false);
|
||||
_summary_hbox.pack_start (*summary_frame, true, true);
|
||||
_summary_hbox.pack_start (*summary_arrows_right, false, false);
|
||||
|
||||
editor_summary_pane->pack2(*summary_hbox);
|
||||
editor_summary_pane->pack2 (_summary_hbox);
|
||||
|
||||
edit_pane.pack1 (*editor_summary_pane, true, true);
|
||||
edit_pane.pack2 (the_notebook, false, true);
|
||||
|
@ -1989,6 +1989,7 @@ public:
|
||||
void located ();
|
||||
bool _pending_locate_request;
|
||||
|
||||
Gtk::HBox _summary_hbox;
|
||||
EditorSummary* _summary;
|
||||
void region_view_added (RegionView *);
|
||||
|
||||
|
@ -1352,9 +1352,9 @@ Editor::parameter_changed (std::string p)
|
||||
|
||||
bool const s = _session->config.get_show_summary ();
|
||||
if (s) {
|
||||
_summary->show ();
|
||||
_summary_hbox.show ();
|
||||
} else {
|
||||
_summary->hide ();
|
||||
_summary_hbox.hide ();
|
||||
}
|
||||
|
||||
Glib::RefPtr<Action> act = ActionManager::get_action (X_("Editor"), X_("ToggleSummary"));
|
||||
|
Loading…
Reference in New Issue
Block a user