summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-06-17 14:28:10 +0000
committerCarl Hetherington <carl@carlh.net>2012-06-17 14:28:10 +0000
commitadd52f1c0ef787a580c44d719bc6e4c9c5ae09a4 (patch)
treea26208524082994adcf7a6e2adae84e18bf9f233 /gtk2_ardour
parent2863640a52ddaea45ebe5bdd8aceb5567fe8989c (diff)
Remove believed-unnecessary and broken MIDI thru option;
should fix #4749. git-svn-id: svn://localhost/ardour2/branches/3.0@12746 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/midi_time_axis.cc17
-rw-r--r--gtk2_ardour/midi_time_axis.h3
2 files changed, 0 insertions, 20 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc
index f182c301d6..9a4200b4af 100644
--- a/gtk2_ardour/midi_time_axis.cc
+++ b/gtk2_ardour/midi_time_axis.cc
@@ -113,7 +113,6 @@ MidiTimeAxisView::MidiTimeAxisView (PublicEditor& ed, Session* sess, Canvas& can
, _channel_color_mode_item(0)
, _track_color_mode_item(0)
, _step_edit_item (0)
- , _midi_thru_item (0)
, controller_menu (0)
, _step_editor (0)
{
@@ -405,26 +404,10 @@ MidiTimeAxisView::append_extra_display_menu_items ()
items.push_back (MenuElem (_("Note Range"), *range_menu));
items.push_back (MenuElem (_("Note Mode"), *build_note_mode_menu()));
- items.push_back (CheckMenuElem (_("MIDI Thru"), sigc::mem_fun(*this, &MidiTimeAxisView::toggle_midi_thru)));
- _midi_thru_item = dynamic_cast<CheckMenuItem*>(&items.back());
-
items.push_back (SeparatorElem ());
}
void
-MidiTimeAxisView::toggle_midi_thru ()
-{
- if (!_midi_thru_item) {
- return;
- }
-
- bool view_yn = _midi_thru_item->get_active();
- if (view_yn != midi_track()->midi_thru()) {
- midi_track()->set_midi_thru (view_yn);
- }
-}
-
-void
MidiTimeAxisView::build_automation_action_menu (bool for_selection)
{
using namespace Menu_Helpers;
diff --git a/gtk2_ardour/midi_time_axis.h b/gtk2_ardour/midi_time_axis.h
index 4da89df109..8761979947 100644
--- a/gtk2_ardour/midi_time_axis.h
+++ b/gtk2_ardour/midi_time_axis.h
@@ -136,11 +136,8 @@ class MidiTimeAxisView : public RouteTimeAxisView
Gtk::ComboBoxText _custom_device_mode_selector;
Gtk::CheckMenuItem* _step_edit_item;
- Gtk::CheckMenuItem* _midi_thru_item;
Gtk::Menu* default_channel_menu;
- void toggle_midi_thru ();
-
void change_all_channel_tracks_visibility (bool yn, Evoral::Parameter param);
void add_basic_parameter_menu_item (Gtk::Menu_Helpers::MenuList& items, const std::string& label, Evoral::Parameter param);
void add_channel_command_menu_item (Gtk::Menu_Helpers::MenuList& items, const std::string& label, ARDOUR::AutomationType auto_type, uint8_t cmd);