Re: [Fwd: connecting to signal_focus_out_event with additional parameters]



Murray Cumming wrote:

myentry->signal_focus_out_event().connect(sigc::bind<Gtk::Entry>
*>(sigc::mem_fun(*this,&MyClass::on_entry_focus_out),myentry));

You can't pass Gtk::Entry by value. Maybe you meant <Gtk::Entry*>.
However, I think sigc::bind() without the <something> will do what you
want.


Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com


I didn't pass it by value, I passed a pointer to it. The stupid email client just broke my code listing up to make it look like I passed it by value. It's moot now anyway.. I derived my own entry class from Gtk::Entry and overrode the Gtk::Entry::on_focus_out_event method to do my thing.

Bob



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