{
const ObjectCache *oc = object_cache_get(obj);
- if (x >= oc->bounds->x && x <= oc->bounds->x + oc->bounds->width
- && y >= oc->bounds->y && y <= oc->bounds->y + oc->bounds->height)
+ if (oc && x >= oc->bounds->x && x <= oc->bounds->x + oc->bounds->width
+ && y >= oc->bounds->y && y <= oc->bounds->y + oc->bounds->height)
{
DEBUG("INSIDE");
return EINA_TRUE;
if (!obj)
obj = flat_navi_context_line_next(context);
// try 'cycle' objects in context
- ss = atspi_accessible_get_state_set(obj);
- visible = atspi_state_set_contains(ss, ATSPI_STATE_SHOWING);
- g_object_unref(ss);
+ if (obj)
+ {
+ ss = atspi_accessible_get_state_set(obj);
+ visible = atspi_state_set_contains(ss, ATSPI_STATE_SHOWING);
+ g_object_unref(ss);
+ }
}
while (obj && !visible);
if (!obj)
obj = flat_navi_context_line_prev(context);
// try 'cycle' objects in context
- ss = atspi_accessible_get_state_set(obj);
- visible = atspi_state_set_contains(ss, ATSPI_STATE_SHOWING);
- g_object_unref(ss);
+ if (obj)
+ {
+ ss = atspi_accessible_get_state_set(obj);
+ visible = atspi_state_set_contains(ss, ATSPI_STATE_SHOWING);
+ g_object_unref(ss);
+ }
}
while (obj && !visible);
Eina_List *l;
Voice_Info *vi;
- if (!sd->language || !new_language)
+ if (!new_language)
return false;
if(strncmp(sd->language, new_language, LAN_NAME - 1) == 0 && sd->voice_type == new_voice)
for(jdx = 0; jdx < count_child; jdx++)
{
child_iter = atspi_accessible_get_child_at_index(scrollable_object, jdx, NULL);
+ if (!child_iter) continue;
AtspiStateSet* state_set = atspi_accessible_get_state_set(child_iter);
for (j=0; j < app_childs; j++)
{
win = atspi_accessible_get_child_at_index(app, j, NULL);
+ if (!win)
+ continue;
+
st = atspi_accessible_get_state_set (win);
if (atspi_state_set_contains(st, ATSPI_STATE_ACTIVE))
ret = win;