It was not possible to trigger any action on genlist item
when developer use "default" style and don't implement content_get function
if (widget) return widget;
/* if no nested widget, then getting evas clickable area */
- parts = eail_get_raw_evas_obj_list_from_item
- (eail_item_get_item(EAIL_ITEM(atk_item)));
-
- if (parts && eina_list_count(parts) > 0)
- {
- /* getting first widget from content */
- widget = eina_list_nth(parts, 0);
- }
-
- return widget;
+ return eail_get_edje_obj_from_item
+ (eail_item_get_item(EAIL_ITEM(atk_item)));
}
}
/**
+ * @param item Elm_Object_Item* instance
+ *
+ * @returns Evas_Object* representing the edje object related to item
+ */
+Evas_Object *
+eail_get_edje_obj_from_item(Elm_Object_Item *item)
+{
+ Evas_Object *edje = NULL;
+
+ edje = VIEW(item);
+ if (!edje)
+ DBG("Edje object for item not found.");
+
+ return edje;
+}
+
+/**
*
* The returned list has to be freed when no longer needed but DO NOT
* FREE CONTENT STRINGS.
Eina_List *eail_get_edje_parts_for_item(Elm_Object_Item *item);
/**
+ * @brief Gets edje object for item
+ *
+ */
+Evas_Object *eail_get_edje_obj_from_item(Elm_Object_Item *item);
+
+/**
* @brief Gets text content from item (each text is put into field in Eina_List
* as const gchar*)
*/