getting currently active widget of the given window



 Hi!

 Is there a way to get currently active gtk widget (the one that has focus) in
the gtk window (not foreign) using gtk calls. In my 'key-press-event' handler
I want to handle some events based on the type of currently focused
widget (ok, of course I can install 'key-press-event' individually for each
widget, but is there a way of doing it in "global" 'key-press-event' handler)?

 Thanks in advance.

 Best regards,
  -Vlad



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