Re: [gtk-list] Finding out which button/key was pressed in callback?



On Fri, 26 Jun 1998, Christoph Gröver wrote:

> Hi All.
> 
> What I'm trying to do is to find out what Keys or Mouse Button were
> pressed, which caused the callback to start.
> 
> I assigned a signal handler to the "clicked" signal and have two different
> accelerator keys bound to it as well.
> 
> So in the callback I want to distinguish between these two.
> The Widget in question is the Button-Widget.

you can figure the currently handled event with
gtk_get_current_event().

> 
> Ciao Christoph   (grover@hottemax.uni-muenster.de)
> +--------------
> 

---
ciaoTJ



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