Owen Taylor wrote:
> 
> Because GTK+ allows you to change the accelerators in a menu by pressing
> an accelerator while the mouse is over the menu. Delete is used to remove
> the current accelerator.

  I never noticed that you could change the menu accelerators like
that... it's very cool. I'm totally ashamed to ask such stupid question.
:)

> >   Also, the program that I'm writing is a conversion of a Win32 program
> > and sometimes I need to know if the Alt key is pressed. What's the best
> > way to do that ?
> 
> Usually, the way you do that is use the 'state' field of events
> like key presses and mouse events. You can test

  I needed to know the key state deep inside the program code, after
some research I found out that there's a function called XQueryKeymap
that does exactly what I need.

Leonardo

-- 
To unsubscribe: mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Reply via email to