Re: wy signal handler could not be override
- From: Jonas Platte <jonasplatte myopera com>
- To: Klaus Rudolph <lts-rudolph gmx de>, gtkmm-list gnome org
- Subject: Re: wy signal handler could not be override
- Date: Fri, 29 Mar 2013 14:01:12 +0100
Am 29.03.2013 13:56, schrieb Klaus Rudolph:
I've googled the thing and can't find any mistake in your function.
But to make sure you're really overriding the function, you can use the
override keyword from C++11, if your compiler supports that. For g++,
you can activate C++11 features with the -std=c++11 compiler flag (I'm
not sure if that is necessary)
You would then declare the function as follows:
virtual bool on_button_press_event(const Glib::RefPtr<Item>& target, GdkEventButton* event) override
{
cout << "catch it" << endl;
return true;
}
I use gcc 4.8.0 and 4.7.2 and used the override statement without errors. But the handler is still *not*
called. Can anyone try to reproduce the problem? Maybe this is simply a bug?
Regards
Klaus
I'll try to reproduce it. But first, which version of goocanvasmm are
you using? In the Ubuntu repositories, there are two versions, 1.0 and 2.0.
And, how should the signal normally be emitted? Is your function called
when you emit the signal manually?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]