Gtk::ActionGroup sigc::bind



Hello,
is it possible to connect Gtk::Action added to Gtk::ActionGroup using sigc::bind binded method?

This code:
m_refActionConnectionsGroup->add(Gtk::Action::create((*it).c_str()), sigc::bind(sigc::mem_fun(*this, &MainWindow::on_menu_connection_connect), (*it)));

gives this error:
Error    1    error C2064: term does not evaluate to a function taking 0 arguments    c:\program files (x86)\gtkmm\include\sigc++-2.0\sigc++\adaptors\adaptor_trait.h    251    db2client

How can i connect action in menubar with slot which takes name of menuitem as argument?

Thanks

--
---
Adam Kovari(mailto:kovariadam gmail com)


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