Re: Change Mouse Cursor

On Nov 5, 2010, at 6:08 AM, Mario Kemper wrote:

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.

Aw, my lemon is empty.
  -- Yvonne, at dinner

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