Re: EventBox and Bind



On Fri, Dec 31, 2004 at 20:23:50 -0600, Sudrien wrote:
> Second problem: It seems the menuitems are catching all the mouse clicks. 
> I've read that one can add new events to be captured, but how would I
> disable MenuIem events (so the eventbox underneath could get the signal)?

Why do you need eventbox below, when the widget is capable of accepting
events?!?! Every widget that has a window can accept any X events (the
signals are defined on GtkWidget itself). Just connect the handler to
appropriate event of the menuitem. IIRC returning true from any of the
*_event signals stops the emmision and class-handlers run after custom
ones.

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb ucw cz>

Attachment: signature.asc
Description: Digital signature



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