Re: Why signal handler in canvas items can't be overriden?



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]