W dniu 21 stycznia 2010 11:40 użytkownik Murray Cumming
murr...@murrayc.com napisał:
tmp_item-signal_activate().connect(sigc::mem_fun(*this,
App::cb_menu_click), test);
I think you are missing a sigc::bind() there.
http://libsigc.sourceforge.net/libsigc2/docs/manual/html/ch04.html
Oops,
On Wed, 2010-01-20 at 23:49 +0100, Krzysztof Kosiński wrote:
void cb_menu_click(const char *test_param) { ... }
...
tmp_item-signal_activate().connect(sigc::mem_fun(*this,
App::cb_menu_click), test);
I think you are missing a sigc::bind() there.
In GTK+ we have a gpointer (called user_data) associeted with signal
handlers that are specificated in the signal association. So, its a
per-association value. How to have something like this in GTKMM (libsig++).
The following code don´t work:
Gtk::MenuItem * tmp_item;
2010/1/20 John Holmes merli.ren...@gmail.com:
The following code don´t work:
Gtk::MenuItem * tmp_item;
refXml-get_widget(mn_add_dvd, tmp_item);
(tmp_item)-signal_activate().connect( sigc::bind( sigc::slot (*this,
app::cb_menu_click, test)));
The first argument of sigc::bind is