summaryrefslogtreecommitdiff
path: root/libs/surfaces/faderport8
diff options
context:
space:
mode:
authorJohannes Mueller <github@johannes-mueller.org>2019-04-20 22:36:51 +0200
committerJohannes Mueller <github@johannes-mueller.org>2019-04-20 22:36:51 +0200
commitce47ec411a0894b0bda012d57c5a7472fe7760aa (patch)
tree3d77c15905347f7b6560a21d86eb6b805152a463 /libs/surfaces/faderport8
parent822f55f4afe5d28bb32fba2e35c4518575c29ae3 (diff)
Make use of ActionModel::build_custom_action_combo()
Diffstat (limited to 'libs/surfaces/faderport8')
-rw-r--r--libs/surfaces/faderport8/gui.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/surfaces/faderport8/gui.cc b/libs/surfaces/faderport8/gui.cc
index dffa1b7651..8d664f0f78 100644
--- a/libs/surfaces/faderport8/gui.cc
+++ b/libs/surfaces/faderport8/gui.cc
@@ -339,14 +339,11 @@ FP8GUI::active_port_changed (Gtk::ComboBox* combo, bool for_input)
}
}
-
-
-
void
FP8GUI::build_action_combo (Gtk::ComboBox& cb, FP8Controls::ButtonId id)
{
/* set the active "row" to the right value for the current button binding */
- string current_action = fp.get_button_action (id, false); /* lookup release action */
+ const string current_action = fp.get_button_action (id, false); /* lookup release action */
action_model.build_action_combo(cb, current_action);
cb.signal_changed().connect (sigc::bind (sigc::mem_fun (*this, &FP8GUI::action_changed), &cb, id));
}