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 the slot, and the second is the argument that should be bound. In general, using the sigc::slot constructor directly is rarely necessary. Here's a correct example: void cb_menu_click(const char *test_param) { ... } ... tmp_item->signal_activate().connect(sigc::mem_fun(*this, &App::cb_menu_click), "test"); Regards, Krzysztof Kosiński _______________________________________________ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list