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

Re: Determining which mouse button was pressed



> I have connected a signal handler to an event box. I check for the signal
> button_press_event. How can I tell which mouse button was pressed?

I posted a working example showing this, just two weeks ago. Check the
archived list, the day is 3 Oct, and the subject is GdkEventButton handler.
It's only 41 lines, compile and run it. In the example the GtkWidget *widget 
in the signal handler is a button, in yours will be the event box, it works 
exactly in the same way.

Carlos Pereira,
Technical University of Lisboa,
Portugal



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