_WRAP_SIGNAL: when the C klass does not have a virtual function

View: New views
3 Messages — Rating Filter:   Alert me  

_WRAP_SIGNAL: when the C klass does not have a virtual function

by Debarshi Ray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When I am using _WRAP_SIGNAL to wrap a signal (eg.,
animation_completed of ChamplainView) it assumes that a virtual method
(eg., klass->animation_completed) is present to allow default signal
handlers. However ChamplainView does not have such a virtual method.
Do I need to fix ChamplainView?

Happy hacking,
Debarshi
--
One reason that life is complex is that it has a real part and an
imaginary part.
    -- Andrew Koenig
_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: _WRAP_SIGNAL: when the C klass does not have a virtual function

by Murray Cumming :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 2009-10-04 at 13:44 +0300, Debarshi Ray wrote:
> When I am using _WRAP_SIGNAL to wrap a signal (eg.,
> animation_completed of ChamplainView) it assumes that a virtual method
> (eg., klass->animation_completed) is present to allow default signal
> handlers. However ChamplainView does not have such a virtual method.

You can use the no_default_handler option:
http://library.gnome.org/devel/gtkmm-tutorial/unstable/sec-wrapping-hg-files.html.en#gmmproc-wrap-signal

> Do I need to fix ChamplainView?

It's probably on purpose.

--
murrayc@...
www.murrayc.com
www.openismus.com

_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: _WRAP_SIGNAL: when the C klass does not have a virtual function

by Debarshi Ray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> You can use the no_default_handler option:
> http://library.gnome.org/devel/gtkmm-tutorial/unstable/sec-wrapping-hg-files.html.en#gmmproc-wrap-signal

Thanks. That did the trick for me. Maybe I should have RTFMed a bit
more thoroughly. :-)

Cheers,
Debarshi
--
One reason that life is complex is that it has a real part and an
imaginary part.
    -- Andrew Koenig
_______________________________________________
gtkmm-list mailing list
gtkmm-list@...
http://mail.gnome.org/mailman/listinfo/gtkmm-list