static gboolean addSelectionCB(AtkSelection *aSelection, gint i) { AccessibleWrap* accWrap = GetAccessibleWrap(ATK_OBJECT(aSelection)); if (!accWrap || !accWrap->IsSelect()) return FALSE; return accWrap->AddItemToSelection(i); }
static gboolean addSelectionCB(AtkSelection *aSelection, gint i) { AccessibleWrap* accWrap = GetAccessibleWrap(ATK_OBJECT(aSelection)); if (accWrap && accWrap->IsSelect()) { return accWrap->AddItemToSelection(i); } if (ProxyAccessible* proxy = GetProxy(ATK_OBJECT(aSelection))) { return proxy->AddItemToSelection(i); } return FALSE; }