Re: data in signal association. (user_data on GTK+)
- From: Krzysztof Kosiński <tweenk pl gmail com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list gnome org
- Subject: Re: data in signal association. (user_data on GTK+)
- Date: Fri, 22 Jan 2010 11:07:04 +0100
W dniu 21 stycznia 2010 11:40 użytkownik Murray Cumming
<murrayc 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, that's right - a typo :) Of coure it should be:
tmp_item->signal_activate().connect(
sigc::bind(
sigc::mem_fun(*this, &App::cb_menu_click),
"test"
)
);
Regards, Krzysztof
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]