efl_ui_widget: refactor constructor
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Wed, 11 Sep 2019 01:43:08 +0000 (10:43 +0900)
committerYeongjong Lee <yj34.lee@samsung.com>
Mon, 16 Sep 2019 01:23:00 +0000 (10:23 +0900)
commit2e5ade93cffff37e4e89c22813f49047dbcc99d1
treeb8ff4d568e8cc9582bb76bffd5c9395ea03cc941
parent353d6fc7cf143d6b33986f49d305c7999626b1cc
efl_ui_widget: refactor constructor

Summary:
first of all, in efl-ui we should probebly ensure that a widget is
always created in a window object. Otherwise we are looking for trouble.

Additionally, calling efl_ui_win_shared_data_get on anything else than a
window object will result in a returned NULL value.
If we are not having a widget parent, there is also not much point in
calling a API that is only defined on the widget base class, so we also
move that away

Reviewers: kimcinoo, raster

Reviewed By: kimcinoo

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9762
src/lib/elementary/efl_ui_widget.c