assert (act);
action_script_call_btn[i].set_text (string_compose ("%1", i+1));
action_script_call_btn[i].set_related_action (act);
+ action_script_call_btn[i].set_sensitive (act->get_sensitive ());
const int row = i % 3;
const int col = i / 3;
action_script_table.attach (action_script_call_btn[i], col, col + 1, row, row + 1, EXPAND, EXPAND, 1, 1);
assert (act);
if (n.empty ()) {
act->set_label (string_compose (_("Unset #%1"), i + 1));
- act->set_tooltip (_("(no action bound"));
+ act->set_tooltip (_("no action bound"));
act->set_sensitive (false);
} else {
act->set_label (n);
for (int i = 1; i <= 9; ++i) {
string const a = string_compose (X_("script-action-%1"), i);
string const n = string_compose (_("Unset #%1"), i);
- act = reg_sens (editor_actions, a.c_str(), n.c_str(), sigc::bind (sigc::mem_fun (*this, &Editor::trigger_script), i - 1));
- act->set_tooltip (_("(no action bound"));
+ act = myactions.register_action (editor_actions, a.c_str(), n.c_str(), sigc::bind (sigc::mem_fun (*this, &Editor::trigger_script), i - 1));
+ act->set_tooltip (_("no action bound"));
act->set_sensitive (false);
}