Get current action in ActionGroup



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 ? 


-- 
Vasiliy G Tolstov
http://selfip.ru



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