pop menu with a right-click in a gtktreeview



I want to put a popup menu in a gtktreeview widget with a right-click of the mouse, and I'm wonder how can I detect if I'm clicking with the right or the left mouse click.
Also, in glade I found the popup menu, and i create it, when I have the signal to detect the right or left click, the popup it appears with ->show()? What I shoud do and wich signals  I should activate to put this menu in the position of the right click?

Thanks.

David ^^


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