forked from enlightenment/efl
[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:
parent
849567e4e7
commit
6b67520b48
|
@ -157,7 +157,12 @@ _property_append(Elm_Menu_Item *item,
|
||||||
case ELM_DBUS_PROPERTY_LABEL:
|
case ELM_DBUS_PROPERTY_LABEL:
|
||||||
variant = edbus_message_iter_container_new(iter, 'v', "s");
|
variant = edbus_message_iter_container_new(iter, 'v', "s");
|
||||||
t = elm_object_item_part_text_get(item_obj, NULL);
|
t = elm_object_item_part_text_get(item_obj, NULL);
|
||||||
|
if (!t)
|
||||||
|
{
|
||||||
|
t = elm_object_part_text_get(item->content, NULL);
|
||||||
if (!t) t = "";
|
if (!t) t = "";
|
||||||
|
}
|
||||||
|
|
||||||
edbus_message_iter_basic_append(variant, 's', t);
|
edbus_message_iter_basic_append(variant, 's', t);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue