Re: signals with parameters



Seems like you want to use sigc::bind like that:

hscale->signal_value_changed().connect(sigc::bind(sigc::mem_fun(*this, &Application::on_target_hscale_changed), hscale));

The callback function (on_target_hscale_changed), now takes a Gtk::HScale* parameter as last argument.

 - Armin



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