Re: Change Mouse Cursor

The problem is that you connect the button_press_event to two different
callbacks. I've changed your code in order make things work as you have

It's quite alright to connect more than one callback to the same signal -- but you have to be careful about 
ordering and the return value.  If you return true from an event signal, that means "i handled the event, 
stop propagating it," so no more handler callbacks will be invoked.

+1 for the Gtk2::EVENT_PROPAGATE constant.

Many thanks to both Kevin and Muppet for the explanation about the
propogation of events.  Very handy stuff to know.

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