elementary/win - [E-devel] [Patch][Elementary] Patch for elm_win to fix the focus...
authorhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 6 Apr 2012 06:19:16 +0000 (06:19 +0000)
committerRajeev Ranjan <rajeev.r@samsung.com>
Mon, 9 Apr 2012 08:46:57 +0000 (14:16 +0530)
commit54a1e1519eda60c3cbe5c26f0792e0a895107faf
tree02129431696e536ae00f7e95a5bd347f628a9ea4
parent72b71f4fa2a671100fdac75b8c859f7ca7e47ca7
elementary/win - [E-devel] [Patch][Elementary] Patch for elm_win to fix the focus chain issue in case of a widget added as a normal sub-object, not a resizable object

Current Issue:
Currently when we add a widget to window as a sub-object, e.g.
elm_notify_add(win) which internally calls elm_widget_sub_object_add
then the focus chain using <TAB> includes only
the first focusable subitem of the widget, not all.
Whereas with elm_win_resize_object_add, it works fine and cycles to
all focusable sub-items of the widget.

Reason:
The reason is that we are appending sub-object to the list in
elm_win which is used for focus chain, only in case of
elm_win_resize_object_add.

Change Description:
Added a new API: EAPI Eina_List
*elm_widget_sub_object_list_get(const Evas_Object *obj);
This API returns the list of sub-objects of an elementary widget
(sd->subobjs) where sd is Smart_Data pointer obtainted using
elm_widget_smart_data_get(obj).
We have used this API in elm_win for focus_next_hook implementation.

Signed-Off-By: RAJEEV RANJAN<rajeev.r>@samsumg.com>
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@69943 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/elm_widget.c
src/lib/elm_widget.h
src/lib/elm_win.c