Add some focus calls for switching between thumb and flow browsers.

SVN revision: 57138
This commit is contained in:
titan 2011-02-17 20:23:03 +00:00 committed by titan
parent 03a4bb8761
commit 220c58503d
2 changed files with 5 additions and 0 deletions

View File

@ -181,6 +181,7 @@ ephoto_flow_browser_show(void)
ephoto->prev_state = ephoto->state;
ephoto->state = EPHOTO_STATE_FLOW;
elm_object_focus(efb->layout);
if (!evas_object_key_grab(efb->box, "Escape", 0, 0, 1))
printf("Couldn't grab Escape key\n");
if (!evas_object_key_grab(efb->box, "Left", 0, 0, 1))
@ -306,6 +307,7 @@ _ephoto_flow_back(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_
evas_object_key_ungrab(efb->box, "BackSpace", 0, 0);
evas_object_key_ungrab(efb->box, "space", 0, 0);
elm_object_unfocus(efb->layout);
ephoto_thumb_browser_show();
}

View File

@ -122,6 +122,7 @@ ephoto_thumb_browser_show(void)
ephoto->state = EPHOTO_STATE_THUMB;
elm_pager_content_promote(ephoto->pager, ephoto->thumb_browser);
elm_object_focus(etb->grid);
}
void
@ -223,6 +224,8 @@ _ephoto_show_flow(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *event_
elm_toolbar_item_selected_set(etb->action.view_flow, EINA_FALSE);
elm_object_unfocus(etb->grid);
egi = elm_gengrid_selected_item_get(etb->grid);
if (egi)
ephoto->current_index = elm_gengrid_item_data_get(egi);