Re: Goocanvas::Widget - embedded widget events
- From: Murray Cumming <murrayc murrayc com>
- To: Robert Gruendler <doobre gmail com>
- Cc: goocanvas-list gnome org
- Subject: Re: Goocanvas::Widget - embedded widget events
- Date: Tue, 11 Nov 2008 18:05:57 +0100
On Tue, 2008-11-11 at 16:28 +0100, Robert Gruendler wrote:
> As i found out in this tutorial, it should be possible to pass extra
> arguments to the signal handler:
>
> http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/sec-binding-extra-arguments.html
>
> This works with passing an additional Glib::ustring like in the
> example, but the compilation fails
>
> when binding the Gtk::Widget itself:
>
> m_button1.signal_clicked().connect( sigc::bind<Gtk::Widget&>( sigc::mem_fun(*this, &HelloWorld::on_button_clicked), widget) );
How about if you use a pointer instead of a reference, and how about if
you just use sigc::bind() instead of sigc::bind<>()?
[snip]
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]