summaryrefslogtreecommitdiff
path: root/gtk2_ardour/rc_option_editor.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-12-28 23:02:38 +0100
committerRobin Gareus <robin@gareus.org>2016-12-28 23:02:38 +0100
commitf6e44ce3b5696976d5e8db07164d8d8760019ffa (patch)
treeeff928ee3ee87a617ca5247a74f3decd5a661c84 /gtk2_ardour/rc_option_editor.cc
parentc8d00159868427ac73bbef26b6bdedb292a3411f (diff)
Remove "Feedback" from Preferences Ctrl Surface pane.
Diffstat (limited to 'gtk2_ardour/rc_option_editor.cc')
-rw-r--r--gtk2_ardour/rc_option_editor.cc12
1 files changed, 1 insertions, 11 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc
index 22d00109ef..30b55259bd 100644
--- a/gtk2_ardour/rc_option_editor.cc
+++ b/gtk2_ardour/rc_option_editor.cc
@@ -1370,8 +1370,7 @@ class ControlSurfacesOptions : public OptionEditorPageBox
_view.append_column (_("Control Surface Protocol"), _model.name);
_view.get_column(0)->set_resizable (true);
_view.get_column(0)->set_expand (true);
- _view.append_column_editable (_("Enabled"), _model.enabled);
- _view.append_column_editable (_("Feedback"), _model.feedback);
+ _view.append_column_editable (_("Enable"), _model.enabled);
Label* l = manage (new Label (string_compose ("<b>%1</b>", _("Control Surfaces"))));
l->set_alignment (0, 0.5);
@@ -1420,7 +1419,6 @@ class ControlSurfacesOptions : public OptionEditorPageBox
TreeModel::Row r = *_store->append ();
r[_model.name] = (*i)->name;
r[_model.enabled] = ((*i)->protocol || (*i)->requested);
- r[_model.feedback] = ((*i)->protocol && (*i)->protocol->get_feedback ());
r[_model.protocol_info] = *i;
}
}
@@ -1480,12 +1478,6 @@ class ControlSurfacesOptions : public OptionEditorPageBox
}
}
- bool const was_feedback = (cpi->protocol && cpi->protocol->get_feedback ());
- bool const is_feedback = r[_model.feedback];
-
- if (was_feedback != is_feedback && cpi->protocol) {
- cpi->protocol->set_feedback (is_feedback);
- }
selection_changed ();
}
@@ -1543,13 +1535,11 @@ class ControlSurfacesOptions : public OptionEditorPageBox
{
add (name);
add (enabled);
- add (feedback);
add (protocol_info);
}
TreeModelColumn<string> name;
TreeModelColumn<bool> enabled;
- TreeModelColumn<bool> feedback;
TreeModelColumn<ControlProtocolInfo*> protocol_info;
};