From: Paul Davis Date: Tue, 25 Nov 2008 11:39:51 +0000 (+0000) Subject: colinf's patch to remove height buttons from automation tracks X-Git-Tag: 2.8.16~983 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=895419625b75e0b1497e49fd571bc21cd27202bd;p=ardour.git colinf's patch to remove height buttons from automation tracks git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4251 d708f5d6-7413-0410-9779-e7cbd77b26cf --- diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index 595eb2207f..eeb7cddb7c 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -52,7 +52,6 @@ AutomationTimeAxisView::AutomationTimeAxisView (Session& s, boost::shared_ptrtooltips().set_tip(height_button, _("track height")); ARDOUR_UI::instance()->tooltips().set_tip(auto_button, _("automation state")); ARDOUR_UI::instance()->tooltips().set_tip(clear_button, _("clear track")); ARDOUR_UI::instance()->tooltips().set_tip(hide_button, _("hide track")); @@ -160,14 +156,12 @@ AutomationTimeAxisView::AutomationTimeAxisView (Session& s, boost::shared_ptr= hNormal) || (height >= hNormal || h < hNormal) ); TimeAxisView* state_parent = get_parent_with_state (); XMLNode* xml_node = (state_parent ? state_parent->get_child_xml_node (_state_name) : NULL); @@ -351,7 +339,6 @@ AutomationTimeAxisView::set_height (uint32_t h) name_hbox.show_all (); auto_button.show(); - height_button.show(); clear_button.show(); hide_button.show_all(); @@ -370,15 +357,11 @@ AutomationTimeAxisView::set_height (uint32_t h) name_hbox.show_all (); auto_button.hide(); - height_button.hide(); clear_button.hide(); hide_button.hide(); } } else if (h >= hNormal){ - auto_button.show(); - height_button.show(); - clear_button.show(); - hide_button.show_all(); + cerr << "track grown, but neither changed_between_small_and_normal nor first_call_to_set_height set!" << endl; } if (changed) { diff --git a/gtk2_ardour/automation_time_axis.h b/gtk2_ardour/automation_time_axis.h index 698d627ef1..a92dc445f4 100644 --- a/gtk2_ardour/automation_time_axis.h +++ b/gtk2_ardour/automation_time_axis.h @@ -106,7 +106,6 @@ class AutomationTimeAxisView : public TimeAxisView { bool first_call_to_set_height; Gtk::Button hide_button; - Gtk::Button height_button; Gtk::Button clear_button; Gtk::Button auto_button; Gtk::Menu* automation_menu; @@ -119,7 +118,6 @@ class AutomationTimeAxisView : public TimeAxisView { Gtk::CheckMenuItem* auto_write_item; void clear_clicked (); - void height_clicked (); void hide_clicked (); void auto_clicked ();