From e8e63d8eac72ee3073ea991175a15c7c35a0a351 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 22 Dec 2009 01:13:06 +0000 Subject: [PATCH] Fix show/hide of editor summary. git-svn-id: svn://localhost/ardour2/branches/3.0@6385 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor.cc | 9 ++++----- gtk2_ardour/editor.h | 1 + gtk2_ardour/editor_actions.cc | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 9b710a8aa0..ae466eef63 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -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); diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index e3cf417fa0..c045136f61 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -1989,6 +1989,7 @@ public: void located (); bool _pending_locate_request; + Gtk::HBox _summary_hbox; EditorSummary* _summary; void region_view_added (RegionView *); diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc index ac98482f4e..6a7e818135 100644 --- a/gtk2_ardour/editor_actions.cc +++ b/gtk2_ardour/editor_actions.cc @@ -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 act = ActionManager::get_action (X_("Editor"), X_("ToggleSummary"));