Re: Get current action in ActionGroup



On Fri, 2008-02-29 at 01:56 +0300, Vasiliy G Tolstov wrote:
> Hello!
> 
> I'm having some code like this
> 
> 
> m_refActionGroup->add(Gtk::Action::create("Users",Gtk::StockID("users_stock")),sigc::mem_fun(*this, &Window::on_action_users));
> 
> m_refActionGroup->add(Gtk::Action::create("Groups",Gtk::StockID("users_stock")),sigc::mem_fun(*this, &Window::on_action_groups));
> 
>   m_refActionGroup->add( Gtk::Action::create("Create",
> Gtk::Stock::NEW),
>           sigc::mem_fun(*this, &Window::on_action_create) );
>   m_refActionGroup->add( Gtk::Action::create("Modify",
> Gtk::Stock::EDIT),
>           sigc::mem_fun(*this, &Window::on_action_change) );
>   m_refActionGroup->add( Gtk::Action::create("Delete",
> Gtk::Stock::DELETE),
>           sigc::mem_fun(*this, &Window::on_action_delete) );
> 
> This actions are the same for users and groups. How can i get which
> actiongroup selected by user to provide various dialogs to create user
> or group.. ? Is that possible ?  

you  might find this code helpful (or not):

http://viewcvs.ardour.org/filedetails.php?repname=Ardour&path=%
2Fbranches%2F2.0-ongoing%2Fgtk2_ardour%2Factions.cc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]