ActionManager::register_action (RefPtr<ActionGroup> group, const char * name, const char * label, slot<void> sl) :
call Gtk::ActionGroup::add(const Glib::RefPtr<Action>& action) only once. not twice like before through calling ActionManager::register_action (RefPtr<ActionGroup> group, const char * name, const char * label) git-svn-id: svn://localhost/trunk/ardour2@210 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f69c9ed564
commit
f5d49dd7d7
@ -78,7 +78,9 @@ ActionManager::register_action (RefPtr<ActionGroup> group, const char * name, co
|
||||
RefPtr<Action>
|
||||
ActionManager::register_action (RefPtr<ActionGroup> group, const char * name, const char * label, slot<void> sl)
|
||||
{
|
||||
RefPtr<Action> act = register_action (group, name, label);
|
||||
RefPtr<Action> act;
|
||||
|
||||
act = Action::create (name, label);
|
||||
group->add (act, sl);
|
||||
|
||||
return act;
|
||||
|
Loading…
Reference in New Issue
Block a user