diff options
author | Karsten Wiese <fzuuzf@googlemail.com> | 2005-12-24 21:19:04 +0000 |
---|---|---|
committer | Karsten Wiese <fzuuzf@googlemail.com> | 2005-12-24 21:19:04 +0000 |
commit | f5d49dd7d73a0cdd57389f9c3ac2b4ded3d08a96 (patch) | |
tree | 3f0d376e8d44bfbe6cfbc08d72e28dfb986fda29 /gtk2_ardour/actions.cc | |
parent | f69c9ed5648041a7059f56f9ea2d26cbb489d427 (diff) |
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
Diffstat (limited to 'gtk2_ardour/actions.cc')
-rw-r--r-- | gtk2_ardour/actions.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/actions.cc b/gtk2_ardour/actions.cc index 39eb840275..cf01284b10 100644 --- a/gtk2_ardour/actions.cc +++ b/gtk2_ardour/actions.cc @@ -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; |