13
0

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:
Carl Hetherington 2009-12-22 01:13:06 +00:00
parent ca602cf216
commit e8e63d8eac
3 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -1989,6 +1989,7 @@ public:
void located ();
bool _pending_locate_request;
Gtk::HBox _summary_hbox;
EditorSummary* _summary;
void region_view_added (RegionView *);

View File

@ -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"));