13
0

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:
Karsten Wiese 2005-12-24 21:19:04 +00:00
parent f69c9ed564
commit f5d49dd7d7

View File

@ -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;