return ret;
}
+static void
+debug(FlatNaviContext *ctx)
+{
+ Eina_List *l1, *l2, *line;
+ AtspiAccessible *obj;
+ int i, l = 0;
+
+ EINA_LIST_FOREACH(ctx->lines, l1, line)
+ {
+ i = 0;
+ DEBUG("Line %d", l);
+ EINA_LIST_FOREACH(line, l2, obj)
+ {
+ char *name = atspi_accessible_get_name(obj, NULL);
+ char *role = atspi_accessible_get_role_name(obj, NULL);
+ DEBUG("%d %s %s, ", i++, name, role);
+ if (name) g_free(name);
+ if (role) g_free(role);
+ }
+ }
+}
+
FlatNaviContext *flat_navi_context_create(AtspiAccessible *root)
{
FlatNaviContext *ret;
ret->current_line = ret->lines;
ret->current = eina_list_data_get(ret->current_line);
+ debug(ret);
+
return ret;
}
if (new)
ctx->current = new;
- else if (!flat_navi_context_line_next(ctx))
- return NULL;
+ else
+ return flat_navi_context_line_next(ctx);
return eina_list_data_get(ctx->current);
}
if (new)
ctx->current = new;
- else if (!flat_navi_context_line_prev(ctx))
- return NULL;
+ else
+ return flat_navi_context_line_prev(ctx);
return eina_list_data_get(ctx->current);
}