[Glade-users] Which signal for rigth click

Damon Chaplin damon@ximian.com
Fri, 23 Feb 2001 12:43:38 -0500


philippe.vivarelli@mindspeed.com wrote:
> 
> Hi,
> 
> I designed an application on which I can click on some entry (GtkEntry) to
> open a window.
> I did this using the button_press_event signal.
> 
> Using this signal the window is opened if I either click on the left ou
> rigth button of the mouse.
> 
> Is there a way to make the diffrence between the left and the rigth button

Yes, you normally do:

 if (event->button == 3) {
     ...


Damon