elm: Prevent style/theme set after finalize (EO)
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 9 Aug 2017 07:22:48 +0000 (16:22 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 9 Aug 2017 09:09:32 +0000 (18:09 +0900)
commite2fca6c454c182d4666c2f081697ed6f917ff645
tree6c59ecb204378f01a37f72b81ba3bbeffef3d901
parent5d1e959f92e14f1aa45f3c225d8351041125039b
elm: Prevent style/theme set after finalize (EO)

This is only for EO obviously. style_set and theme_set should only be
called when the object is being created, not after. On-the-fly style
changes are complex to handle and in most cases it should be easy to
simply repopulate the object after creating a new one with a new style.

There are only a few cases where style_set is used long after creation
of an object, like changing how a label slides, or in the evas 3d map
examples. Menu seems to change the hover style a lot, so rewriting it in
pure EO would need some extra work, maybe.

Ref T5307
Ref T5363
src/lib/elementary/efl_ui_layout.c
src/lib/elementary/elc_combobox.c
src/lib/elementary/elm_widget.c
src/lib/elementary/elm_widget.eo
src/lib/elementary/elm_widget.h