elm test_toolbar.c: added more clicked callback usecases.

SVN revision: 83760
This commit is contained in:
Daniel Juyung Seo 2013-02-08 05:14:12 +00:00
parent 7cf59ffddd
commit 26b5a82d41
1 changed files with 8 additions and 0 deletions

View File

@ -66,6 +66,14 @@ toolbar_clicked_cb(void *data __UNUSED__, Evas_Object *obj, void *event_info __U
{
Elm_Object_Item *it = elm_toolbar_more_item_get(obj);
if (event_info)
{
printf("toolbar item %p clicked", event_info);
if (elm_toolbar_item_selected_get(event_info))
printf(" (selected)\n");
else
printf(" (unselected)\n");
}
if (!strcmp(elm_object_item_text_get(it), "Open") && (it == elm_toolbar_selected_item_get(obj)))
{
elm_toolbar_item_icon_set(it, "arrow_up");