[Glade-users] Which signal for rigth click



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





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