Accessing context popup menues through keyboard



Hello all,

I have an app that displays a GtkCTree which registers a signal handler
for the button_press_event. When the signal handler is invoked, it
checks to see if the x and y pixel coordinates are within a valid row in
the GtkCTree (I use gtk_clist_get_selection_info() to verify). If so, I
see if the event button was for the right mouse button. If so, I create
a context popup at x,y for the row corresponding to x & y.

This all works fine and dandy. I want to support using SHIFT-F10 to
access the context menu for a row. I can set up a hander for
"key_press_event" and recognize SHIFT + GDK_F10 just fine. But now what?

The GdkEventKey doesn't provide x & y coordinates. How do I get the x &
y coordinates during the "key_press_event"?

The whole point of allowing SHIFT-F10 is to attempt to make the app more
accessible to folks with disabilities.

-- 
regards,

Luciano Chavez

lnx1138 us ibm com          
http://evms.sourceforge.net




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