[cairo] Porting GTK+ to use Cairo

Evan Martin martine at danga.com
Tue May 11 14:27:40 PDT 2004


On Tue, May 11, 2004 at 07:00:34PM +0200, Jost Boekemeier wrote:
> * gtk related: Why do most gtk widgets ask for pointer motion events?  I
> can understand why someone wants button[x] motion events but why does
> the menu or menuitem for example want motion events when no button is
> pressed?  I think the only reason is that X has no "pointer moved less
> than delta pixels, send tooltip event" so one has to implement this on
> the client-side.  Or are there other reasons?

I would guess this is for "prelighting": that is, highlighting what the
mouse is over to indicate that it's clickable.  Most GTK themes
prelight menu items, while fewer prelight buttons, but IIRC most widgets
support having prelight behavior.

-- 
Evan Martin
martine at danga.com
http://neugierig.org




More information about the cairo mailing list