13
0

part 2 of the OMG-make-radio-buttons-and-actions-work-properly commit for the step editor

git-svn-id: svn://localhost/ardour2/branches/3.0@7588 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-08-10 21:27:19 +00:00
parent a448f2827c
commit 71970fb881
2 changed files with 9 additions and 3 deletions

View File

@ -299,13 +299,17 @@ ActionMap::register_action (const char* path,
RefPtr<Action>
ActionMap::register_radio_action (const char* path, Gtk::RadioAction::Group& rgroup,
const char* name, const char* label, sigc::slot<void> sl)
const char* name, const char* label,
sigc::slot<void,GtkAction*> sl,
int value)
{
string fullpath;
RefPtr<Action> act = RadioAction::create (rgroup, name, label);
RefPtr<RadioAction> ract = RefPtr<RadioAction>::cast_dynamic(act);
ract->property_value() = value;
act->signal_activate().connect (sl);
act->signal_activate().connect (sigc::bind (sl, act->gobj()));
fullpath = path;
fullpath += '/';

View File

@ -55,7 +55,9 @@ class ActionMap {
Glib::RefPtr<Gtk::Action> register_action (const char* path,
const char* name, const char* label, sigc::slot<void> sl);
Glib::RefPtr<Gtk::Action> register_radio_action (const char* path, Gtk::RadioAction::Group&,
const char* name, const char* label, sigc::slot<void> sl);
const char* name, const char* label,
sigc::slot<void,GtkAction*> sl,
int value);
Glib::RefPtr<Gtk::Action> register_toggle_action (const char*path,
const char* name, const char* label, sigc::slot<void> sl);