Aw: Re: wy signal handler could not be override




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
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]