Ejemplo n.º 1
0
static void
_item_free(Elm_Index_Item *it)
{
   ELM_INDEX_DATA_GET(WIDGET(it), sd);

   sd->items = eina_list_remove(sd->items, it);
   if (it->letter) eina_stringshare_del(it->letter);
}
Ejemplo n.º 2
0
/**
 * @brief gets list of Elm_Object_Item* that is contained in index widget
 *
 * @param obj and EailIndex AtkObject
 *
 * @returns const Eina_List * with Elm_Object_Item* for every index
 */
static const Eina_List *
eail_index_get_index_items(AtkObject *obj) {
   Evas_Object *index_widget = NULL;

   index_widget = eail_widget_get_widget(EAIL_WIDGET(obj));
   g_return_val_if_fail(index_widget, NULL);

   ELM_INDEX_DATA_GET(index_widget, index_sd);
   g_return_val_if_fail(index_sd, NULL);

   return index_sd->items;
}