m_pView->signal_key_press_event ().connect ( sigc::mem_fun (
*this, &Test::OnKeyPressEvent ), sigc::first );
I've never done this before, and my best guess offends the compiler.
What's the correct way?
On 06/22/2018 06:49, Daniel Boles via gtkmm-list wrote:
On 22 June 2018 at 14:43, Daniel Boles <dboles....@gmail.com
<mailto:dboles....@gmail.com>> wrote:
hmm, you might need to connect before the default handler if you
didn't already, to intercept the state, then return false so it
can carry on doing what it normally does.
I should clarify that I didn't really think about whether that's the
right way to do it... but if you can make it work, it seems simplest.
Deriving and overriding the default handler vfunc could achieve the
same thing since obviously you replace the base one and then can
choose to chain up after your added stuff, or even replace it
altogether. It may or may not be worth the hassle though.
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list