When the style of the ctxpopup was "icon_only" and the icon was set to name,
atspi_accessible_name_get returns name of the icon.
Change-Id: If55e042eeed9ef3b685b05fab5fbabcef95d34a7
EOLIAN char *
_elm_ctxpopup_item_elm_interface_atspi_accessible_name_get(Eo *eo_it EINA_UNUSED, Elm_Ctxpopup_Item_Data *item)
{
- return item->label ? strdup(item->label) : NULL;
+ if(item->icon && !item->label)
+ {
+ char *icon_name = NULL;
+ eo_do(item->icon, icon_name = elm_interface_atspi_accessible_name_get());
+ return icon_name ? strdup(icon_name): NULL;
+ }
+ else
+ return item->label ? strdup(item->label) : NULL;
}
//