efl_ui_widget: add implementation for finding the window
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Tue, 26 Mar 2019 08:59:16 +0000 (09:59 +0100)
committerJunsuChoi <jsuya.choi@samsung.com>
Tue, 2 Apr 2019 04:24:20 +0000 (13:24 +0900)
commitf7dcacb5e9187106c92d1c05a0e0731618eed11c
treeb910af23dca0fee0467a2521a2fce7715c2b2f8c
parent70c543b1e3c155ee0289d3d1e9760ca80e1efacb
efl_ui_widget: add implementation for finding the window

the problem with the previous implementation (just redirect the calls to
the widget_parent then to the efl_parent is that after invalidate its
impossible to find the window where the widget is in. However, there are
cases where we want to have access to the window of the widget, for
example, to invalidate focus highlight etc..
The window of a widget is always constant, and cannot be changed (as the
evas object cannot hop accross different evas)

Reviewed-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
Differential Revision: https://phab.enlightenment.org/D8475
src/lib/elementary/efl_ui_widget.c
src/lib/elementary/elm_widget.h
src/tests/elementary/efl_ui_test_widget.c