[elm] Use content from menu item to get menu text

Do some extra effort to find out a name for the menu item to send via D-Bus

Patch by: Henrique Dante de Almeida <hdante@profusion.mobi>



SVN revision: 81808
This commit is contained in:
Henrique Dante de Almeida 2012-12-28 14:59:55 +00:00 committed by Lucas De Marchi
parent 849567e4e7
commit 6b67520b48
1 changed files with 6 additions and 1 deletions

View File

@ -157,7 +157,12 @@ _property_append(Elm_Menu_Item *item,
case ELM_DBUS_PROPERTY_LABEL:
variant = edbus_message_iter_container_new(iter, 'v', "s");
t = elm_object_item_part_text_get(item_obj, NULL);
if (!t) t = "";
if (!t)
{
t = elm_object_part_text_get(item->content, NULL);
if (!t) t = "";
}
edbus_message_iter_basic_append(variant, 's', t);
break;