Re: Pop-pup on button pressed.



On Fri, Sep 20, 2002 at 01:26:22PM -0700, Harring Figueiredo wrote:


 Folks,

 I have a GtkTreeview (Table) and would like to popup a menu when the right
button on the mouse is pressed.
  Any example of his ?


Use the "changed" signal, and in the callback, have a look at the current
Event ( gtk_get_current_event() ), check if it's type GDK_BUTTON_PRESS with
event->button==3.

Drew

-- 
PGP public key available at http://people.debian.org/~dparsons/drewskey.txt
Fingerprint: A110 EAE1 D7D2 8076 5FE0  EC0A B6CE 7041 6412 4E4A



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