Re: Why signal handler in canvas items can't be overriden?
- From: Murray Cumming <murrayc murrayc com>
- To: Klaus Rudolph <lts-rudolph gmx de>, goocanvas-list <goocanvas-list gnome org>
- Subject: Re: Why signal handler in canvas items can't be overriden?
- Date: Tue, 19 Jul 2016 11:31:54 +0200
On Di, 2016-07-19 at 11:19 +0200, Murray Cumming wrote:
On Di, 2016-07-19 at 11:08 +0200, Klaus Rudolph wrote:
bool on_button_press_event(const Glib::RefPtr<Item>&
target,
GdkEventButton* event) override
{
cout << "override handler" << endl;
return false;
}
This is probably not anything to do with goocanvas or goocanvasmm.
You
need to take some extra care with these signals with gtkmm:
https://developer.gnome.org/gtkmm-tutorial/stable/sec-xeventsignals.h
tm
l.en
Sorry, ignore that, please. You are overriding instead of connecting,
so this should work.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]