Re: [gtk-list] getting currently active widget of the given window

Vlad Harchev <> writes:
>  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)?

I think you can probably access window->focus_widget, I'm not sure if
there's a function for accessing it.


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