how to grab focus using ATK



Hi,

Could  someone explain how an ATK user should properly implement focus
grabbing  for  an  object, so that atk_get_focus_object() would return
that object?

Suppose,  for  example,  one  needs  to  implement  a  virtual  method
corresponding  to  atk_component_grab_focus()  in a class implementing
AtkComponent  inteface.  The ATK documentation is unclear on how to do
this. The implementation could probably use atk_focus_tracker_notify()
function  for  this  purpose.  Though the description of this function
only says "Cause the focus tracker functions which have been specified
to be executed for the object."

Is there a common way to deal with this problem?


-- 
Andrey Tsyvarev 
 
 Linux Verification Center, ISP RAS
 web:    http://www.linuxtesting.org
 e-mail: tsyvarev ispras ru




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