focused widget within an application



Could someone please help me in finding the way to get the currently focused widget within an application.
I'm after the equivalent of GetFocus(...) in win32.  Is the solution to get all toplevel windows...
 
gtk_window_list_toplevels(...)
 
...and then to iterate through then doing a...
 
gtk_window_get_focus(...)
 
Many Thanks
Cole
 


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